Agent
Setting Up With Thanos
Configuring external_labels for Thanos
Due to the way we extract node and container information from the Prometheus metrics aggregated by Thanos, we recommend that the keys configured for podLabel
, nodeLabel
and containerLabel
be renamed if already used in your Prometheus external labels.
Setting up the thanos receive component
Due to availability concerns with using the sidecar, we HEAVILY RECOMMEND using the thanos receive
component which emulates all the realtime results of Prometheus that the agent needs to get metrics.
Kindly review the setup docs here and configure the remote_write sections of your prometheus installation(s).
Here's a sample of the prometheus configuration desired to work with the thanos receive
component
Configuring the Querier With The Replex Agent
The Querier / Query Gateway is a part of the thanos components which provides a Prometheus compatible endpoint that works just fine with the replex agent.
If you have a Thanos instance set up, verify there is support for access to this endpoint using a simple curl command, replace THANOS_QUERIER_URL
with the url of your thanos instance
This should provide reasonable output similar to this which indicates that endpoint is prometheus compatible and would work with the agent.
From the previous guide, provide the THANOS_QUERIER_URL
under the prometheus.url variable as depicted in the agent docs presented in this section, and you're up and running with Thanos on Replex.
Configuring Self-Signed SSL Certificates (On-Prem Only)
For on-prem pushgateway deployments, if the puhgateway is served with a self-signed SSL certificate, the agent may encounter errors when trying to sync with the pushgateway.
To resolve this, you can use the sslCertificate
Helm chart parameter to pass your certificate into the agent.
Example:
Filesystem Metrics (Prometheus)
This section is only for setups using prometheus as metrics provider. We use metrics from different sources for collecting PVC informations. The default setting uses cAdvisor's kubelet_volume*
metrics.
cAdvisor
The default setup uses the cAdvisor
metrics to get the PVC informations. In that case the METRICS_FILESYSTEM
environment variable can be left at the default value that is cadvisor
.
Metrics used:
CSI
If kubelet_volume*
metrics are not available and you are using CSI plugins, you must set the METRICS_FILESYSTEM
environment variable to csi
. In that case kube-state-metrics is required. For csi
, we get the PVC informations from the node_exporter
and kube-state-metrics
metrics.
Metrics used:
Exposed Metrics
The Agent self exposes metrics. The metrics can be accessed via the /metrics
route on port :8083
.
Used Metrics
These are the metrics the agent currently uses:
Environment Variables
Last updated