Skip to content

Commit afc005e

Browse files
committed
Fix typo'd metric name
Compare to the sibling metric whose name is spelled correctly: ecs_network_receive_packets_dropped_total. This commit shows the snapshot tests in action. Signed-off-by: Ian Kerins <[email protected]>
1 parent e36441e commit afc005e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Diff for: ecscollector/collector.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ var (
124124
networkLabels, nil)
125125

126126
networkTxDroppedDesc = prometheus.NewDesc(
127-
"ecs_network_transmit_dropped_total",
127+
"ecs_network_transmit_packets_dropped_total",
128128
"Cumulative total count of network packets dropped in transmit.",
129129
networkLabels, nil)
130130

Diff for: ecscollector/testdata/snapshots/ec2_metrics.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ ecs_network_receive_packets_total{interface="eth0"} 300
2929
# HELP ecs_network_transmit_bytes_total Cumulative total size of network packets transmitted in bytes.
3030
# TYPE ecs_network_transmit_bytes_total counter
3131
ecs_network_transmit_bytes_total{interface="eth0"} 51598
32-
# HELP ecs_network_transmit_dropped_total Cumulative total count of network packets dropped in transmit.
33-
# TYPE ecs_network_transmit_dropped_total counter
34-
ecs_network_transmit_dropped_total{interface="eth0"} 0
3532
# HELP ecs_network_transmit_errors_total Cumulative total count of network errors in transmit.
3633
# TYPE ecs_network_transmit_errors_total counter
3734
ecs_network_transmit_errors_total{interface="eth0"} 0
35+
# HELP ecs_network_transmit_packets_dropped_total Cumulative total count of network packets dropped in transmit.
36+
# TYPE ecs_network_transmit_packets_dropped_total counter
37+
ecs_network_transmit_packets_dropped_total{interface="eth0"} 0
3838
# HELP ecs_network_transmit_packets_total Cumulative total count of network packets transmitted.
3939
# TYPE ecs_network_transmit_packets_total counter
4040
ecs_network_transmit_packets_total{interface="eth0"} 297

Diff for: ecscollector/testdata/snapshots/fargate_metrics.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ ecs_network_receive_packets_total{interface="eth1"} 52712
2929
# HELP ecs_network_transmit_bytes_total Cumulative total size of network packets transmitted in bytes.
3030
# TYPE ecs_network_transmit_bytes_total counter
3131
ecs_network_transmit_bytes_total{interface="eth1"} 310433
32-
# HELP ecs_network_transmit_dropped_total Cumulative total count of network packets dropped in transmit.
33-
# TYPE ecs_network_transmit_dropped_total counter
34-
ecs_network_transmit_dropped_total{interface="eth1"} 0
3532
# HELP ecs_network_transmit_errors_total Cumulative total count of network errors in transmit.
3633
# TYPE ecs_network_transmit_errors_total counter
3734
ecs_network_transmit_errors_total{interface="eth1"} 0
35+
# HELP ecs_network_transmit_packets_dropped_total Cumulative total count of network packets dropped in transmit.
36+
# TYPE ecs_network_transmit_packets_dropped_total counter
37+
ecs_network_transmit_packets_dropped_total{interface="eth1"} 0
3838
# HELP ecs_network_transmit_packets_total Cumulative total count of network packets transmitted.
3939
# TYPE ecs_network_transmit_packets_total counter
4040
ecs_network_transmit_packets_total{interface="eth1"} 3012

0 commit comments

Comments
 (0)