Skip to content

Commit

Permalink
allow time_interval for prometheus datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
pigay authored and rrey committed Mar 8, 2023
1 parent fa4084d commit 79ee7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/grafana_datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def get_datasource_payload(data):
es_version = ES_VERSION_MAPPING.get(data['es_version'])
json_data['esVersion'] = es_version

if data['ds_type'] == 'elasticsearch' or data['ds_type'] == 'influxdb':
if data['ds_type'] in ['elasticsearch', 'influxdb', 'prometheus']:
if data.get('time_interval'):
json_data['timeInterval'] = data['time_interval']

Expand Down

0 comments on commit 79ee7f9

Please sign in to comment.