forked from percona/node_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flag to aggr ipvs metrics to avoid high cardinality metrics (prom…
…etheus#1709) Fixes prometheus#1708 Signed-off-by: Wing924 <[email protected]>
- Loading branch information
Showing
5 changed files
with
345 additions
and
81 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
collector/fixtures/ip_vs_result_lbs_local_address_local_port.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# HELP node_ipvs_backend_connections_active The current active connections by local and remote address. | ||
# TYPE node_ipvs_backend_connections_active gauge | ||
node_ipvs_backend_connections_active{local_address="",local_port="0"} 385 | ||
node_ipvs_backend_connections_active{local_address="192.168.0.22",local_port="3306"} 744 | ||
node_ipvs_backend_connections_active{local_address="192.168.0.55",local_port="3306"} 0 | ||
node_ipvs_backend_connections_active{local_address="192.168.0.57",local_port="3306"} 2997 | ||
# HELP node_ipvs_backend_connections_inactive The current inactive connections by local and remote address. | ||
# TYPE node_ipvs_backend_connections_inactive gauge | ||
node_ipvs_backend_connections_inactive{local_address="",local_port="0"} 6 | ||
node_ipvs_backend_connections_inactive{local_address="192.168.0.22",local_port="3306"} 5 | ||
node_ipvs_backend_connections_inactive{local_address="192.168.0.55",local_port="3306"} 0 | ||
node_ipvs_backend_connections_inactive{local_address="192.168.0.57",local_port="3306"} 0 | ||
# HELP node_ipvs_backend_weight The current backend weight by local and remote address. | ||
# TYPE node_ipvs_backend_weight gauge | ||
node_ipvs_backend_weight{local_address="",local_port="0"} 120 | ||
node_ipvs_backend_weight{local_address="192.168.0.22",local_port="3306"} 300 | ||
node_ipvs_backend_weight{local_address="192.168.0.55",local_port="3306"} 100 | ||
node_ipvs_backend_weight{local_address="192.168.0.57",local_port="3306"} 200 | ||
# HELP node_ipvs_connections_total The total number of connections made. | ||
# TYPE node_ipvs_connections_total counter | ||
node_ipvs_connections_total 2.3765872e+07 | ||
# HELP node_ipvs_incoming_bytes_total The total amount of incoming data. | ||
# TYPE node_ipvs_incoming_bytes_total counter | ||
node_ipvs_incoming_bytes_total 8.9991519156915e+13 | ||
# HELP node_ipvs_incoming_packets_total The total number of incoming packets. | ||
# TYPE node_ipvs_incoming_packets_total counter | ||
node_ipvs_incoming_packets_total 3.811989221e+09 | ||
# HELP node_ipvs_outgoing_bytes_total The total amount of outgoing data. | ||
# TYPE node_ipvs_outgoing_bytes_total counter | ||
node_ipvs_outgoing_bytes_total 0 | ||
# HELP node_ipvs_outgoing_packets_total The total number of outgoing packets. | ||
# TYPE node_ipvs_outgoing_packets_total counter | ||
node_ipvs_outgoing_packets_total 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# HELP node_ipvs_backend_connections_active The current active connections by local and remote address. | ||
# TYPE node_ipvs_backend_connections_active gauge | ||
node_ipvs_backend_connections_active{local_port="0"} 385 | ||
node_ipvs_backend_connections_active{local_port="3306"} 3741 | ||
# HELP node_ipvs_backend_connections_inactive The current inactive connections by local and remote address. | ||
# TYPE node_ipvs_backend_connections_inactive gauge | ||
node_ipvs_backend_connections_inactive{local_port="0"} 6 | ||
node_ipvs_backend_connections_inactive{local_port="3306"} 5 | ||
# HELP node_ipvs_backend_weight The current backend weight by local and remote address. | ||
# TYPE node_ipvs_backend_weight gauge | ||
node_ipvs_backend_weight{local_port="0"} 120 | ||
node_ipvs_backend_weight{local_port="3306"} 600 | ||
# HELP node_ipvs_connections_total The total number of connections made. | ||
# TYPE node_ipvs_connections_total counter | ||
node_ipvs_connections_total 2.3765872e+07 | ||
# HELP node_ipvs_incoming_bytes_total The total amount of incoming data. | ||
# TYPE node_ipvs_incoming_bytes_total counter | ||
node_ipvs_incoming_bytes_total 8.9991519156915e+13 | ||
# HELP node_ipvs_incoming_packets_total The total number of incoming packets. | ||
# TYPE node_ipvs_incoming_packets_total counter | ||
node_ipvs_incoming_packets_total 3.811989221e+09 | ||
# HELP node_ipvs_outgoing_bytes_total The total amount of outgoing data. | ||
# TYPE node_ipvs_outgoing_bytes_total counter | ||
node_ipvs_outgoing_bytes_total 0 | ||
# HELP node_ipvs_outgoing_packets_total The total number of outgoing packets. | ||
# TYPE node_ipvs_outgoing_packets_total counter | ||
node_ipvs_outgoing_packets_total 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# HELP node_ipvs_backend_connections_active The current active connections by local and remote address. | ||
# TYPE node_ipvs_backend_connections_active gauge | ||
node_ipvs_backend_connections_active 4126 | ||
# HELP node_ipvs_backend_connections_inactive The current inactive connections by local and remote address. | ||
# TYPE node_ipvs_backend_connections_inactive gauge | ||
node_ipvs_backend_connections_inactive 11 | ||
# HELP node_ipvs_backend_weight The current backend weight by local and remote address. | ||
# TYPE node_ipvs_backend_weight gauge | ||
node_ipvs_backend_weight 720 | ||
# HELP node_ipvs_connections_total The total number of connections made. | ||
# TYPE node_ipvs_connections_total counter | ||
node_ipvs_connections_total 2.3765872e+07 | ||
# HELP node_ipvs_incoming_bytes_total The total amount of incoming data. | ||
# TYPE node_ipvs_incoming_bytes_total counter | ||
node_ipvs_incoming_bytes_total 8.9991519156915e+13 | ||
# HELP node_ipvs_incoming_packets_total The total number of incoming packets. | ||
# TYPE node_ipvs_incoming_packets_total counter | ||
node_ipvs_incoming_packets_total 3.811989221e+09 | ||
# HELP node_ipvs_outgoing_bytes_total The total amount of outgoing data. | ||
# TYPE node_ipvs_outgoing_bytes_total counter | ||
node_ipvs_outgoing_bytes_total 0 | ||
# HELP node_ipvs_outgoing_packets_total The total number of outgoing packets. | ||
# TYPE node_ipvs_outgoing_packets_total counter | ||
node_ipvs_outgoing_packets_total 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.