diff --git a/docker-compose.yml b/docker-compose.yml index 3512fde..0ac48f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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] diff --git a/grafana.ini b/grafana.ini index d2cb5fc..849bc99 100644 --- a/grafana.ini +++ b/grafana.ini @@ -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] diff --git a/prometheus.yml b/prometheus.yml index 04f1e43..6558029 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -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