From 180d6aefff7bf2b194dcdf2b3263b96fc4370914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Gagni=C3=A8re?= Date: Thu, 13 Mar 2025 14:54:27 +0100 Subject: [PATCH] Mixin: Use std.parseYaml instead of Tanka native function. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicolas Gagnière --- mysqld-mixin/mixin.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysqld-mixin/mixin.libsonnet b/mysqld-mixin/mixin.libsonnet index 9515cdea9..f6e6b0495 100644 --- a/mysqld-mixin/mixin.libsonnet +++ b/mysqld-mixin/mixin.libsonnet @@ -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'),