Skip to content

Commit

Permalink
moved hadoop_cluster label to getMatcher method
Browse files Browse the repository at this point in the history
  • Loading branch information
algchoo committed Jul 26, 2024
1 parent ab7281a commit c3888ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apache-hadoop-mixin/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
enableLokiLogs: true,
enableMultiCluster: false,
multiclusterSelector: 'job=~"$job"',
hadoopSelector: if self.enableMultiCluster then 'job=~"$job", cluster=~"$cluster", hadoop_cluster=~"$hadoop_cluster"' else 'job=~"$job", hadoop_cluster=~"$hadoop_cluster"',
hadoopSelector: if self.enableMultiCluster then 'job=~"$job", cluster=~"$cluster"' else 'job=~"$job"',
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local dashboardUid = 'apache-hadoop-datanode-overview';
local promDatasourceName = 'prometheus_datasource';
local lokiDatasourceName = 'loki_datasource';

local getMatcher(cfg) = '%(hadoopSelector)s, instance=~"$instance"' % cfg;
local getMatcher(cfg) = '%(hadoopSelector)s, instance=~"$instance", hadoop_cluster=~"$hadoop_cluster"' % cfg;

local promDatasource = {
uid: '${%s}' % promDatasourceName,
Expand Down

0 comments on commit c3888ec

Please sign in to comment.