-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Testing the `prometheus_remote_write` sink
Pavlos Rontidis edited this page Aug 10, 2023
·
5 revisions
git clone https://github.com/grafana/agent.git grafana-agent
cd /path/to/grafana-agent/example/docker-compose
docker-compose up -d
# when you are done testing, run the following command:
docker compose -f deployment/docker/docker-compose-cluster.yml stop
sources:
internal_metrics:
scrape_interval_secs: 5
type: internal_metrics
sinks:
victoriametrics:
inputs:
- internal_metrics
endpoint: http://localhost:9009/api/v1/push
type: prometheus_remote_write
request:
concurrency: adaptive
git clone https://github.com/VictoriaMetrics/VictoriaMetrics
cd VictoriaMetrics
docker compose -f deployment/docker/docker-compose-cluster.yml up -d
# when you are done testing, run the following command:
docker compose -f deployment/docker/docker-compose-cluster.yml stop
sources:
internal_metrics:
scrape_interval_secs: 5
type: internal_metrics
sinks:
victoriametrics:
inputs:
- internal_metrics
endpoint: http://localhost:8480/insert/0/prometheus
type: prometheus_remote_write
request:
concurrency: adaptive