Skip to content

Commit

Permalink
Clean up example
Browse files Browse the repository at this point in the history
  • Loading branch information
nlowe committed Mar 5, 2021
1 parent 5b60050 commit 1189953
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions example/environments/default/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,20 @@ local agent_objects = agent.new(namespace='monitoring') +
local namespaced_agent_objects = util.namespaced(agent_objects, 'monitoring');

local grafana_objects = grafana.new(namespace='monitoring') +
// TODO: Looks like we can't import just the dashboards anymore with the default setup
grafana.withDashboards(({ _config:: { singleBinary: true, tags: ['cortex'], per_instance_label: 'instance', storage_engine: 'blocks', resources_dashboards_enabled: true } } + (import 'cortex-mixin/dashboards.libsonnet')).grafanaDashboards) +
grafana.withDashboards(
(
{
_config:: {
singleBinary: true,
tags: ['cortex'],
per_instance_label: 'instance',
storage_engine: 'blocks',
resources_dashboards_enabled: true,
},
} +
(import 'cortex-mixin/dashboards.libsonnet')
).grafanaDashboards
) +
grafana.withDataSources([
datasource.new('Cortex', 'http://cortex.monitoring.svc.cluster.local/api/prom'),
]) +
Expand Down

0 comments on commit 1189953

Please sign in to comment.