influxdata / community-templates

InfluxDB Community Templates: Quickly collect & analyze time series data from a range of sources: Kubernetes, MySQL, Postgres, AWS, Nginx, Jenkins, and more.

Home Page:https://www.influxdata.com/products/influxdb-templates/gallery/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monitoring mutiple hosts in a universal way?

septarchy opened this issue · comments

Dear sir/madam,

How can i specify multiple hosts for raspberry-pi-system.yml on a universal way? The hostnames may change constantly...

Now i specified it like this:

from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["host"] == "bridge01.server" or r["host"] == "bridge02.server")
|> filter(fn: (r) => r._measurement == "disk")
|> filter(fn: (r) => r._field == "used_percent")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")

Isn't it possible to
|> filter(fn: (r) => r["host"] == v.linux_host1 or r["host"] == v.linux_host2 or r["host"] == v.linux_host3)?

To show al details in one chart? I want to monitor multiple systems in one layout, without users switching layouts.
But i also want to change all cpu temperatures from all hosts for example.

Best regards