Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-42436

[Prometheus] Scrape timeout to be less than Scrape Interval

    XMLWordPrintable

Details

    • 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"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sumedh.basarkod Sumedh Basarkod (Inactive)
            sumedh.basarkod Sumedh Basarkod (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty