- "Grafana Alloy is an open source OpenTelemetry Collector distribution with built-in Prometheus pipelines and support for metrics, logs, traces, and profiles." -- https://github.com/grafana/alloy
- Main docs
- Chart source
- All default values
We deploy two charts for alloy:
- alloy-config -- A simple locally-managed chart to deploy a ConfigMap containing Alloy config files
- The actual Alloy chart provided by Grafana
The default values template for the alloy deployment itself can be found in config/alloy/. The full list of available helm values can be found here.
Note: Currently, the only configurable option in the default values is the container runtime, which customizes some specific volume mounts the alloy container reads for cAdvisor metrics. Accepted values:
docker|crio|containerd.
The alloy-config chart contains the alloy specification for a full pipeline to scrape logs and metrics depending on the values provided. See the values for the default environment for explanation of some options. Components will be created as needed depending on which local or remote exporter values are set.
For internal deployment values, see the ais-infra repo.
For remote writes, you'll need to authenticate with a secret. Follow the instructions in the vault directory and reference the Gitlab wiki to set up a secret in your target k8s cluster.
helmfile -e ais-qa template
helmfile -e ais-qa sync
By default, the alloy deployment creates a service alloy in the monitoring namespace with port 12345.
To port-forward for debugging, you can run the following command:
kubectl port-forward -n monitoring svc/alloy 12345:12345To force a config reload to test a config update, simply make an API call to this service:
curl -X POST http://localhost:12345/-/reloadTo view the full config as created in the ConfigMap:
kubectl get configmap alloy-config \
-n monitoring \
-o "jsonpath={.data['config\\.alloy']}" > alloy-config.yaml