|tagger||Craig Peterson <email@example.com>||Tue May 03 09:56:45 2022 -0400|
|author||Craig Peterson <firstname.lastname@example.org>||Mon May 02 18:50:25 2022 -0400|
|committer||Craig Peterson <email@example.com>||Mon May 02 18:50:25 2022 -0400|
Final prep for v0.24.2
Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack. It works best with:
Users of Prometheus operating at a massive scale (i.e., millions of active series) can struggle to run an unsharded singleton Prometheus instance: it becomes a single point of failure and requires a giant machine with a lot of resources allocated to it. Even with proper sharding across multiple Prometheus instances, using Prometheus to send data to a cloud vendor can seem redundant: why pay for cloud storage if data is already stored locally?
The Grafana Agent uses the same code as Prometheus, but tackles these issues by only using the most relevant parts of Prometheus for interaction with hosted metrics:
On top of these, the Grafana Agent enables easier sharding mechanisms that enable users to shard Agents across their cluster and lower the memory requirements per machine.
A typical deployment of the Grafana Agent for Prometheus metrics can see up to a 40% reduction in memory usage with equal scrape loads.
The Grafana Agent it can be used to send Prometheus metrics to any system that supports the Prometheus
By heavily optimizing Prometheus for remote write and resource reduction, some trade-offs have been made:
While the Agent can't use recording rules and alerts,
remote_write systems such as Cortex currently support server-side rules and alerts. Note that this trade-off means that reliability of alerts are tied to the reliability of the remote system and alerts will be delayed at least by the time it takes for samples to reach the remote system.
When using Kubernetes this link offers the best guide.
Other installation methods can be found in our Production documentation.
More detailed documentation is provided as part of the repository.
example/ folder contains docker-compose configs and a local k3d/Tanka environment. Both examples deploy the Agent, Cortex and Grafana for testing the agent. See the docker-compose README and the k3d example README for more information.
The Grafana Agent vendors a downstream Prometheus repository maintained by Grafana Labs. This is done so experimental features Grafana Labs wants to contribute upstream can first be tested and iterated on quickly within the Agent. We aim to keep the experimental changes to a minimum and upstream changes as soon as possible.
For more context on our vendoring strategy, read our downstream repo maintenance guide.
If you have any questions or feedback regarding the Grafana Agent:
Any contributions are welcome and details can be found in our contributors guide.