parametrize timeInterval for Prometheus source

Necessary to match Prometheus scrape interval.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-01-31 10:52:40 +01:00
parent e25da768d0
commit 322700a8c6
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ grafana_domain: ~
# Main configuration for sources
grafana_prometheus_sources: []
# - { name: 'node-01', addr: '1.2.3.4', port: 8080, path: 'proxy/' }
# - { name: 'node-01', addr: '1.2.3.4', port: 8080, path: 'proxy/', interval: 30 }
# Admin user
grafana_username: ~

View File

@ -9,6 +9,7 @@ datasources:
url: http://{{ service.addr }}:{{ service.port }}/{{ service.path | default("") }}
withCredentials: false
isDefault: {{ loop.first }}
timeInterval: {{ service.interval | default(30) }}
jsonData:
httpMethod: GET
tlsAuth: false