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

Grafana dashboard - multiple instances #3

Open
Dan-Sun opened this issue Aug 27, 2022 · 2 comments
Open

Grafana dashboard - multiple instances #3

Dan-Sun opened this issue Aug 27, 2022 · 2 comments
Labels
question Further information is requested

Comments

@Dan-Sun
Copy link

Dan-Sun commented Aug 27, 2022

Hey

I am currently trying out your dashboard. There is an option at the top called "Node". Is it possible to add via targets, a node_name or something to have separate nodes/instances listed?

@psyhomb
Copy link
Owner

psyhomb commented Sep 3, 2022

Hey @Dan-Sun, thanks for reaching out. 🙂

In our production environment we use Prometheus as datasource and one of the labels we append to all our metric sets is node label and the value of that label is actually a node name (hostname), so if in your environment you use a different label name to store hostname of the wireguard server, all you have to do is to replace mentioned label directly in Grafana dashboard configuration file or via Grafana UI.

2022-09-03_13-50
2022-09-03_14-09

I hope this answers your question?

@psyhomb psyhomb added the question Further information is requested label Sep 3, 2022
@Dan-Sun
Copy link
Author

Dan-Sun commented Sep 24, 2022

Hey!

Thanks for your reply and sorry for the late reply ;)

A bit info for our set up which is also prometheus. We have 2 server for wireguard.

prometheus.yml

  - job_name: 'wireguard'
    basic_auth:
    file_sd_configs:
      - files:
        - wireguard_targets.yml

wireguard_targets.yml

- targets: ['domain']
  labels:
     job: wireguard 
     __node__: domain
     __metrics_path__: /wireguard_exporter
     __scheme__: https

- targets: ['domain2']
  labels:
     job: wireguard 
     __node__: domain2
     __metrics_path__: /wireguard_exporter
     __scheme__: https

but this way doesn't work. Obviously :D

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

No branches or pull requests

2 participants