Configure Remote Write Endpoints

You can enable a remote write to multiple endpoints from Kloudfuse.

To do that, you must configure the ingester.config.aggregator section of the custom-values.yaml files:

ingester:
  config:
    aggregator:
      metric:
        relabelConfigs:
          - source_labels:
              - deliverystreamname
            regex: test-stream
            action: remotewrite (1)
            remote_write_endpoints:
              - prod (3)
          - source_labels:
              - aws_ec2_fleet_id
            regex: fleet-0c1e3eb5-c607-ec8f-8cb2-ab82056fa651
            action: remotewrite (1)
            remote_write_endpoints:
              - test (3)
              - prod (3)
        RemoteWriteConfig:
          Enabled: true
          endpointUrls: (2)
            prod: http://prometheus1-server.kfuse-example.svc:80/api/v1/write
            test: http://prometheus2-server.kfuse-example.svc:80/api/v1/write
1 remotewrite: Use the relabel rule to route time series data to different endpoints.
2 endpointUrls: Specify aliases for endpoints. Here, they are prod and test.
3 remote_write_endpoints: Reference these aliases in the relabel rule argument, remote_write_endpoints.