Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 40 additions & 17 deletions pipeline/inputs/prometheus-remote-write.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,39 @@ This input plugin allows you to ingest a payload in the Prometheus remote-write
| uri | Specify an optional HTTP URI for the target web server listening for prometheus remote write payloads, e.g: /api/prom/push | |
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |


A sample config file to get started will look something like the following:


{% tabs %}
{% tab title="fluent-bit.conf" %}
```
[INPUT]
name prometheus_remote_write
listen 127.0.0.1
port 8080
uri /api/prom/push

[OUTPUT]
name stdout
match *
```
{% endtab %}

{% tab title="fluent-bit.yaml" %}

```yaml
pipeline:
inputs:
- name: prometheus_remote_write
listen: 127.0.0.1
port: 8080
uri: /api/prom/push

outputs:
- name: stdout
match: '*'
```

{% endtab %}
{% tab title="fluent-bit.conf" %}

```text
[INPUT]
name prometheus_remote_write
listen 127.0.0.1
port 8080
uri /api/prom/push

[OUTPUT]
name stdout
match *
```

{% endtab %}
{% endtabs %}

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

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

{% tabs %}
{% tab title="fluent-bit.yaml" %}

```yaml
pipeline:
inputs:
- name: prometheus_remote_write
listen: 127.0.0.1
port: 8080
uri: /api/prom/push
tls: on
tls.crt_file: /path/to/certificate.crt
tls.key_file: /path/to/certificate.key
```

{% endtab %}
{% tab title="fluent-bit.conf" %}

```text
[INPUT]
Name prometheus_remote_write
Listen 127.0.0.1
Expand All @@ -75,4 +95,7 @@ Communicating with TLS, you will need to use the tls related parameters:
tls.key_file /path/to/certificate.key
```

Now, you should be able to send data over TLS to the remote write input.
{% endtab %}
{% endtabs %}

Now, you should be able to send data over TLS to the remote write input.