Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upWhere to get exit logs for prometheus #4030
Comments
This comment has been minimized.
This comment has been minimized.
|
It's highly likely that the prometheus was OOM killed. I see this as a usage question. If you think this is a bug, please feel free to re-open. |
gouthamve
closed this
Mar 30, 2018
This comment has been minimized.
This comment has been minimized.
|
Thanks submit a question at mail list https://groups.google.com/forum/#!topic/prometheus-users/vqhSTXPC8b8 |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
YanjieGao commentedMar 30, 2018
What did you do?
Once i meet prometheus crash for long running then hope to stress test prometheus to get the root cause of it.
First do stress test on prometheus and hope to get the exit reason when scrape very large scape logs.
i tried log level error, info, debug, warn.
I deployed use docker & config scrape 240000 samples per seconds.
sudo docker run -d -m 3g -p 9090:9090 -v /home/core/yanjie/config:/etc/prometheus prom/prometheus:v2.1.0 --config.file=/etc/prometheus/prometheus.yml --log.level=error
What did you expect to see?
Hope to see the exit logs
What did you see instead? Under which circumstances?
no stderr or error level logs tose
Environment
version:v2.1
System information: ubuntu
insert output of
uname -srmherePrometheus version: 2.1
insert output of
prometheus --versionhereAlertmanager version:
insert output of
alertmanager --versionhere (if relevant to the issue)Prometheus configuration file:
scrape_configs:
- job_name: "prometheus"
scrape_interval: "15s"
static_configs:
- targets:
- ip:9090
- job_name: 'node_exporter'
scrape_interval: "1000ms"
scrape_timeout: "1s"
kubernetes_sd_configs:
- api_server: 'http://ip:8080/'
role: node
relabel_configs:
- source_labels: [address]
regex: '(.):(.)'
replacement: '${1}:9100'
target_label: address
- job_name: 'cadvisor'
scrape_interval: "1000ms"
scrape_timeout: "1s"
kubernetes_sd_configs:
- api_server: 'http://ip:8080/'
role: node
relabel_configs:
- source_labels: [address]
regex: '(.*):10250'
replacement: '${1}:8089'
target_label: address
only get logs as follows and no other logs:

--log.level=error
No logs
--log.level=debug
no exit reason only
--log.level=info
