Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitoring mutiple hosts in a universal way? #321

Open
septarchy opened this issue Apr 6, 2023 · 0 comments
Open

Monitoring mutiple hosts in a universal way? #321

septarchy opened this issue Apr 6, 2023 · 0 comments

Comments

@septarchy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant