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

Multiple hosts in a single dashboard #16

Open
rwjack opened this issue Jul 26, 2024 · 0 comments
Open

Multiple hosts in a single dashboard #16

rwjack opened this issue Jul 26, 2024 · 0 comments

Comments

@rwjack
Copy link

rwjack commented Jul 26, 2024

2.3 is looking great, thank you @ar51an!

I have multiple unbound hosts, so I figure I might document this here in case someone needs it.

Step 1: Add the Unbound Host Variable: (Name, Label, Query Option fields)

image

Step 2: Set the label in the promtail config:

 - job_name: unbound
    static_configs:
    - targets:
        - localhost
      labels:
        job: unbound
        host: <DESIRED_HOSTNAME_LABEL> #######################
.... SNIP ....

Step 3: Modify the dashboard JSON

Replace all occurences of
job=\"unbound\" -> with: job=\"unbound\", host=\"${unbound_host}\"

image

Make sure to save the dashboard and voila!

Before:
image

After:
image

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