Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson committed Sep 18, 2024
1 parent 7bd0754 commit a9fa9b0
Show file tree
Hide file tree
Showing 11 changed files with 12,015 additions and 9 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions loki/mixin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ loki{
per_node_label: 'node',
per_cluster_label: 'cluster_id',

canary+: {
enabled: true,
},

promtail+: {
enabled: true,
operational: {
memcached: false,
consul: false,
bigTable: false,
dynamo: false,
gcs: false,
s3: true,
azureBlob: true,
boltDB: false,
},
},
}
13 changes: 10 additions & 3 deletions loki/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ BRANCH="main"
MIXIN_URL=https://github.com/grafana/loki/production/loki-mixin@$BRANCH
helmDir="$(pwd)/helm/dashboards/charts/private_dashboards_al/dashboards/shared/private"

set -x
cd loki
rm -rf vendor jsonnetfile.*

Expand All @@ -32,11 +33,17 @@ 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"
if [[ $(basename "$file") == "loki-bloom-compactor.json" ]] || [[ $(basename "$file") == "loki-bloom-gateway.json" ]]; then
rm "$file"
continue
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 a9fa9b0

Please sign in to comment.