From 878883856a7a5c40803809e8806f414b15e8c37e Mon Sep 17 00:00:00 2001 From: v-zhuravlev Date: Tue, 10 Dec 2024 01:19:03 +0800 Subject: [PATCH] Fix 'mixtool lint' in commonlib/logslib (#1366) --- common-lib/common/variables/variables.libsonnet | 2 +- logs-lib/logs/targets.libsonnet | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common-lib/common/variables/variables.libsonnet b/common-lib/common/variables/variables.libsonnet index 2e57534b1..951bd94e5 100644 --- a/common-lib/common/variables/variables.libsonnet +++ b/common-lib/common/variables/variables.libsonnet @@ -11,7 +11,7 @@ local utils = import '../utils.libsonnet'; enableLokiLogs=false, customAllValue='.+', prometheusDatasourceName=if enableLokiLogs then 'prometheus_datasource' else 'datasource', - prometheusDatasourceLabel=if enableLokiLogs then 'Prometheus datasource' else 'Data source', + prometheusDatasourceLabel=if enableLokiLogs then 'Prometheus data source' else 'Data source', ): { local varMetricTemplate(varMetric, chainSelector) = // check if chainSelector is not empty string (case when filtering selector is empty): diff --git a/logs-lib/logs/targets.libsonnet b/logs-lib/logs/targets.libsonnet index 4be78130e..9e86aeea0 100644 --- a/logs-lib/logs/targets.libsonnet +++ b/logs-lib/logs/targets.libsonnet @@ -30,7 +30,7 @@ function( sum by (%s) (count_over_time({%s} |~ "$regex_search" %s - [$__interval])) + [$__auto])) ||| % [ logsVolumeGroupBy, variables.queriesSelector,