Uploaded image for project: 'OpenShift Monitoring'
  1. OpenShift Monitoring
  2. MON-3687

Compare resource usage of prometheus in agent mode vs server

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • agent vs server resources
    • False
    • None
    • False
    • Not Selected
    • NEW
    • To Do
    • MON-3156Upstream improvements
    • NEW

      For telemetry only use cases it seems desirable to use Prometheus agent mode, since on the surface we only want to forward data.

      This however comes with the big trade-off of not being able to deploy recording rules (and alerts). With an agent strategy for telemetry sending we would have to move all aggregation (normally handled by recording rules) and down sampling* to the telemeter receiving side. This could massively increase resource usage on the telemeter side (however not the topic of this research). 

      The goal of this epic is to quantify the difference in prometheus resource usage for two scenarios:

      1. A prometheus agent scraping data and remote writing that data to a target at scrape frequency.
      2. A prometheus server scraping data and evaluating recording rules at scrape frequency.

      The dataset scraped should be fairly small, to mimic the telemetry use case, not more then a few thousands of time series. The server deployment should have a very short retention period (2h). It could be worth it to configure smaller -storage.tsdb.min-block-duration and -storage.tsdb.max-block-duration for the server instance.

      • Down sampling here refers to the the difference between the telemetry interval (5m) and the scrape interval (usually 30s). To get accurate recording rule results data has to be present at a higher resolution compared to the telemetry resolution.

      COO can be used to accomplish this, since we install the prometheusagents CRD. One only has to create a PrometheusAgent CR manually.

              Unassigned Unassigned
              jfajersk@redhat.com Jan Fajerski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: