@@ -19,37 +19,39 @@ This input plugin allows you to ingest a payload in the Prometheus remote-write
19
19
| uri | Specify an optional HTTP URI for the target web server listening for prometheus remote write payloads, e.g: /api/prom/push | |
20
20
| threaded | Indicates whether to run this input in its own [ thread] ( ../../administration/multithreading.md#inputs ) . | ` false ` |
21
21
22
-
23
22
A sample config file to get started will look something like the following:
24
23
25
-
26
24
{% 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
-
41
25
{% tab title="fluent-bit.yaml" %}
26
+
42
27
``` yaml
43
28
pipeline :
44
29
inputs :
45
30
- name : prometheus_remote_write
46
31
listen : 127.0.0.1
47
32
port : 8080
48
33
uri : /api/prom/push
34
+
49
35
outputs :
50
36
- name : stdout
51
37
match : ' *'
52
38
` ` `
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
+
53
55
{% endtab %}
54
56
{% endtabs %}
55
57
@@ -64,7 +66,25 @@ Prometheus Remote Write input plugin supports TLS/SSL, for more details about th
64
66
65
67
Communicating with TLS, you will need to use the tls related parameters:
66
68
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
67
82
` ` `
83
+
84
+ {% endtab %}
85
+ {% tab title="fluent-bit.conf" %}
86
+
87
+ ` ` ` text
68
88
[INPUT]
69
89
Name prometheus_remote_write
70
90
Listen 127.0.0.1
@@ -75,4 +95,7 @@ Communicating with TLS, you will need to use the tls related parameters:
75
95
tls.key_file /path/to/certificate.key
76
96
```
77
97
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