Path: blob/main/production/kubernetes/build/templates/base/main.jsonnet
4096 views
local agent = import 'grafana-agent/grafana-agent.libsonnet'; agent { _images+:: { agent: (import 'version.libsonnet'), }, _config+:: { namespace: '${NAMESPACE}', agent_remote_write: [{ url: '${REMOTE_WRITE_URL}', basic_auth: { username: '${REMOTE_WRITE_USERNAME}', password: '${REMOTE_WRITE_PASSWORD}', }, }], // Since the config map isn't managed by Tanka, we don't want to // add the configmap's hash as an annotation for the Kubernetes // YAML manifest. agent_config_hash_annotation: false, }, }