diff --git a/docker/README.md b/docker/README.md index c99b8e7..eb4754a 100644 --- a/docker/README.md +++ b/docker/README.md @@ -111,8 +111,9 @@ Once started, you will see the following applications: * Grafana - http://localhost:3000 - default creds can be see in `./config/grafana/grafana.ini` * Service discovery - http://localhost:8000 -After 5-10 minutes you should see targets discovered in prometheus on the [targets page](http://localhost:9090/targets?search=). Initially, they might apear in red and if you keep monitoring they should -slowly start getting blue, which means that the targets are successfuly scraped. +After 5-10 minutes you should see targets discovered in victoria on the [targets page](http://localhost:9090/targets). +Initially, they might apear in red and if you keep monitoring they should +slowly start getting green, which means that the targets are successfuly scraped. You should also see some data incoming in the grafana [sample dashboard for the node exporter](http://localhost:3000/d/1/node-exporter?orgId=1&from=now-3h&to=now&timezone=utc&var-datasource=prometheus&var-instance=$__all&var-diskdevice=%5Ba-z%5D%2B%7Cnvme%5B0-9%5D%2Bn%5B0-9%5D%2B%7Cmmcblk%5B0-9%5D%2B). @@ -202,7 +203,7 @@ curl http://localhost:8000/prom/targets?node_provider_id=&dc_i *NOTE*: The initial sync of service discovery may take up to 15 minutes! Syncing will be clearly logged in the multiservice discovery. -### Prometheus +### Victoria #### No targets visible in targets view diff --git a/docker/config/prometheus/config-template.yaml b/docker/config/prometheus/config-template.yaml index 25da4d1..9651235 100644 --- a/docker/config/prometheus/config-template.yaml +++ b/docker/config/prometheus/config-template.yaml @@ -28,7 +28,6 @@ anchors: http_configs: &http_configs http_sd_configs: - url: http://multiservice-discovery:8000/prom/targets - refresh_interval: 15s global: # Change this to control how frequently prometheus diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 910997c..3713a75 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -12,17 +12,19 @@ services: volumes: - ./volumes/msd:/msd - prometheus: - image: quay.io/prometheus/prometheus:v2.51.1 + victoriametrics: + image: victoriametrics/victoria-metrics:v1.97.1 network_mode: host volumes: - ./config/prometheus:/config - - ./volumes/prometheus/:/prometheus + - ./volumes/victoria/:/victoria command: - - --config.file - - /config/config.yaml - - --storage.tsdb.path=/prometheus - - --storage.tsdb.retention.time=6m + - --storageDataPath=/victoria + - --httpListenAddr=:9090 + - --retentionPeriod=1y + - --promscrape.config=/config/config.yaml + - --promscrape.configCheckInterval=30s + - --enableTCP6=true user: "${UID}:${GID}" deploy: resources: @@ -40,3 +42,5 @@ services: - ./config/grafana:/etc/grafana - ./volumes/grafana:/var/lib/grafana user: "${UID}:${GID}" + depends_on: + - victoriametrics diff --git a/docker/volumes/prometheus/.gitignore b/docker/volumes/victoria/.gitignore old mode 100755 new mode 100644 similarity index 100% rename from docker/volumes/prometheus/.gitignore rename to docker/volumes/victoria/.gitignore