influxdata / influxdata/community-templates

Monitoring mutiple hosts in a universal way?

Open
#321 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
375
Forks
162
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.