version: '2.1'
networks:
monitor-net:
driver: bridge
services:
prometheus:
image: prom/prometheus:v2.1.0
container_name: prometheus
volumes:
- ~/promethesu.yaml:/etc/prometheus/prometheus.yml
- ~/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention=2d'
- '--storage.local.target-heap-size=2G'
- '--storage.local.num-fingerprint-mutexes=10960'
restart: unless-stopped
expose:
- 9090
ports:
- "8089:9090"
networks:
- monitor-net
labels:
org.label-schema.group: "monitoring"
the prometheus report the error:
prometheus: error: unknown long flag '--storage.local.target-heap-size'
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/b6b2cb74-bc73-41fa-8a97-51aaa6928f8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.