mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
16 lines
479 B
Plaintext
16 lines
479 B
Plaintext
|
{
|
||
|
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'),
|
||
|
}
|