Skip to content

Instantly share code, notes, and snippets.

@vilaca
Last active Jul 28, 2021
Embed
What would you like to do?
VictoriaMetrics w/ lx sensor data
---
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