mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
CLEANUP: contrib/prometheus-exporter: align for with srv status case
the for loop was wrongly indented following our recent rework Signed-off-by: William Dauchy <wdauchy@gmail.com>
This commit is contained in:
parent
b26122b032
commit
64a3805309
@ -861,7 +861,7 @@ static int promex_dump_srv_metrics(struct appctx *appctx, struct htx *htx)
|
|||||||
switch (appctx->st2) {
|
switch (appctx->st2) {
|
||||||
case ST_F_STATUS:
|
case ST_F_STATUS:
|
||||||
state = promex_srv_status(sv);
|
state = promex_srv_status(sv);
|
||||||
for (; appctx->ctx.stats.st_code < PROMEX_SRV_STATE_COUNT; appctx->ctx.stats.st_code++) {
|
for (; appctx->ctx.stats.st_code < PROMEX_SRV_STATE_COUNT; appctx->ctx.stats.st_code++) {
|
||||||
val = mkf_u32(FO_STATUS, state == appctx->ctx.stats.st_code);
|
val = mkf_u32(FO_STATUS, state == appctx->ctx.stats.st_code);
|
||||||
labels[2].name = ist("state");
|
labels[2].name = ist("state");
|
||||||
labels[2].value = promex_srv_st[appctx->ctx.stats.st_code];
|
labels[2].value = promex_srv_st[appctx->ctx.stats.st_code];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user