Configure the collection paths required for Kubernetes inventory, object metrics, kubelet statistics, and Prometheus exporters.

Configure collection settings

Set these options in the AutoI Helm chart’s values.yaml file. For Kubernetes object metrics, config.k8sCluster.enabled also requires provider observability and endpoints.promMetricEndpoint. Check the selected export path and its prerequisites in the values reference for your chart version.

config:
  enablePromScraping: true
  kubeletStats:
    enabled: true
    scrapeIntervalSeconds: 60
    pushIntervalSeconds: 60
  k8sCluster:
    enabled: true
    collectionIntervalSeconds: 120

Choose collection paths

The config.* options below are Helm values, not custom-resource fields.

CapabilityConfiguration
Kubernetes InventorySet config.k8sProviderObservabilityEnable: true and provide masterUuid, sdkAppName, and appConfigId.
Kubernetes Object MetricsSet config.k8sCluster.enabled: true.
Kubelet Resource StatisticsSet config.kubeletStats.enabled: true.
Prometheus Exporter ScrapingSet config.enablePromScraping: true and configure matching monitors.

Inventory discovery alone does not enable every metrics collection path.

Select exporter endpoints

Use a WavePodMonitor to select pods or a WaveServiceMonitor to select Services.

Pod monitor

This example selects pods labeled app: example-app in team-a and scrapes /metrics on the named metrics port every two minutes.

apiVersion: autoi.config.opsramp.com/v1
kind: WavePodMonitor
metadata:
  name: example-pod-monitor
  namespace: opsramp-autoi
spec:
  namespaceSelector:
    matchNames: [team-a]
  selector:
    matchLabels:
      app: example-app
  podMetricsEndpoints:
    - port: metrics
      path: /metrics
      interval: 2m

Service monitor

Use a WaveServiceMonitor to select Services by their labels:

apiVersion: autoi.config.opsramp.com/v1
kind: WaveServiceMonitor
metadata:
  name: bank-api
  namespace: opsramp-autoi
spec:
  namespaceSelector:
    matchNames:
      - qa-bank-app
  selector:
    matchLabels:
      app: bank-api
  endpoints:
    - port: metrics
      path: /metrics
      interval: 30s

The selector must match the target Service’s labels. endpoints[].port refers to a named port on that Service, and the named port must exist. Ensure eworker/exporter can reach the selected Service endpoint.

Inspect monitors

kubectl get wpm,wsm -n opsramp-autoi
kubectl describe wpm example-pod-monitor -n opsramp-autoi

If metrics are missing, check:

  • config.enablePromScraping
  • Namespace and label selectors
  • Named ports and metrics paths
  • Exporter health
  • Endpoint connectivity
  • Integration identifiers
  • Required Kubernetes permissions

Configure local metric retention

Enable components.localPrometheus.enabled when local metric retention or rule evaluation is required.

A retention resource selects metric names for local use. It does not configure scraping.

apiVersion: autoi.config.opsramp.com/v1
kind: WaveClusterObservabilityMetricRetention
metadata:
  name: example-metric-retention
  namespace: opsramp-autoi
spec:
  metricNames: [DCGM_FI_DEV_GPU_UTIL]

For rule evaluation, also enable config.enablePromTsRules and configure WaveTimeSeriesRule resources. See Configure alerts and health monitoring.