Skip to content

Prometheus' self metrics should be scraped and remote written into Prom by Otelcol #795

@sinapah

Description

@sinapah

Enhancement Proposal

We define quite extensive bundled alert rules for Prometheus. In COS Lite, we rely on Prometheus' self monitoring to monitor the health of Prom itself. However, one disadvantage of this approach is that we don't get the benefit of those bundled rules and Prom only relies on the generic alert rules coming from cosl. To get the benefit of these bundled rules, we should have Otelcol scrape Prom and remote write the scraped metrics into Prom, similar to what we do with Mimir in COS.

The way I see it, there are scenarios for how Prometheus can be deployed. The list below outlines what we should do in each:

  1. Prometheus on its own in non-standard COS deployments: if we just have Prom on its own, we can continue doing what we do already - that is, use Prom's self-mon to monitor health.
  2. If we have Prometheus inside COS Lite AND there is a self-metrics-endpoint relation, the Prometheus charm should NOT write a self-mon scrape job and instead, self monitoring will come from Otelcol.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions