@@ -45,30 +45,29 @@ The Prometheus remote write plugin only works with metrics collected by one of t
45
45
# them through the Prometheus remote write plugin to new relic :
46
46
#
47
47
service :
48
- flush : 1
49
- log_level : info
48
+ flush : 1
49
+ log_level : info
50
50
51
51
pipeline :
52
52
inputs :
53
- - name : node_exporter_metrics
54
- tag : node_metrics
55
- scrape_interval : 2
56
-
57
- outputs :
58
- - name : prometheus_remote_write
59
- match : node_metrics
60
- host : metric-api.newrelic.com
61
- port : 443
62
- uri : /prometheus/v1/write?prometheus_server=YOUR_DATA_SOURCE_NAME
63
- header : ' Authorization Bearer YOUR_LICENSE_KEY'
64
- log_response_payload : true
65
- tls : on
66
- tls.verify : on
67
- # add user-defined labels
68
- add_label :
69
- - app fluent-bit
70
- - color blue
71
-
53
+ - name : node_exporter_metrics
54
+ tag : node_metrics
55
+ scrape_interval : 2
56
+
57
+ outputs :
58
+ - name : prometheus_remote_write
59
+ match : node_metrics
60
+ host : metric-api.newrelic.com
61
+ port : 443
62
+ uri : /prometheus/v1/write?prometheus_server=YOUR_DATA_SOURCE_NAME
63
+ header : ' Authorization Bearer YOUR_LICENSE_KEY'
64
+ log_response_payload : true
65
+ tls : on
66
+ tls.verify : on
67
+ # add user-defined labels
68
+ add_label :
69
+ - app fluent-bit
70
+ - color blue
72
71
# Note : it would be necessary to replace both YOUR_DATA_SOURCE_NAME and YOUR_LICENSE_KEY
73
72
# with real values for this example to work.
74
73
```
@@ -83,27 +82,27 @@ pipeline:
83
82
# them through the Prometheus remote write plugin to new relic :
84
83
#
85
84
[SERVICE]
86
- Flush 1
87
- Log_level info
85
+ Flush 1
86
+ Log_level info
88
87
89
88
[INPUT]
90
- Name node_exporter_metrics
91
- Tag node_metrics
92
- Scrape_interval 2
89
+ Name node_exporter_metrics
90
+ Tag node_metrics
91
+ Scrape_interval 2
93
92
94
93
[OUTPUT]
95
- Name prometheus_remote_write
96
- Match node_metrics
97
- Host metric-api.newrelic.com
98
- Port 443
99
- Uri /prometheus/v1/write?prometheus_server=YOUR_DATA_SOURCE_NAME
100
- Header Authorization Bearer YOUR_LICENSE_KEY
101
- Log_response_payload True
102
- Tls On
103
- Tls.verify On
104
- # add user-defined labels
105
- add_label app fluent-bit
106
- add_label color blue
94
+ Name prometheus_remote_write
95
+ Match node_metrics
96
+ Host metric-api.newrelic.com
97
+ Port 443
98
+ Uri /prometheus/v1/write?prometheus_server=YOUR_DATA_SOURCE_NAME
99
+ Header Authorization Bearer YOUR_LICENSE_KEY
100
+ Log_response_payload True
101
+ Tls On
102
+ Tls.verify On
103
+ # add user-defined labels
104
+ add_label app fluent-bit
105
+ add_label color blue
107
106
108
107
# Note : it would be necessary to replace both YOUR_DATA_SOURCE_NAME and YOUR_LICENSE_KEY
109
108
# with real values for this example to work.
@@ -126,32 +125,32 @@ With [Grafana Cloud](https://grafana.com/products/cloud/) hosted metrics you wil
126
125
``` yaml
127
126
pipeline :
128
127
129
- outputs :
130
- - name : prometheus_remote_write
131
- match : ' *'
132
- host : prometheus-us-central1.grafana.net
133
- uri : /api/prom/push
134
- port : 443
135
- tls : on
136
- tls.verify : on
137
- http_user : <GRAFANA Username>
138
- http_passwd : <GRAFANA Password>
128
+ outputs :
129
+ - name : prometheus_remote_write
130
+ match : ' *'
131
+ host : prometheus-us-central1.grafana.net
132
+ uri : /api/prom/push
133
+ port : 443
134
+ tls : on
135
+ tls.verify : on
136
+ http_user : <GRAFANA Username>
137
+ http_passwd : <GRAFANA Password>
139
138
` ` `
140
139
141
140
{% endtab %}
142
141
{% tab title="fluent-bit.conf" %}
143
142
144
143
` ` ` text
145
144
[OUTPUT]
146
- name prometheus_remote_write
147
- match *
148
- host prometheus-us-central1.grafana.net
149
- uri /api/prom/push
150
- port 443
151
- tls on
152
- tls.verify on
153
- http_user <GRAFANA Username>
154
- http_passwd <GRAFANA Password>
145
+ name prometheus_remote_write
146
+ match *
147
+ host prometheus-us-central1.grafana.net
148
+ uri /api/prom/push
149
+ port 443
150
+ tls on
151
+ tls.verify on
152
+ http_user <GRAFANA Username>
153
+ http_passwd <GRAFANA Password>
155
154
```
156
155
157
156
{% endtab %}
@@ -167,29 +166,29 @@ With Logz.io [hosted Prometheus](https://logz.io/solutions/infrastructure-monito
167
166
``` yaml
168
167
pipeline :
169
168
170
- outputs :
171
- - name : prometheus_remote_write
172
- match : ' *'
173
- host : listener.logz.io
174
- port : 8053
175
- tls : on
176
- tls.verify : on
177
- log_response_payload : true
169
+ outputs :
170
+ - name : prometheus_remote_write
171
+ match : ' *'
172
+ host : listener.logz.io
173
+ port : 8053
174
+ tls : on
175
+ tls.verify : on
176
+ log_response_payload : true
178
177
` ` `
179
178
180
179
{% endtab %}
181
180
{% tab title="fluent-bit.conf" %}
182
181
183
182
` ` ` text
184
183
[OUTPUT]
185
- name prometheus_remote_write
186
- match *
187
- host listener.logz.io
188
- port 8053
189
- header Authorization Bearer <LOGZIO Key>
190
- tls on
191
- tls.verify on
192
- log_response_payload true
184
+ name prometheus_remote_write
185
+ match *
186
+ host listener.logz.io
187
+ port 8053
188
+ header Authorization Bearer <LOGZIO Key>
189
+ tls on
190
+ tls.verify on
191
+ log_response_payload true
193
192
```
194
193
195
194
{% endtab %}
@@ -205,30 +204,30 @@ With [Coralogix Metrics](https://coralogix.com/platform/metrics/) you might need
205
204
``` yaml
206
205
pipeline :
207
206
208
- outputs :
209
- - name : prometheus_remote_write
210
- match : ' *'
211
- host : metrics-api.coralogix.com
212
- uri : prometheus/api/v1/write?appLabelName=path&subSystemLabelName=path&severityLabelName=severity
213
- port : 443
214
- header : ' Authorization Bearer <CORALOGIX Key>'
215
- tls : on
216
- tls.verify : on
207
+ outputs :
208
+ - name : prometheus_remote_write
209
+ match : ' *'
210
+ host : metrics-api.coralogix.com
211
+ uri : prometheus/api/v1/write?appLabelName=path&subSystemLabelName=path&severityLabelName=severity
212
+ port : 443
213
+ header : ' Authorization Bearer <CORALOGIX Key>'
214
+ tls : on
215
+ tls.verify : on
217
216
` ` `
218
217
219
218
{% endtab %}
220
219
{% tab title="fluent-bit.conf" %}
221
220
222
221
` ` ` text
223
222
[OUTPUT]
224
- name prometheus_remote_write
225
- match *
226
- host metrics-api.coralogix.com
227
- uri prometheus/api/v1/write?appLabelName=path&subSystemLabelName=path&severityLabelName=severity
228
- port 443
229
- header Authorization Bearer <CORALOGIX Key>
230
- tls on
231
- tls.verify on
223
+ name prometheus_remote_write
224
+ match *
225
+ host metrics-api.coralogix.com
226
+ uri prometheus/api/v1/write?appLabelName=path&subSystemLabelName=path&severityLabelName=severity
227
+ port 443
228
+ header Authorization Bearer <CORALOGIX Key>
229
+ tls on
230
+ tls.verify on
232
231
```
233
232
234
233
{% endtab %}
@@ -244,32 +243,32 @@ With [Levitate](https://last9.io/levitate-tsdb), you must use the Levitate clust
244
243
``` yaml
245
244
pipeline :
246
245
247
- outputs :
248
- - name : prometheus_remote_write
249
- match : ' *'
250
- host : app-tsdb.last9.io
251
- uri : /v1/metrics/82xxxx/sender/org-slug/write
252
- port : 443
253
- tls : on
254
- tls.verify : on
255
- http_user : <Levitate Cluster Username>
256
- http_passwd : <Levitate Cluster Password>
246
+ outputs :
247
+ - name : prometheus_remote_write
248
+ match : ' *'
249
+ host : app-tsdb.last9.io
250
+ uri : /v1/metrics/82xxxx/sender/org-slug/write
251
+ port : 443
252
+ tls : on
253
+ tls.verify : on
254
+ http_user : <Levitate Cluster Username>
255
+ http_passwd : <Levitate Cluster Password>
257
256
` ` `
258
257
259
258
{% endtab %}
260
259
{% tab title="fluent-bit.conf" %}
261
260
262
261
` ` ` text
263
262
[OUTPUT]
264
- name prometheus_remote_write
265
- match *
266
- host app-tsdb.last9.io
267
- uri /v1/metrics/82xxxx/sender/org-slug/write
268
- port 443
269
- tls on
270
- tls.verify on
271
- http_user <Levitate Cluster Username>
272
- http_passwd <Levitate Cluster Password>
263
+ name prometheus_remote_write
264
+ match *
265
+ host app-tsdb.last9.io
266
+ uri /v1/metrics/82xxxx/sender/org-slug/write
267
+ port 443
268
+ tls on
269
+ tls.verify on
270
+ http_user <Levitate Cluster Username>
271
+ http_passwd <Levitate Cluster Password>
273
272
```
274
273
275
274
{% endtab %}
@@ -285,42 +284,42 @@ Ordinary Prometheus clients add some of the following labels:
285
284
``` yaml
286
285
pipeline :
287
286
288
- outputs :
289
- - name : prometheus_remote_write
290
- match : your.metric
291
- host : xxxxxxx.yyyyy.zzzz
292
- port : 443
293
- uri : /api/v1/write
294
- header : ' Authorization Bearer YOUR_LICENSE_KEY'
295
- log_response_payload : true
296
- tls : on
297
- tls.verify : on
298
- # add user-defined labels
299
- add_label :
300
- - instance ${HOSTNAME}
301
- - job fluent-bit
287
+ outputs :
288
+ - name : prometheus_remote_write
289
+ match : your.metric
290
+ host : xxxxxxx.yyyyy.zzzz
291
+ port : 443
292
+ uri : /api/v1/write
293
+ header : ' Authorization Bearer YOUR_LICENSE_KEY'
294
+ log_response_payload : true
295
+ tls : on
296
+ tls.verify : on
297
+ # add user-defined labels
298
+ add_label :
299
+ - instance ${HOSTNAME}
300
+ - job fluent-bit
302
301
` ` `
303
302
304
303
{% endtab %}
305
304
{% tab title="fluent-bit.conf" %}
306
305
307
306
` ` ` text
308
307
[OUTPUT]
309
- Name prometheus_remote_write
310
- Match your.metric
311
- Host xxxxxxx.yyyyy.zzzz
312
- Port 443
313
- Uri /api/v1/write
314
- Header Authorization Bearer YOUR_LICENSE_KEY
315
- Log_response_payload True
316
- Tls On
317
- Tls.verify On
318
- # add user-defined labels
319
- add_label instance ${HOSTNAME}
320
- add_label job fluent-bit
308
+ Name prometheus_remote_write
309
+ Match your.metric
310
+ Host xxxxxxx.yyyyy.zzzz
311
+ Port 443
312
+ Uri /api/v1/write
313
+ Header Authorization Bearer YOUR_LICENSE_KEY
314
+ Log_response_payload True
315
+ Tls On
316
+ Tls.verify On
317
+ # add user-defined labels
318
+ add_label instance ${HOSTNAME}
319
+ add_label job fluent-bit
321
320
```
322
321
323
322
{% endtab %}
324
323
{% endtabs %}
325
324
326
- ` instance ` label can be emulated with ` add_label instance ${HOSTNAME} ` . And other labels can be added with ` add_label <key> <value> ` setting.
325
+ The ` instance ` label can be emulated with ` add_label instance ${HOSTNAME} ` . And other labels can be added with ` add_label <key> <value> ` setting.
0 commit comments