Send high availability data to Amazon Managed Service for Prometheus with the Prometheus Operator - Amazon Managed Service for Prometheus

Send high availability data to Amazon Managed Service for Prometheus with the Prometheus Operator

To set up a high availability configuration with the Prometheus Operator, you must apply external labels on all instances of a high availability group, so Amazon Managed Service for Prometheus can identify them. You also must set the attributes replicaExternalLabelName and externalLabels on the Prometheus Operator Helm chart.

Example: YAML header

In the following YAML header, cluster is added to externalLabel to identify a Prometheus instance agent as part of a high-availability group, and replicaExternalLabels identifies each replica in the group.

replicaExternalLabelName: __replica__ externalLabels: cluster: prom-dev