Create an Exporter
Exporter is a Custom Resource (CR) that represents a Monitoring Exporter pipeline on the Management Cluster. This guide walks through creating one end to end.
Prerequisites
Before creating an Exporter CR, ensure the following:
- The Monitoring Extension is installed. See Installation.
- Crossplane, the required functions (
function-extra-resources,function-go-templating,function-sequencer,function-auto-ready), and the Helm and Kubernetes providers are all running and healthy. - A PromQL-compatible metrics source is reachable from the Management Cluster. The composition defaults to
http://mimir-gateway.cennso-monitoring/prometheuswhenspec.source.metricsURLis omitted; explicitly setting the URL is recommended. - If the sink requires OAuth 2.0 authentication, the credentials Secret exists in the target namespace before the
Exporteris applied.
For more details about the Exporter API, see the Exporter concept page.
Steps
Create the OAuth2 credentials Secret in the namespace where you will create the
Exporter. The Secret must contain the four keys that the Telegraf configuration expects:bashThe
api_endpointkey must hold the exact URL of the ingest gateway that accepts the NDJSON document stream. The Telegrafoutputs.httpplugin POSTs to this URL verbatim.Create a YAML file for your
ExporterCR (for example:exporter.yaml) and configure it according to your needs:yamlFor more details about the
ExporterCRD, refer to the Exporter API reference.Apply the
ExporterCR to your Management Cluster:bash
Verification
To verify that the Exporter pipeline is running, follow these steps:
Check whether the CR is synced and ready:
bashSample output:
bashConfirm the ConfigMap with the rendered Telegraf configuration was created:
bashCheck that the Helm Release was created and is deployed:
bashVerify the Telegraf pod is running and has loaded the expected plugins:
bashA healthy pod logs lines such as
Loaded inputs: internal promql,processors: rename,secretstores: cennso_oauth, andoutputs: http prometheus_clientwith noUnauthorized (401)errors.Confirm that ECS-compliant documents are being indexed. Query the Elasticsearch index directly:
bashThe response should contain documents with
orchestrator.*,container.name,host.name, andservice.nameas nested objects at the document root, alongside@timestampand the metric value nested under the measurement name.