MINOR: contrib/prometheus-exporter: add uweight field

this field was added in commit bd7151002437af1a034a9fdbb582b3cbef5a78d1
("MINOR: stats: report server's user-configured weight next to effective
weight")

Signed-off-by: William Dauchy <wdauchy@gmail.com>
This commit is contained in:
William Dauchy 2021-02-01 13:11:56 +01:00 committed by Christopher Faulet
parent 82b2ce2f96
commit e5a26a250d
2 changed files with 3 additions and 0 deletions

View File

@ -243,6 +243,7 @@ Exported metrics
| haproxy_backend_client_aborts_total | Total number of data transfers aborted by the client. | | haproxy_backend_client_aborts_total | Total number of data transfers aborted by the client. |
| haproxy_backend_server_aborts_total | Total number of data transfers aborted by the server. | | haproxy_backend_server_aborts_total | Total number of data transfers aborted by the server. |
| haproxy_backend_weight | Service weight. | | haproxy_backend_weight | Service weight. |
| haproxy_backend_uweight | Sum of active servers'user weights for a backend |
| haproxy_backend_active_servers | Current number of active servers. | | haproxy_backend_active_servers | Current number of active servers. |
| haproxy_backend_backup_servers | Current number of backup servers. | | haproxy_backend_backup_servers | Current number of backup servers. |
| haproxy_backend_check_up_down_total | Total number of UP->DOWN transitions. | | haproxy_backend_check_up_down_total | Total number of UP->DOWN transitions. |
@ -296,6 +297,7 @@ Exported metrics
| haproxy_server_client_aborts_total | Total number of data transfers aborted by the client. | | haproxy_server_client_aborts_total | Total number of data transfers aborted by the client. |
| haproxy_server_server_aborts_total | Total number of data transfers aborted by the server. | | haproxy_server_server_aborts_total | Total number of data transfers aborted by the server. |
| haproxy_server_weight | Service weight. | | haproxy_server_weight | Service weight. |
| haproxy_server_uweight | Server's user weight |
| haproxy_server_check_status | Status of last health check, if enabled. (see below for the mapping) | | haproxy_server_check_status | Status of last health check, if enabled. (see below for the mapping) |
| haproxy_server_check_code | layer5-7 code, if available of the last health check. | | haproxy_server_check_code | layer5-7 code, if available of the last health check. |
| haproxy_server_check_duration_seconds | Total duration of the latest server health check, in seconds. | | haproxy_server_check_duration_seconds | Total duration of the latest server health check, in seconds. |

View File

@ -280,6 +280,7 @@ const struct promex_metric promex_st_metrics[ST_F_TOTAL_FIELDS] = {
[ST_F_SAFE_CONN_CUR]= { .n = IST("safe_idle_connections_current"), .type = PROMEX_MT_GAUGE, .flags = ( PROMEX_FL_SRV_METRIC) }, [ST_F_SAFE_CONN_CUR]= { .n = IST("safe_idle_connections_current"), .type = PROMEX_MT_GAUGE, .flags = ( PROMEX_FL_SRV_METRIC) },
[ST_F_USED_CONN_CUR] = { .n = IST("used_connections_current"), .type = PROMEX_MT_GAUGE, .flags = ( PROMEX_FL_SRV_METRIC) }, [ST_F_USED_CONN_CUR] = { .n = IST("used_connections_current"), .type = PROMEX_MT_GAUGE, .flags = ( PROMEX_FL_SRV_METRIC) },
[ST_F_NEED_CONN_EST] = { .n = IST("need_connections_current"), .type = PROMEX_MT_GAUGE, .flags = ( PROMEX_FL_SRV_METRIC) }, [ST_F_NEED_CONN_EST] = { .n = IST("need_connections_current"), .type = PROMEX_MT_GAUGE, .flags = ( PROMEX_FL_SRV_METRIC) },
[ST_F_UWEIGHT] = { .n = IST("uweight"), .type = PROMEX_MT_GAUGE, .flags = ( PROMEX_FL_BACK_METRIC | PROMEX_FL_SRV_METRIC) },
}; };
/* Description of overriden stats fields */ /* Description of overriden stats fields */