-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cd5248
commit bb974be
Showing
13 changed files
with
210 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Test Versioned Files | ||
on: pull_request | ||
jobs: | ||
regenerate-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Regenerate versioned files | ||
run: | | ||
make generate-versioned-files | ||
if ! git diff --exit-code; then | ||
echo "Newly generated versioned files differ from those checked in. Make sure to only update the templates manually and run 'make generate-versioned-files'!" >&2 | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
--- | ||
aliases: | ||
- /docs/grafana-cloud/agent/ | ||
- /docs/grafana-cloud/monitor-infrastructure/agent/ | ||
- /docs/grafana-cloud/monitor-infrastructure/integrations/agent/ | ||
canonical: https://grafana.com/docs/agent/latest/ | ||
title: Grafana Agent | ||
description: Grafana Agent is a flexible, performant, vendor-neutral, telemetry collector | ||
weight: 350 | ||
cascade: | ||
AGENT_RELEASE: $AGENT_VERSION | ||
--- | ||
|
||
# Grafana Agent | ||
|
||
Grafana Agent is a vendor-neutral, batteries-included telemetry collector with | ||
configuration inspired by [Terraform][]. It is designed to be flexible, | ||
performant, and compatible with multiple ecosystems such as Prometheus and | ||
OpenTelemetry. | ||
|
||
Grafana Agent is based around **components**. Components are wired together to | ||
form programmable observability **pipelines** for telemetry collection, | ||
processing, and delivery. | ||
|
||
{{% admonition type="note" %}} | ||
This page focuses mainly on [Flow mode][], the Terraform-inspired variant of Grafana Agent. | ||
|
||
For information on other variants of Grafana Agent, refer to [Introduction to Grafana Agent]({{< relref "./about.md" >}}). | ||
{{% /admonition %}} | ||
|
||
Grafana Agent can collect, transform, and send data to: | ||
|
||
* The [Prometheus][] ecosystem | ||
* The [OpenTelemetry][] ecosystem | ||
* The Grafana open source ecosystem ([Loki][], [Grafana][], [Tempo][], [Mimir][], [Pyroscope][]) | ||
|
||
[Terraform]: https://terraform.io | ||
[Prometheus]: https://prometheus.io | ||
[OpenTelemetry]: https://opentelemetry.io | ||
[Loki]: https://github.com/grafana/loki | ||
[Grafana]: https://github.com/grafana/grafana | ||
[Tempo]: https://github.com/grafana/tempo | ||
[Mimir]: https://github.com/grafana/mimir | ||
[Pyroscope]: https://github.com/grafana/pyroscope | ||
|
||
## Why use Grafana Agent? | ||
|
||
* **Vendor-neutral**: Fully compatible with the Prometheus, OpenTelemetry, and | ||
Grafana open source ecosystems. | ||
* **Every signal**: Collect telemetry data for metrics, logs, traces, and | ||
continuous profiles. | ||
* **Scalable**: Deploy on any number of machines to collect millions of active | ||
series and terabytes of logs. | ||
* **Battle-tested**: Grafana Agent extends the existing battle-tested code from | ||
the Prometheus and OpenTelemetry Collector projects. | ||
* **Powerful**: Write programmable pipelines with ease, and debug them using a | ||
[built-in UI][UI]. | ||
* **Batteries included**: Integrate with systems like MySQL, Kubernetes, and | ||
Apache to get telemetry that's immediately useful. | ||
|
||
## Getting started | ||
|
||
* Choose a [variant][variants] of Grafana Agent to run. | ||
* Refer to the documentation for the variant to use: | ||
* [Static mode][] | ||
* [Static mode Kubernetes operator][] | ||
* [Flow mode][] | ||
|
||
## Supported platforms | ||
|
||
* Linux | ||
|
||
* Minimum version: kernel 2.6.32 or later | ||
* Architectures: AMD64, ARM64 | ||
|
||
* Windows | ||
|
||
* Minimum version: Windows Server 2012 or later, or Windows 10 or later. | ||
* Architectures: AMD64 | ||
|
||
* macOS | ||
|
||
* Minimum version: macOS 10.13 or later | ||
* Architectures: AMD64 (Intel), ARM64 (Apple Silicon) | ||
|
||
* FreeBSD | ||
|
||
* Minimum version: FreeBSD 10 or later | ||
* Architectures: AMD64 | ||
|
||
## Release cadence | ||
|
||
A new minor release is planned every six weeks for the entire Grafana Agent | ||
project, including Static mode, the Static mode Kubernetes operator, and Flow | ||
mode. | ||
|
||
The release cadence is best-effort: releases may be moved forwards or backwards | ||
if needed. The planned release dates for future minor releases do not change if | ||
one minor release is moved. | ||
|
||
Patch and security releases may be created at any time. | ||
|
||
[Milestones]: https://github.com/grafana/agent/milestones | ||
|
||
{{% docs/reference %}} | ||
[variants]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/about" | ||
[variants]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/monitor-infrastructure/agent/about" | ||
|
||
[Static mode]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static" | ||
[Static mode]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/monitor-infrastructure/agent/static" | ||
|
||
[Static mode Kubernetes operator]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/operator" | ||
[Static mode Kubernetes operator]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/monitor-infrastructure/agent/operator" | ||
|
||
[Flow mode]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/flow" | ||
[Flow mode]: "/docs/grafana-cloud/ -> /docs/agent/<AGENT VERSION>/flow" | ||
|
||
[UI]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/flow/monitoring/debugging.md#grafana-agent-flow-ui" | ||
[UI]: "/docs/grafana-cloud/ -> /docs/agent/<AGENT VERSION>/flow/monitoring/debugging.md#grafana-agent-flow-ui" | ||
{{% /docs/reference %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package operator | ||
|
||
// Supported versions of the Grafana Agent. | ||
var ( | ||
DefaultAgentVersion = "$AGENT_VERSION" | ||
DefaultAgentBaseImage = "grafana/agent" | ||
DefaultAgentImage = DefaultAgentBaseImage + ":" + DefaultAgentVersion | ||
) | ||
|
||
// Defaults for Prometheus Config Reloader. | ||
var ( | ||
DefaultConfigReloaderVersion = "v0.67.1" | ||
DefaultConfigReloaderBaseImage = "quay.io/prometheus-operator/prometheus-config-reloader" | ||
DefaultConfigReloaderImage = DefaultConfigReloaderBaseImage + ":" + DefaultConfigReloaderVersion | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.37.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
AGENT_VERSION=$(cat ./tools/gen-versioned-files/agent-version.txt | tr -d '\n') | ||
|
||
if [ -z "$AGENT_VERSION" ]; then | ||
echo "AGENT_VERSION can't be found. Are you running this from the repo root?" | ||
exit 1 | ||
fi | ||
|
||
versionMatcher='^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$' | ||
|
||
if ! echo "$AGENT_VERSION" | grep -Eq "$versionMatcher"; then | ||
echo "AGENT_VERSION env var is not in the correct format. It should be in the format of vX.Y.Z or vX.Y.Z-rcN" | ||
exit 1 | ||
fi | ||
|
||
templates=$(find . -type f -name "*.t" -not -path "./.git/*") | ||
for template in $templates; do | ||
echo "Generating ${template%.t}" | ||
sed -e "s/\$AGENT_VERSION/$AGENT_VERSION/g" < "$template" > "${template%.t}" | ||
done |