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.
https://www.influxdata.com/products/influxdb-templates/gallery/
Apache License 2.0
349 stars 157 forks source link

Monitoring mutiple hosts in a universal way? #321

Open septarchy opened 1 year ago

septarchy commented 1 year ago

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