remijouannet / graftorio2

(fork of graftorio) factorio mod for creating grafana dashboard
MIT License
77 stars 21 forks source link

Prometheus Datasource ``timeInterval`` not respected #17

Closed Kariton closed 2 years ago

Kariton commented 2 years ago

Hey ho,

Thanks for keeping this MOD alive!

But there is a issue with the default data source Scrape interval.

data/prometheus_datasource.yml

apiVersion: 1

datasources:
  - name: prometheus
[...]
    url: http://prometheus:9090
    timeInterval: 10

should look like this:

apiVersion: 1

datasources:
  - name: prometheus
[...]
    url: http://prometheus:9090
    jsonData:
      timeInterval: '10s'