Grafana Agent direct deployment
Grafana Agent is a lightweight telemetry collector based on Prometheus that only performs its scraping and remote_write
functions. Agent can also collect metrics, logs, and traces for storage in Grafana Cloud and Grafana Enterprise, as well as OSS deployments of Loki (logs), and Tempo (traces), Prometheus (metrics), and Cortex (metrics). Grafana Agent also contains several integrations (embedded metrics exporters) like node-exporter, a MySQL exporter, and many more.
Note: While it is theoretically possible to configure the same Agent DaemonSet to collect and ship both metrics and logs to Grafana Cloud, support for this deployment model is currently minimal and under active development. For best results, deploy the following:
- A StatefulSet or Deployment of Agents to collect metrics (similar to how you’d roll out Prometheus)
- A DaemonSet to collect logs
- A Deployment or DaemonSet to collect traces
- Additional Deployments and/or DaemonSets to export metrics using embedded integrations
Metrics
To learn how to scrape metrics, please see Grafana Agent Metrics Kubernetes quickstart.
Logs
Grafana Agent contains an embedded Promtail that allows you ship logs to Loki using the same Agent binary. For instructions on deploying Grafana Agent for logs, see Grafana Agent Logs Kubernetes quickstart.
Traces
You can ship traces to Grafana Cloud using Grafana Agent. To learn how, see Grafana Agent Traces Kubernetes quickstart.
To learn more about Grafana Agent and traces, see the Grafana Agent Tempo docs.
Grafana Agent Operator (beta)
Grafana Agent Operator is a Prometheus Operator inspired project that allows you configure Grafana Agent using Kubernetes custom resources. To learn more, see Kubernetes Agent Operator (beta).
Related Grafana Cloud resources
Intro to Prometheus and Grafana Cloud
Prometheus is taking over the monitoring world! In this webinar, we will start with a quick introduction to the open source project that’s the de facto standard for monitoring modern, cloud native systems.
How to set up and visualize synthetic monitoring at scale with Grafana Cloud
Learn how to use Kubernetes, Grafana Loki, and Grafana Cloud’s synthetic monitoring feature to set up your infrastructure's checks in this GrafanaCONline session.
Using Grafana Cloud to drive manufacturing plant efficiency
This GrafanaCONline session tells how Grafana helps a 75-year-old manufacturing company with product quality and equipment maintenance.