Prometheus scraping logs from another prometheus

3/21/2021

I have prometheus installed in a kubernetes cluster which should do remote_write to another prometheus. The second prometheus does a remote read. Tell me how to set it up correctly.

prometheus.yml in kubernetes:

remote_write:
- url: http://192.168.0.103:9090/receive
  remote_timeout: 30s
  queue_config:
    capacity: 2500
    max_shards: 200
    min_shards: 1
    max_samples_per_send: 500
    batch_send_deadline: 5s
    min_backoff: 30ms
    max_backoff: 100ms
  metadata_config:
    send: true
    send_interval: 1m

Prometheus.yml in another machine(reader)

remote_read:
- url: https://prometheus.example.com/receive
  remote_timeout: 1m
-- user417675
kubernetes
kubernetes-helm
prometheus

0 Answers