Skip to content

Commit 7198bc5

Browse files
committed
feat: move dashboards inside a default dir
This will ease the configuration of external guest users: while administrators will have access to default dir, guest users can be authorized to access another directory
1 parent 9668f91 commit 7198bc5

File tree

10 files changed

+13
-0
lines changed

10 files changed

+13
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

imageroot/etc/dashboards/network_traffic_by_client.json renamed to imageroot/etc/dashboards/default/network_traffic_by_client.json

File renamed without changes.

imageroot/etc/dashboards/network_traffic_by_host.json renamed to imageroot/etc/dashboards/default/network_traffic_by_host.json

File renamed without changes.
File renamed without changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
#
4+
# Copyright (C) 2025 Nethesis S.r.l.
5+
# SPDX-License-Identifier: GPL-3.0-or-later
6+
#
7+
8+
if [ -f secret.env ] && ! grep -q "^PROMETHEUS_AUTH_USERNAME=" "$secrets_env"; then
9+
prometheus_user=prometheus_$RANDOM
10+
prometheus_secret=$(uuidgen | sha256sum | awk '{print $1}')
11+
echo "PROMETHEUS_AUTH_USERNAME=$prometheus_user" >> secret.env
12+
echo "PROMETHEUS_AUTH_PASSWORD=$prometheus_secret" >> secret.env
13+
fi

0 commit comments

Comments
 (0)