Revision f6404bfad187372cf651ac538717fd51c67b2fff authored by Bogdan Matei on 13 January 2021, 10:56:09 UTC, committed by Bogdan Matei on 13 January 2021, 10:56:09 UTC
1 parent c040d36
Raw File
mixin.libsonnet
{
  grafanaDashboards: {
    'grafana-overview.json': (import 'dashboards/grafana-overview.json'),
  },

  // Helper function to ensure that we don't override other rules, by forcing
  // the patching of the groups list, and not the overall rules object.
  local importRules(rules) = {
    groups+: std.native('parseYaml')(rules)[0].groups,
  },

  prometheusRules+: importRules(importstr 'rules/rules.yaml'),

  prometheusAlerts+: importRules(importstr 'alerts/alerts.yaml'),
}
back to top