FokiDoki / WireRest

REST API for Wireguard
MIT License
23 stars 7 forks source link

Grafana dashboard example config #71

Closed anhkind closed 7 months ago

anhkind commented 8 months ago

The example config on WireRest Grafana dashboard is outdated/incorrect at the moment. I've changed it to something like this gist and it's now working great.

# For Grafana dashboard: https://grafana.com/grafana/dashboards/19458-wireguard-wirerest-jvm/
# put these under `metrics.configs.scrape_configs`
      - job_name: 'wirerest'
        metrics_path: '/actuator/prometheus'
        authorization:
          credentials: YOUR_WIREREST_TOKEN
        static_configs:    
          targets: ['YOUR_WIREREST_IP:8081']

Please help update it if necessary. Thanks.

FokiDoki commented 7 months ago

Hello! Thank you for your issue)

It really was a config issue. I fixed it. Grafana needs moderation, and updates are not applied instantly. Actual guide available there

I don't recommend passing YOUR_WIREREST_TOKEN in a config file, it's less secure than via a file.

Thanks for your contribution)