Pushing Metrics using Remote Write
Push Prometheus metrics directly to groundcover.
Send Prometheus metrics to groundcover using the Remote Write protocol for direct ingestion from external sources or non-Kubernetes environments.
Sending from Kubernetes
The recommended way to ship data via remote write in Kubernetes it by writing directly to the sensors deployed by groundcover.
Finding the groundcover Sensor Service Endpoint
Use the instructions here to locate the endpoint for the Sensor service, referenced below as {GROUNDCOVER_SENSOR_ENDPOINT}.
No ingestion key is needed when sending data inside Kubernetes clusters.
Setting up remote write
Prometheus (prometheus.yml):
remote_write:
- url: "https://{GROUNDCOVER_SENSOR_ENDPOINT}/api/v1/write"vmagent (flags):
-remoteWrite.url=https://{GROUNDCOVER_SENSOR_ENDPOINT}/api/v1/writeSending from Non-Kubernetes
The recommended way to ship data from Non-Kubernetes hosts is to the BYOC ingestion endpoint.
Get your InCloud site address
Find your inCloud site in your installation values.yaml:
global:
ingress:
site: {inCloud_Site}Create an ingestion key
See how in the ingestion key docs.
Set up Remote Write
Examples
Prometheus (prometheus.yml):
remote_write:
- url: "https://{inCloud_Site}/api/v1/write"
headers:
apikey: "{ingestion-key}"
x-groundcover-service-name: "my-service-name"
x-groundcover-env-name: "my-env"vmagent (flags):
-remoteWrite.url=https://{inCloud_Site}/api/v1/write
-remoteWrite.headers=apikey:{ingestion-key}^^x-groundcover-service-name:my-service-name^^x-groundover-env-name:my-envLast updated
