You've already forked mysqld_exporter
mirror of
https://github.com/prometheus/mysqld_exporter.git
synced 2026-10-23 08:48:59 +03:00
Mixin: Use std.parseYaml instead of Tanka native function. (#935)
Signed-off-by: Nicolas Gagnière <ngagniere@clinflows.com>
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
{
|
||||
grafanaDashboards: {
|
||||
grafanaDashboards+: {
|
||||
'mysql-overview.json': (import 'dashboards/mysql-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,
|
||||
groups+: std.parseYaml(rules).groups,
|
||||
},
|
||||
|
||||
prometheusRules+: importRules(importstr 'rules/rules.yaml'),
|
||||
|
||||
Reference in New Issue
Block a user