Static mode
Static mode is the original mode of Grafana Agent. Static mode is composed of different subsystems:
The metrics subsystem wraps around Prometheus for collecting Prometheus metrics and forwarding them over the Prometheus
remote_write
protocol.The logs subsystem wraps around Grafana Promtail for collecting logs and forwarding them to Grafana Loki.
The traces subsystem wraps around OpenTelemetry Collector for collecting traces and forwarding them to Grafana Tempo or any OpenTelemetry-compatible endpoint.
Static mode is configured with a YAML file.
Static mode works with:
- Grafana Cloud
- Grafana Enterprise Stack
- OSS deployments of Grafana Loki, Grafana Mimir, Grafana Tempo, and Prometheus
This topic helps you to think about what you’re trying to accomplish and how to use Grafana Agent to meet your goals.
You can set up and configure Grafana Agent in static mode manually, or you can follow the common workflows described in this topic.
Topics
Static mode Grafana Agent for Grafana Cloud integrations
There are different ways for you to set up Grafana Agent to scrape data—through Grafana’s integration platform or directly. Select a guide to get started:
Topic | Description |
---|---|
Get started with monitoring using an integration | Walk through installing a Linux integration using Grafana Agent in the Grafana Cloud interface. |
Install and manage integrations | View general steps for using Grafana Cloud integrations to install Grafana Agent to collect data. See supported integrations. |
Ship your metrics to Grafana Cloud without an integration | If you want to ship your Prometheus metrics to Grafana Cloud but there isn’t an integration available, you can use a Prometheus exporter and deploy Grafana Agent to scrape your local machine or service. |
Change your metrics scrape interval | Learn about reducing your total data points per minute (DPM) by adjusting your scrape interval. |
Static mode Grafana Agent for Kubernetes Monitoring
Grafana Kubernetes Monitoring provides a simplified approach to monitoring your Kubernetes fleet by deploying Grafana Agent with useful defaults for collecting metrics. Select a guide to get started monitoring Kubernetes:
Topic | Description |
---|---|
Configure Kubernetes Monitoring using Agent | Use the Kubernetes Monitoring solution to set up monitoring of your Kubernetes cluster and to install preconfigured dashboards and alerts. |
Ship Kubernetes traces using Grafana Agent directly | Deploy Grafana Agent into your Kubernetes cluster as a deployment and configure it to collect traces for your Kubernetes workloads. |
Use Grafana Agent directly to scrape telemetry data
Grafana Cloud integration workflows and the Kubernetes Monitoring solution are the easiest ways to get started collecting telemetry data, but sometimes you might want to use a manual approach to set your configuration options.
Topic | Description |
---|---|
Install or uninstall Grafana Agent | Install or uninstall Grafana Agent. |
Troubleshoot Cloud Integrations installation on Linux | Troubleshoot common errors when executing the Grafana Agent installation script on Linux. |
Troubleshoot Cloud Integrations installation on Mac | Troubleshoot common errors when executing the Grafana Agent installation script on Mac. |
Troubleshoot Cloud Integrations installation on Windows | Troubleshoot common errors when executing the Grafana Agent installation script on Windows. |
Use Grafana Agent to send logs to Grafana Loki
Logs are included when you set up a Cloud integration but you can take a more hands-on approach with the following guide.
Topic | Description |
---|---|
Collect logs with Grafana Agent | Install Grafana Agent to collect logs for use with Grafana Loki, included with your Grafana Cloud account. |
Use Grafana Agent to send traces to Grafana Tempo
Topic | Description |
---|---|
Set up and use tracing | Install Grafana Agent to collect traces for use with Grafana Tempo, included with your Grafana Cloud account. |
Use Grafana Agent as a tracing pipeline | Grafana Agent can be configured to run a set of tracing pipelines to collect data from your applications and write it to Grafana Tempo. Pipelines are built using OpenTelemetry, and consist of receivers, processors, and exporters. |
Was this page helpful?
Related resources from Grafana Labs
![Getting started with the Grafana LGTM Stack](/static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=200 200w, /static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=400 400w)
![Intro to Kubernetes monitoring in Grafana Cloud](/media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=200 200w, /media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=400 400w)
![Building advanced Grafana dashboards](/media/webinar/AMER_buildadv_notxt.png?w=200 200w, /media/webinar/AMER_buildadv_notxt.png?w=400 400w)