grafana / k8s-monitoring-helm

Apache License 2.0
191 stars 76 forks source link

Add the ability to deploy a remotecfg block #779

Open petewall opened 3 days ago

petewall commented 3 days ago

This would enable the alloy instances deployed by the chart to be interoperable with the fleet management work.

petewall commented 3 days ago

There can only be one remotecfg, so add something like this inside each alloy instance block:

  remoteConfig:
    url: ""
    auth:
      type: "basic"
      username: ""
      password: ""
    id: <cluster-name>-<namespace>-<pod-name>
    pollFreq: 60s
    attributes:
      platform: kubernetes
      workloadType: statefulset
petewall commented 3 days ago

https://grafana.com/docs/alloy/next/reference/config-blocks/remotecfg/