You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipeline/inputs/prometheus-scrape-metrics.md
+15-17Lines changed: 15 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,20 @@
1
-
# Prometheus Scrape Metrics
1
+
# Prometheus Scrape metrics
2
2
3
-
Fluent Bit 1.9 includes additional metrics features to allow you to collect both logs and metrics with the same collector. 
3
+
Fluent Bit 1.9 and later includes additional metrics features to let you collect logs and metrics from a Prometheus-based endpoint at a set interval. These metrics can be routed to metric supported endpoints such as [Prometheus Exporter](../outputs/prometheus-exporter.md), [InfluxDB](../outputs/influxdb.md) or [Prometheus Remote Write](../outputs/prometheus-remote-write.md).
4
4
5
-
The initial release of the Prometheus Scrape metric allows you to collect metrics from a Prometheus-based endpoint at a set interval. These metrics can be routed to metric supported endpoints such as [Prometheus Exporter](../outputs/prometheus-exporter.md), [InfluxDB](../outputs/influxdb.md), or [Prometheus Remote Write](../outputs/prometheus-remote-write.md)
| host | The host of the prometheus metric endpoint that you want to scrape ||
12
-
| port | The port of the prometheus metric endpoint that you want to scrape ||
13
-
| scrape\_interval | The interval to scrape metrics | 10s |
14
-
| metrics\_path | <p>The metrics URI endpoint, that must start with a forward slash.<br><br>Note: Parameters can also be added to the path by using <code>?</code></p> | /metrics |
15
-
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
7
+
| Key | Description | Default |
8
+
| --- | ----------- | -------- |
9
+
|`host`| The host of the Prometheus metric endpoint to scrape. |_none_|
10
+
|`port`| The port of the Prometheus metric endpoint to scrape. |_none_|
11
+
|`scrape_interval`| The interval to scrape metrics. |`10s`|
12
+
|`metrics_path`| The metrics URI endpoint, which must start with a forward slash (`/`). Parameters can be added to the path by using `?`|`/metrics`|
13
+
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
16
14
17
15
## Example
18
16
19
-
If an endpoint exposes Prometheus Metrics we can specify the configuration to scrape and then output the metrics. In the following example, we retrieve metrics from the HashiCorp Vault application.
17
+
If an endpoint exposes Prometheus Metrics you can specify the configuration to scrape and then output the metrics. The following example retrieves metrics from the HashiCorp Vault application.
0 commit comments