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

View file

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

View file

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