@@ -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-
2322A 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
4328pipeline :
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
6567Communicating 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