ClusterPodMetric

Scope: Cluster

ClusterPodMetric is handy interface for configuring custom Pod-related metrics in prometheus-metrics-adapter.

  • spec
    object

    Required value

    • spec.query
      string

      Required value

      PromQL-query which returns unambiguous value for your metric. Use grouping operators like sum() by(), max() by() etc. Also use keywords: «.LabelMatchers» with your optional applied comma-separated labels as label selector and «.GroupBy» as group-by-labels. Example: max(mymetric{«.LabelMatchers»,queue=”messages”}) by(«.GroupBy»)

Deprecated resource. Support for the resource might be removed in a later release.

ClusterPodMetric is handy interface for configuring custom Pod-related metrics in prometheus-metrics-adapter.

  • spec
    object

    Required value

    • spec.query
      string

      Required value

      PromQL-query which returns unambiguous value for your metric. Use grouping operators like sum() by(), max() by() etc. Also use keywords: «.LabelMatchers» with your optional applied comma-separated labels as label selector and «.GroupBy» as group-by-labels. Example: max(mymetric{«.LabelMatchers»,queue=”messages”}) by(«.GroupBy»)