Hi,
I have create a python script that captures some data and manipulates them in order to show them in the correct way. The output of the script is the following
{"workers": [{"miner": "mrig1", "hashrate": 2.1}, {"miner": "mrig2", "hashrate": 4.44}, {"miner": "mrig3", "hashrate": 3.28}], "hashes": 59039282877, "hashrate": 35.74}
In my telegraf.conf file I have added
[[inputs.exec]]
commands = ["python3 /opt/mining.py"]
timeout = "20s"
interval = "120s"
data_format = "json"
name_suffix = "_miner"
tag_keys = "miner"
json_string_fields = "miner"
My problem is that I cannot capture the miner tag from the json response. Any help will be appreciated.
thank you