1
0
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:
Nicolas Gagnière
2025-06-27 09:13:04 +02:00
committed by GitHub
parent 00e6947c2f
commit cd4e163b0f

View File

@@ -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'),