Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
entries in grafanaDatasources must be filenames ending with .yml
  • Loading branch information
woodsaj committed Jan 21, 2020
commit e7d3c2feb498c8024aa12c13322094e54f3b447d
4 changes: 2 additions & 2 deletions prometheus-ksonnet/lib/grafana-configmaps.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
to add datasources:

grafanaDatasources+:: {
'my-datasource': $.grafana_datasource(name, url, default, method),
'secure-datasource': $.grafana_datasource_with_basicauth(name, url, username, password, default, method),
'my-datasource.yml': $.grafana_datasource(name, url, default, method),
'secure-datasource.yml': $.grafana_datasource_with_basicauth(name, url, username, password, default, method),
},
*/
grafanaDatasources+:: {},
Expand Down
6 changes: 3 additions & 3 deletions prometheus-ksonnet/lib/grafana.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
}),

grafanaDatasources+:: {
prometheus: $.grafana_datasource('prometheus',
'http://prometheus.%(namespace)s.svc.%(cluster_dns_suffix)s%(prometheus_web_route_prefix)s' % $._config,
default=true),
'prometheus.yml': $.grafana_datasource('prometheus',
'http://prometheus.%(namespace)s.svc.%(cluster_dns_suffix)s%(prometheus_web_route_prefix)s' % $._config,
default=true),
},

local container = $.core.v1.container,
Expand Down