mirror of
https://github.com/20kaushik02/real-time-traffic-analysis-clickhouse.git
synced 2025-12-06 06:44:07 +00:00
some more dashboard stuff
This commit is contained in:
parent
d5bacff369
commit
6a4cdd6b50
@ -14,7 +14,7 @@ if ($downStack) {
|
||||
Write-Output "[+] Removing stack..."
|
||||
docker stack rm $stackName
|
||||
docker service rm registry
|
||||
Start-Sleep 15
|
||||
Start-Sleep 20
|
||||
docker volume rm $(docker volume ls --filter name=$stackName -q)
|
||||
}
|
||||
elseif ($MasterNode) {
|
||||
|
||||
@ -23,7 +23,7 @@ if [[ $downStack ]]; then
|
||||
echo "[+] Removing stack..."
|
||||
docker stack rm $stackName
|
||||
docker service rm registry
|
||||
sleep 10
|
||||
sleep 20
|
||||
docker volume rm $(docker volume ls --filter name=$stackName -q)
|
||||
elif ($MasterNode); then
|
||||
echo "[+] swarm master"
|
||||
|
||||
@ -4,7 +4,9 @@ services:
|
||||
container_name: grafana
|
||||
volumes:
|
||||
- grafana-storage:/var/lib/grafana
|
||||
- ../ui/grafana_clickhouse_datasource.yaml:/etc/grafana/provisioning/datasources/clickhouse.yaml
|
||||
- ../ui/grafana_clickhouse_datasource.yaml:/etc/grafana/provisioning/datasources/clickhouse.yaml:ro
|
||||
- ../ui/grafana_dashboards.yaml:/etc/grafana/provisioning/dashboards/grafana_dashboards.yaml:ro
|
||||
- ../ui/dashboard_1.json:/var/lib/grafana/dashboards/dashboard_1.json
|
||||
networks:
|
||||
outside_net:
|
||||
aliases:
|
||||
|
||||
19
ui/grafana_dashboards.yaml
Normal file
19
ui/grafana_dashboards.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'The Web Farm'
|
||||
orgId: 1
|
||||
# <string> name of the dashboard folder.
|
||||
# <string> provider type. Default to 'file'
|
||||
type: file
|
||||
# <bool> disable dashboard deletion
|
||||
disableDeletion: false
|
||||
# <int> how often Grafana will scan for changed dashboards
|
||||
updateIntervalSeconds: 10
|
||||
# <bool> allow updating provisioned dashboards from the UI
|
||||
allowUiUpdates: false
|
||||
options:
|
||||
# <string, required> path to dashboard files on disk. Required when using the 'file' type
|
||||
path: /var/lib/grafana/dashboards
|
||||
# <bool> use folder names from filesystem to create folders in Grafana
|
||||
foldersFromFilesStructure: true
|
||||
Loading…
x
Reference in New Issue
Block a user