mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-07-21 02:05:53 +00:00
feat: add setup-grafana target and default Grafana configuration file
This commit is contained in:
@@ -223,7 +223,14 @@ deploy-gitea: pull
|
||||
set +a ;\
|
||||
docker stack deploy --compose-file ./swarm/gitea.yml gitea ;\
|
||||
}
|
||||
deploy-grafana: pull
|
||||
setup-grafana:
|
||||
{ \
|
||||
echo "Setting up grafana config on host..." ;\
|
||||
mkdir -p /var/data/grafana/provisioning/datasources /var/data/grafana/dashboards ;\
|
||||
cp -n ./swarm/grafana/grafana.ini /var/data/grafana/grafana.ini 2>/dev/null || echo "grafana.ini already exists, skipping" ;\
|
||||
cp -n ./swarm/grafana/provisioning/datasources/prometheus.yml /var/data/grafana/provisioning/datasources/prometheus.yml 2>/dev/null || echo "prometheus datasource already exists, skipping" ;\
|
||||
}
|
||||
deploy-grafana: pull setup-grafana
|
||||
{ \
|
||||
echo "Deploying the grafana stack..." ;\
|
||||
set -a ;\
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# Default Grafana configuration for the Swarm stack.
|
||||
# Copied to /var/data/grafana/grafana.ini by make setup-grafana.
|
||||
|
||||
[server]
|
||||
protocol = http
|
||||
http_port = 3000
|
||||
|
||||
[security]
|
||||
admin_user = ${ADMIN_USER:-admin}
|
||||
admin_password = ${ADMIN_PASSWORD:-admin}
|
||||
|
||||
[users]
|
||||
allow_sign_up = false
|
||||
|
||||
[analytics]
|
||||
check_for_updates = false
|
||||
reporting_enabled = false
|
||||
|
||||
[log]
|
||||
mode = console
|
||||
level = info
|
||||
|
||||
[plugins]
|
||||
install = ${GF_INSTALL_PLUGINS:-}
|
||||
Reference in New Issue
Block a user