make dashboard public, drop other monitoring

This commit is contained in:
Alex Grintsvayg 2021-11-01 19:13:30 +00:00
parent c8fc20a94f
commit 9f5db93246
3 changed files with 30 additions and 28 deletions

View file

@ -18,7 +18,7 @@ services:
- 9090:9090
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana:latest
environment:
@ -34,14 +34,14 @@ services:
ports:
- 3000:3000
node-exporter:
image: prom/node-exporter:latest
container_name: monitoring_node_exporter
restart: unless-stopped
volumes:
- "/:/host:ro,rslave"
command:
- "--path.rootfs=/host"
pid: host
#network_mode: host
expose: [9100]
# node-exporter:
# image: prom/node-exporter:latest
# container_name: monitoring_node_exporter
# restart: unless-stopped
# volumes:
# - "/:/host:ro,rslave"
# command:
# - "--path.rootfs=/host"
# pid: host
# #network_mode: host
# expose: [9100]

View file

@ -395,7 +395,7 @@ sigv4_auth_enabled = false
#################################### Anonymous Auth ######################
[auth.anonymous]
# enable anonymous access
enabled = false
enabled = true
# specify organization name that should be used for unauthenticated users
org_name = Main Org.
@ -404,7 +404,7 @@ org_name = Main Org.
org_role = Viewer
# mask the Grafana version number for unauthenticated users
hide_version = false
hide_version = true
#################################### GitHub Auth #########################
[auth.github]

View file

@ -2,6 +2,7 @@ global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
@ -9,23 +10,24 @@ alerting:
scheme: http
timeout: 10s
api_version: v1
scrape_configs:
- job_name: prometheus
honor_timestamps: true
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:9090
- node-exporter:9100
#- job_name: prometheus
# honor_timestamps: true
# metrics_path: /metrics
# scheme: http
# static_configs:
# - targets:
# - localhost:9090
# - node-exporter:9100
- job_name: grafana
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:3000
#- job_name: grafana
# metrics_path: /metrics
# scheme: http
# static_configs:
# - targets:
# - localhost:3000
- job_name: dht
metrics_path: /metrics