Skip to content

Commit 692975b

Browse files
Fix metrics name
1 parent c6573f2 commit 692975b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

prosafe_exporter/prosafe_exporter.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,16 @@ def writeResult(self):
220220
result += '# UNIT prosafe_max_mtu bytes\n'
221221
for status in self.status:
222222
result += 'prosafe_max_mtu{hostname="' + self.hostname + '", port="' + status[0]+'"} ' + str(status[3]) + '\n'
223-
result += '\n# HELP prosafe_prosafe_receive_bytes_total Received bytes at port\n'
224-
result += '# TYPE prosafe_prosafe_receive_bytes_total counter\n'
225-
result += '# UNIT prosafe_prosafe_receive_bytes_total bytes\n'
223+
result += '\n# HELP prosafe_receive_bytes_total Received bytes at port\n'
224+
result += '# TYPE prosafe_receive_bytes_total counter\n'
225+
result += '# UNIT prosafe_receive_bytes_total bytes\n'
226226
for port, statistic in enumerate(self.statistics, start=1):
227-
result += 'prosafe_prosafe_receive_bytes_total{hostname="' + self.hostname + '", port="' + str(port)+'"} ' + str(statistic[0]) + '\n'
228-
result += '\n# HELP prosafe_prosafe_transmit_bytes_total Transmitted bytes at port\n'
229-
result += '# TYPE prosafe_prosafe_transmit_bytes_total counter\n'
230-
result += '# UNIT prosafe_prosafe_transmit_bytes_total bytes\n'
227+
result += 'prosafe_receive_bytes_total{hostname="' + self.hostname + '", port="' + str(port)+'"} ' + str(statistic[0]) + '\n'
228+
result += '\n# HELP prosafe_transmit_bytes_total Transmitted bytes at port\n'
229+
result += '# TYPE prosafe_transmit_bytes_total counter\n'
230+
result += '# UNIT prosafe_transmit_bytes_total bytes\n'
231231
for port, statistic in enumerate(self.statistics, start=1):
232-
result += 'prosafe_prosafe_transmit_bytes_total{hostname="' + self.hostname + '", port="' + str(port)+'"} ' + str(statistic[1]) + '\n'
232+
result += 'prosafe_transmit_bytes_total{hostname="' + self.hostname + '", port="' + str(port)+'"} ' + str(statistic[1]) + '\n'
233233
result += '\n# HELP prosafe_error_packets_total Error bytes at port\n'
234234
result += '# TYPE prosafe_error_packets_total counter\n'
235235
result += '# UNIT prosafe_error_packets_total bytes\n'

0 commit comments

Comments
 (0)