docker-compose prometheus: error: unknown long flag '--storage.local.target-heap-size'

3,404 views
Skip to first unread message

zhensh...@gmail.com

unread,
May 22, 2018, 4:36:37 AM5/22/18
to Prometheus Developers
When I use this docker-compose.yml to start prometheus

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'

Simon Pasquier

unread,
May 22, 2018, 4:57:00 AM5/22/18
to zhensh...@gmail.com, Prometheus Developers

This is a usage question that is better suited for the Prometheus users list:

You're using Prometheus 1.x flags with a 2.x image. See https://prometheus.io/docs/prometheus/latest/migration/
 

--
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.

Reply all
Reply to author
Forward
0 new messages