Mercurial > code > home > repos > mqtt_metrics
diff convert.py @ 4:cd1b8d7bda78
get metrics writing to victoriametrics
author | drewp@bigasterisk.com |
---|---|
date | Sat, 10 Aug 2024 21:16:19 -0700 |
parents | 579df3a4e62d |
children | 8390d5d0d512 |
line wrap: on
line diff
--- a/convert.py Fri Aug 09 18:36:39 2024 -0700 +++ b/convert.py Sat Aug 10 21:16:19 2024 -0700 @@ -1,3 +1,6 @@ +''' +Note that these functions need to parse the message['payload'] into a float +''' converters = [] @@ -22,7 +25,7 @@ 'labelName': 'size', 'labelValue': '10', }], - 'value': message['payload'], + 'value': float(message['payload']), }