Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
Signed-off-by: QuentinBisson <[email protected]>
  • Loading branch information
QuentinBisson committed Sep 18, 2024
1 parent 9079d28 commit 7bd0754
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1139,8 +1139,8 @@
]
},
"timezone": "utc",
"title": "Loki Cost Estimation",
"uid": "lokicost",
"title": "Loki / Cost Estimation",
"uid": "loki-cost-estimation",
"version": 1,
"weekStart": ""
}
5 changes: 5 additions & 0 deletions loki/mixin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ loki{
"component:loki"
],

per_node_label: 'node',
per_cluster_label: 'cluster_id',

canary+: {
enabled: true,
},

promtail+: {
enabled: true,
},
},
}
9 changes: 5 additions & 4 deletions loki/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
set -e

BRANCH="main"
BRANCH="fix-cluster-id-label-in-mixins"
MIXIN_URL=https://github.com/grafana/loki/production/loki-mixin@$BRANCH
MIXIN_URL=https://github.com/QuentinBisson/loki-upstream/production/loki-mixin@$BRANCH
helmDir="$(pwd)/helm/dashboards/charts/private_dashboards_al/dashboards/shared/private"

cd loki
Expand All @@ -26,8 +24,6 @@ for file in dashboards_out/*; do
# Process each file here
echo "$file"



if [[ $(basename "$file") == "loki-canary.json" ]]; then
# adds missing uid
jq '.uid = "loki-canary"' "$file" > "$file.out" && mv "$file.out" "$file"
Expand All @@ -36,6 +32,11 @@ for file in dashboards_out/*; do
jq '.uid = "loki-" + .uid' "$file" > "$file.out" && mv "$file.out" "$file"
fi

## Needed until this is fixed https://github.com/grafana/loki/pull/12846
if [[ $(basename "$file") == "loki-deletion.json" ]]; then
sed -i 's/container=\\"compactor\\"/container=\\"loki\\", pod=~\\"(loki.*|enterprise-logs)-backend.*\\"/g' "$file"
fi

echo "Copying dashboard to $helmDir"
cp "$file" "$helmDir"
done

0 comments on commit 7bd0754

Please sign in to comment.