Skip to content

Commit c2f3b83

Browse files
authored
Adding YAML examples and standarizing shell usage for prom remote write input plugin docs. Fixes #1853. (#1857)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent d9272dd commit c2f3b83

File tree

1 file changed

+40
-17
lines changed

1 file changed

+40
-17
lines changed

pipeline/inputs/prometheus-remote-write.md

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,39 @@ This input plugin allows you to ingest a payload in the Prometheus remote-write
1919
| uri | Specify an optional HTTP URI for the target web server listening for prometheus remote write payloads, e.g: /api/prom/push | |
2020
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
2121

22-
2322
A sample config file to get started will look something like the following:
2423

25-
2624
{% tabs %}
27-
{% tab title="fluent-bit.conf" %}
28-
```
29-
[INPUT]
30-
name prometheus_remote_write
31-
listen 127.0.0.1
32-
port 8080
33-
uri /api/prom/push
34-
35-
[OUTPUT]
36-
name stdout
37-
match *
38-
```
39-
{% endtab %}
40-
4125
{% tab title="fluent-bit.yaml" %}
26+
4227
```yaml
4328
pipeline:
4429
inputs:
4530
- name: prometheus_remote_write
4631
listen: 127.0.0.1
4732
port: 8080
4833
uri: /api/prom/push
34+
4935
outputs:
5036
- name: stdout
5137
match: '*'
5238
```
39+
40+
{% endtab %}
41+
{% tab title="fluent-bit.conf" %}
42+
43+
```text
44+
[INPUT]
45+
name prometheus_remote_write
46+
listen 127.0.0.1
47+
port 8080
48+
uri /api/prom/push
49+
50+
[OUTPUT]
51+
name stdout
52+
match *
53+
```
54+
5355
{% endtab %}
5456
{% endtabs %}
5557

@@ -64,7 +66,25 @@ Prometheus Remote Write input plugin supports TLS/SSL, for more details about th
6466

6567
Communicating with TLS, you will need to use the tls related parameters:
6668

69+
{% tabs %}
70+
{% tab title="fluent-bit.yaml" %}
71+
72+
```yaml
73+
pipeline:
74+
inputs:
75+
- name: prometheus_remote_write
76+
listen: 127.0.0.1
77+
port: 8080
78+
uri: /api/prom/push
79+
tls: on
80+
tls.crt_file: /path/to/certificate.crt
81+
tls.key_file: /path/to/certificate.key
6782
```
83+
84+
{% endtab %}
85+
{% tab title="fluent-bit.conf" %}
86+
87+
```text
6888
[INPUT]
6989
Name prometheus_remote_write
7090
Listen 127.0.0.1
@@ -75,4 +95,7 @@ Communicating with TLS, you will need to use the tls related parameters:
7595
tls.key_file /path/to/certificate.key
7696
```
7797

78-
Now, you should be able to send data over TLS to the remote write input.
98+
{% endtab %}
99+
{% endtabs %}
100+
101+
Now, you should be able to send data over TLS to the remote write input.

0 commit comments

Comments
 (0)