ClusterDeploymentMetric
Scope: Cluster
ClusterDeploymentMetric is handy interface for configuring custom Deployment-related metrics in prometheus-metrics-adapter.
- spec
Required value
- spec.query
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»)
ClusterDeploymentMetric is handy interface for configuring custom Deployment-related metrics in prometheus-metrics-adapter.
- spec
Required value
- spec.query
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»)