1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-29 23:38:17 +02:00

influx metric field keys need to make sense (#179)

* influx metric field keys need to make sense
This commit is contained in:
John Jensen
2018-07-05 17:20:19 -04:00
committed by Joe Gillotti
parent cd152f1168
commit 28a2ac7b34

View File

@@ -38,11 +38,11 @@ class influx(object):
payload = []
for metric, value in metrics.iteritems():
data = {
'measurement': self.appname + '_' + metric,
'measurement': self.appname,
'tags': {},
'time': now,
'fields': {
'value': value
metric: value
}
}
if self.extra_tags: