https://github.com/grafana/grafana
Raw File
Tip revision: 98d6fb793be469e9b147675bee3b7b6a098c64b6 authored by Domas on 18 May 2021, 10:56:31 UTC
Alerting: wrap top level components in ErrorBoundary (#34040)
Tip revision: 98d6fb7
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