I use telegraf for data collection and monitor a few processes with the procstat module.
At the moment i query the results manually in grafana from influxdb.
SELECT mean("cpu_usage") AS "telegraf" FROM "procstat" WHERE "exe" = 'telegraf' AND "host" = 'grafana' AND $timeFilter GROUP BY time($interval) fill(null)
I tried using … WHERE "exe" = '*' … in grafana but that does not return results.
@lightonflux It sounds like you would like to return all the results. If you just remove the "exe" = 'foo' part of that query you should get what you are looking for.
SELECT mean("cpu_usage") FROM "procstat" WHERE "host" = 'grafana' AND $timeFilter GROUP BY "exe",time($interval) fill(null)
Can you tell me how to alias it properly? What is the variable for the process names called? More importantly how do i look that up? The documentation for the procstat plugin does not mention anything like that.
@lightonflux The variable for the process name is exe. That is the tag key in Influx. Where is that output procstat.mean {exe: kapacitor} coming from? Is that from Grafana?