Skip to content

Commit 4ff5ca8

Browse files
authored
Merge branch 'grafana:main' into main
2 parents e81d969 + f87f22d commit 4ff5ca8

File tree

38 files changed

+2427
-65
lines changed

38 files changed

+2427
-65
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ Backup of *.doc*
9797
# NodeJS
9898
# ---------------------------------------------------
9999
# Logs
100-
logs
101100
*.log
102101
npm-debug.log*
103102
yarn-debug.log*

modules/broker/rabbitmq/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The following labels are automatically added to exported targets.
100100

101101
The following example will scrape all rabbitmq instances in cluster.
102102

103-
```river
103+
```alloy
104104
import.git "rabbitmq" {
105105
repository = "https://github.com/grafana/flow-modules.git"
106106
revision = "main"
@@ -136,7 +136,7 @@ prometheus.remote_write "local" {
136136

137137
The following example will scrape rabbitmq for metrics on the local machine.
138138

139-
```river
139+
```alloy
140140
import.git "rabbitmq" {
141141
repository = "https://github.com/grafana/flow-modules.git"
142142
revision = "main"

modules/cloud/grafana/cloud/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The token must have permissions to read stack information. The setup of these pe
4949

5050
### `stack`
5151

52-
```river
52+
```alloy
5353
import.git "grafana_cloud" {
5454
repository = "https://github.com/grafana/alloy-modules.git"
5555
revision = "main"

modules/collector/agent/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The following labels are automatically added to exported targets.
9999

100100
The following example will scrape all agents in cluster.
101101

102-
```river
102+
```alloy
103103
import.git "agent" {
104104
repository = "https://github.com/grafana/flow-modules.git"
105105
revision = "main"
@@ -135,7 +135,7 @@ prometheus.remote_write "local" {
135135

136136
The following example will scrape the agent for metrics on the local machine.
137137

138-
```river
138+
```alloy
139139
import.git "agent" {
140140
repository = "https://github.com/grafana/flow-modules.git"
141141
revision = "main"

modules/collector/push-gateway/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The following labels are automatically added to exported targets.
6767

6868
The following example will scrape all push-gateway in cluster.
6969

70-
```river
70+
```alloy
7171
import.git "push_gateway" {
7272
repository = "https://github.com/grafana/flow-modules.git"
7373
revision = "main"

modules/databases/kv/etcd/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The following labels are automatically added to exported targets.
9898

9999
The following example will scrape all etcd instances in cluster.
100100

101-
```river
101+
```alloy
102102
import.git "etcd" {
103103
repository = "https://github.com/grafana/flow-modules.git"
104104
revision = "main"
@@ -134,7 +134,7 @@ prometheus.remote_write "local" {
134134

135135
The following example will scrape etcd for metrics on the local machine.
136136

137-
```river
137+
```alloy
138138
import.git "etcd" {
139139
repository = "https://github.com/grafana/flow-modules.git"
140140
revision = "main"

modules/databases/kv/memcached/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The following labels are automatically added to exported targets.
9999

100100
The following example will scrape all memcached instances in cluster.
101101

102-
```river
102+
```alloy
103103
import.git "memcached" {
104104
repository = "https://github.com/grafana/flow-modules.git"
105105
revision = "main"
@@ -135,7 +135,7 @@ prometheus.remote_write "local" {
135135

136136
The following example will scrape memcached for metrics on the local machine.
137137

138-
```river
138+
```alloy
139139
import.git "memcached" {
140140
repository = "https://github.com/grafana/flow-modules.git"
141141
revision = "main"

modules/databases/kv/redis/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The following labels are automatically added to exported targets.
9999

100100
The following example will scrape all redis instances in cluster.
101101

102-
```river
102+
```alloy
103103
import.git "redis" {
104104
repository = "https://github.com/grafana/flow-modules.git"
105105
revision = "main"
@@ -135,7 +135,7 @@ prometheus.remote_write "local" {
135135

136136
The following example will scrape redis for metrics on the local machine.
137137

138-
```river
138+
```alloy
139139
import.git "redis" {
140140
repository = "https://github.com/grafana/flow-modules.git"
141141
revision = "main"

modules/databases/sql/mysql/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The following labels are automatically added to exported targets.
9999

100100
The following example will scrape all mysql instances in cluster.
101101

102-
```river
102+
```alloy
103103
import.git "mysql" {
104104
repository = "https://github.com/grafana/flow-modules.git"
105105
revision = "main"
@@ -135,7 +135,7 @@ prometheus.remote_write "local" {
135135

136136
The following example will scrape mysql for metrics on the local machine.
137137

138-
```river
138+
```alloy
139139
import.git "mysql" {
140140
repository = "https://github.com/grafana/flow-modules.git"
141141
revision = "main"

modules/databases/sql/postgres/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The following labels are automatically added to exported targets.
9999

100100
The following example will scrape all postgres instances in cluster.
101101

102-
```river
102+
```alloy
103103
import.git "postgres" {
104104
repository = "https://github.com/grafana/flow-modules.git"
105105
revision = "main"
@@ -135,7 +135,7 @@ prometheus.remote_write "local" {
135135

136136
The following example will scrape postgres for metrics on the local machine.
137137

138-
```river
138+
```alloy
139139
import.git "postgres" {
140140
repository = "https://github.com/grafana/flow-modules.git"
141141
revision = "main"

modules/databases/timeseries/loki/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The following labels are automatically added to exported targets.
9898

9999
The following example will scrape all Loki instances in cluster.
100100

101-
```river
101+
```alloy
102102
import.git "loki" {
103103
repository = "https://github.com/grafana/flow-modules.git"
104104
revision = "main"
@@ -134,7 +134,7 @@ prometheus.remote_write "local" {
134134

135135
The following example will scrape Loki for metrics on the local machine.
136136

137-
```river
137+
```alloy
138138
import.git "loki" {
139139
repository = "https://github.com/grafana/flow-modules.git"
140140
revision = "main"

modules/databases/timeseries/mimir/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The following labels are automatically added to exported targets.
9999

100100
The following example will scrape all Mimir instances in cluster.
101101

102-
```river
102+
```alloy
103103
import.git "mimir" {
104104
repository = "https://github.com/grafana/flow-modules.git"
105105
revision = "main"
@@ -135,7 +135,7 @@ prometheus.remote_write "local" {
135135

136136
The following example will scrape Mimir for metrics on the local machine.
137137

138-
```river
138+
```alloy
139139
import.git "mimir" {
140140
repository = "https://github.com/grafana/flow-modules.git"
141141
revision = "main"

modules/databases/timeseries/pyroscope/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The following labels are automatically added to exported targets.
9999

100100
The following example will scrape all pyroscope instances in cluster.
101101

102-
```river
102+
```alloy
103103
import.git "pyroscope" {
104104
repository = "https://github.com/grafana/flow-modules.git"
105105
revision = "main"
@@ -135,7 +135,7 @@ prometheus.remote_write "local" {
135135

136136
The following example will scrape pyroscope for metrics on the local machine.
137137

138-
```river
138+
```alloy
139139
import.git "pyroscope" {
140140
repository = "https://github.com/grafana/flow-modules.git"
141141
revision = "main"

modules/databases/timeseries/tempo/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The following labels are automatically added to exported targets.
9999

100100
The following example will scrape all Tempo instances in cluster.
101101

102-
```river
102+
```alloy
103103
import.git "tempo" {
104104
repository = "https://github.com/grafana/flow-modules.git"
105105
revision = "main"
@@ -135,7 +135,7 @@ prometheus.remote_write "local" {
135135

136136
The following example will scrape Tempo for metrics on the local machine.
137137

138-
```river
138+
```alloy
139139
import.git "tempo" {
140140
repository = "https://github.com/grafana/flow-modules.git"
141141
revision = "main"

modules/kubernetes/annotations/README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Kubernetes Annotation Modules
1+
# Kubernetes Metric Annotation Module
22

33
**Modules:**
44

5-
- [`metrics.river`](#metricsriver)
6-
- [`probes.river`](#probesriver)
5+
- [`metrics.alloy`](#metricsalloy)
6+
- [`probes.alloy`](#probesalloy)
77

8-
## `metrics.river`
8+
## `metrics.alloy`
99

1010
This module is meant to be used to automatically scrape targets based on a certain role and set of annotations. This module can be consumed
1111
multiple times with different roles. The supported roles are:
@@ -143,8 +143,8 @@ The following labels are automatically added to exported targets.
143143
| :---------------- | :------- | :---------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------- |
144144
| `targets` | _yes_ | `list(map(string))` | List of targets to scrape |
145145
| `forward_to` | _yes_ | `list(MetricsReceiver)` | Must be a where scraped should be forwarded to |
146-
| `keep_metrics` | _no_ | [see code](module.river#L228) | A regular expression of metrics to keep |
147-
| `drop_metrics` | _no_ | [see code](module.river#L235) | A regular expression of metrics to drop |
146+
| `keep_metrics` | _no_ | [see code](module.alloy#L228) | A regular expression of metrics to keep |
147+
| `drop_metrics` | _no_ | [see code](module.alloy#L235) | A regular expression of metrics to drop |
148148
| `scrape_interval` | _no_ | `60s` | How often to scrape metrics from the targets |
149149
| `scrape_timeout` | _no_ | `10s` | How long before a scrape times out |
150150
| `max_cache_size` | _no_ | `100000` | The maximum number of elements to hold in the relabeling cache. This should be at least 2x-5x your largest scrape target or samples appended rate. |
@@ -156,7 +156,7 @@ N/A
156156

157157
---
158158

159-
## `probes.river`
159+
## `probes.alloy`
160160

161161
This module is meant to be used to automatically scrape targets based on a certain role and set of annotations. This module can be consumed
162162
multiple times with different roles. The supported roles are:
@@ -267,8 +267,8 @@ The following labels are automatically added to exported targets.
267267
| :---------------- | :------- | :---------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------- |
268268
| `targets` | _yes_ | `list(map(string))` | List of targets to scrape |
269269
| `forward_to` | _yes_ | `list(MetricsReceiver)` | Must be a where scraped should be forwarded to |
270-
| `keep_metrics` | _no_ | [see code](module.river#L228) | A regular expression of metrics to keep |
271-
| `drop_metrics` | _no_ | [see code](module.river#L235) | A regular expression of metrics to drop |
270+
| `keep_metrics` | _no_ | [see code](module.alloy#L228) | A regular expression of metrics to keep |
271+
| `drop_metrics` | _no_ | [see code](module.alloy#L235) | A regular expression of metrics to drop |
272272
| `scrape_interval` | _no_ | `60s` | How often to scrape metrics from the targets |
273273
| `scrape_timeout` | _no_ | `10s` | How long before a scrape times out |
274274
| `max_cache_size` | _no_ | `100000` | The maximum number of elements to hold in the relabeling cache. This should be at least 2x-5x your largest scrape target or samples appended rate. |
@@ -286,11 +286,11 @@ N/A
286286

287287
The following example will scrape all metric annotation instances in cluster.
288288

289-
```river
289+
```alloy
290290
import.git "metric_annotations" {
291291
repository = "https://github.com/grafana/flow-modules.git"
292292
revision = "main"
293-
path = "modules/kubernetes/annotations/metrics.river"
293+
path = "modules/kubernetes/annotations/metrics.alloy"
294294
pull_frequency = "15m"
295295
}
296296
@@ -324,11 +324,11 @@ prometheus.remote_write "local" {
324324

325325
The following example will scrape all probe annotation instances in cluster.
326326

327-
```river
327+
```alloy
328328
import.git "probe_annotations" {
329329
repository = "https://github.com/grafana/flow-modules.git"
330330
revision = "main"
331-
path = "modules/kubernetes/annotations/probes.river"
331+
path = "modules/kubernetes/annotations/probes.alloy"
332332
pull_frequency = "15m"
333333
}
334334

0 commit comments

Comments
 (0)