Details
-
Bug
-
Resolution: Fixed
-
Major
-
Cheshire-Cat
-
Untriaged
-
1
-
No
Description
Summary:
It could be desirable to check the condition that, scrape_timeout not be greater than scrape_interval before allowing to set scrape_timeout (through diag/eval or the API that is planned).
Steps to Reproduce
1. Set a scrape_timeout value greater than scrape_timeout. It gets allowed and set in prometheus.yaml
2. We see the error in prometheus.log
level=error ts=2020-11-02T06:28:39.967Z caller=main.go:599 msg="Error reloading config" err="couldn't load configuration (--config.file=\"/opt/couchbase/var/lib/couchbase/config/prometheus.yml\"): parsing YAML file /opt/couchbase/var/lib/couchbase/config/prometheus.yml: global scrape timeout greater than scrape interval" |