## Overview
This article describes how OpenNMS is configured to collect and store metrics from an external Kubernetes cluster using Prometheus as the data source. It covers what is collected, how the collection pipeline is structured, and how data is persisted in RRD storage for threshold evaluation.
## Collection Architecture
The Kubernetes cluster exposes Prometheus metrics on port 9090. OpenNMS Collectd connects to that endpoint and issues PromQL queries on a 30-second polling interval. Results are written as JRB files into the OpenNMS RRD store. Threshold definitions then evaluate those files continuously and generate events when values cross defined limits.
Collectd -> Prometheus (:9090) -> PromQL -> JRB (RRD) -> Threshold Engine -> Events