Last active
July 28, 2021 16:35
-
-
Save vilaca/f238b6176383e2ccdf9a4fe27e900f3d to your computer and use it in GitHub Desktop.
VictoriaMetrics w/ lx sensor data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "3.1" | |
services: | |
grafana: | |
depends_on: | |
- victoriametrics | |
image: "grafana/grafana:8.0.5" | |
ports: | |
- "80:3000" | |
restart: always | |
volumes: | |
- "./storage/grafana:/var/lib/grafana" | |
- "./grafana/provisioning/:/etc/grafana/provisioning/" | |
importer: | |
build: ./importer/. | |
image: importer | |
ports: | |
- "8080:8080" | |
restart: always | |
victoriametrics: | |
command: | |
- "--storageDataPath=/storage" | |
- "--graphiteListenAddr=:2003" | |
- "--opentsdbListenAddr=:4242" | |
- "--httpListenAddr=:8428" | |
- "--influxListenAddr=:8089" | |
container_name: victoriametrics | |
image: victoriametrics/victoria-metrics | |
ports: | |
- "8428:8428" | |
- "8089:8089" | |
- "8089:8089/udp" | |
- "2003:2003" | |
- "2003:2003/udp" | |
- "4242:4242" | |
restart: always | |
volumes: | |
- "vmdata:/storage" | |
vmagent: | |
command: | |
- "--promscrape.config=/etc/prometheus/prometheus.yml" | |
- "--remoteWrite.url=http://victoriametrics:8428/api/v1/write" | |
container_name: vmagent | |
depends_on: | |
- victoriametrics | |
- importer | |
image: victoriametrics/vmagent | |
ports: | |
- "8429:8429" | |
restart: always | |
volumes: | |
- "vmagentdata:/vmagentdata" | |
- "./prometheus.yml:/etc/prometheus/prometheus.yml" | |
volumes: | |
vmagentdata: {} | |
vmdata: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment