Skip to content

Commit 7c366ab

Browse files
authored
Fix prometheus problem (#860)
1 parent b8bfb65 commit 7c366ab

File tree

6 files changed

+19
-1
lines changed

6 files changed

+19
-1
lines changed

cloudbank-v32/apisix-routes/create-accounts-route.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ curl http://localhost:9180/apisix/admin/routes/1000 \
3636
"sampler": {
3737
"name": "always_on"
3838
}
39+
},
40+
"prometheus": {
41+
"prefer_name": true
3942
}
4043
}
4144
}
42-
EOF
45+
EOF

cloudbank-v32/apisix-routes/create-creditscore-route.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ curl http://localhost:9180/apisix/admin/routes/1001 \
3636
"sampler": {
3737
"name": "always_on"
3838
}
39+
},
40+
"prometheus": {
41+
"prefer_name": true
3942
}
4043
}
4144
}

cloudbank-v32/apisix-routes/create-customer-route.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ curl http://localhost:9180/apisix/admin/routes/1003 \
3636
"sampler": {
3737
"name": "always_on"
3838
}
39+
},
40+
"prometheus": {
41+
"prefer_name": true
3942
}
4043
}
4144
}

cloudbank-v32/apisix-routes/create-customer32-route.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ curl http://localhost:9180/apisix/admin/routes/1002 \
3636
"sampler": {
3737
"name": "always_on"
3838
}
39+
},
40+
"prometheus": {
41+
"prefer_name": true
3942
}
4043
}
4144
}

cloudbank-v32/apisix-routes/create-testrunner-route.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ curl http://localhost:9180/apisix/admin/routes/1004 \
3636
"sampler": {
3737
"name": "always_on"
3838
}
39+
},
40+
"prometheus": {
41+
"prefer_name": true
3942
}
4043
}
4144
}

cloudbank-v32/apisix-routes/create-transfer-route.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ curl http://localhost:9180/apisix/admin/routes/1005 \
3636
"sampler": {
3737
"name": "always_on"
3838
}
39+
},
40+
"prometheus": {
41+
"prefer_name": true
3942
}
4043
}
4144
}

0 commit comments

Comments
 (0)