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:
parent
e25da768d0
commit
322700a8c6
|
@ -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: ~
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue