Skip to content

Commit

Permalink
bugfixes (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaantunes authored Jun 13, 2024
1 parent dbcaf36 commit f998c10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operations/alloy-mixin/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
enableLokiLogs: true,
filterSelector: '', #use it to filter specific metric label values, ie: job=~"integrations/alloy"
k8sClusterSelector: 'cluster=~"$cluster", namespace=~"$namespace"',
groupSelector: if self.enableK8sCluster then self.k8sClusterSelector + ', job="$job"' else 'job="$job"',
groupSelector: if self.enableK8sCluster then self.k8sClusterSelector + ', job=~"$job"' else 'job=~"$job"',
instanceSelector: self.groupSelector + ', instance=~"$instance"',
logsFilterSelector: '', #use to filter logs originated from alloy, and avoid picking up other platform logs, ie: service_name="alloy"
dashboardTag: 'alloy-mixin',
Expand Down
4 changes: 2 additions & 2 deletions operations/alloy-mixin/dashboards/cluster-overview.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local cluster_node_filename = 'alloy-cluster-node.json';
panel.withQueries([
panel.newInstantQuery(
expr= |||
'count(cluster_node_info{%(groupSelector)s})'
count(cluster_node_info{%(groupSelector)s})
||| % $._config
),
])
Expand All @@ -48,7 +48,7 @@ local cluster_node_filename = 'alloy-cluster-node.json';
panel.withQueries([
panel.newInstantQuery(
expr= |||
'cluster_node_info{%(groupSelector)s}'
cluster_node_info{%(groupSelector)s}
||| % $._config,
format='table',
),
Expand Down

0 comments on commit f998c10

Please sign in to comment.