@@ -45,30 +45,29 @@ The Prometheus remote write plugin only works with metrics collected by one of t
4545# them through the Prometheus remote write plugin to new relic :
4646#
4747service :
48- flush : 1
49- log_level : info
48+ flush : 1
49+ log_level : info
5050
5151pipeline :
5252 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
7271# Note : it would be necessary to replace both YOUR_DATA_SOURCE_NAME and YOUR_LICENSE_KEY
7372# with real values for this example to work.
7473```
@@ -83,27 +82,27 @@ pipeline:
8382# them through the Prometheus remote write plugin to new relic :
8483#
8584[SERVICE]
86- Flush 1
87- Log_level info
85+ Flush 1
86+ Log_level info
8887
8988[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
9392
9493[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
107106
108107# Note : it would be necessary to replace both YOUR_DATA_SOURCE_NAME and YOUR_LICENSE_KEY
109108# with real values for this example to work.
@@ -126,32 +125,32 @@ With [Grafana Cloud](https://grafana.com/products/cloud/) hosted metrics you wil
126125``` yaml
127126pipeline :
128127
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>
139138` ` `
140139
141140{% endtab %}
142141{% tab title="fluent-bit.conf" %}
143142
144143` ` ` text
145144[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>
155154```
156155
157156{% endtab %}
@@ -167,29 +166,29 @@ With Logz.io [hosted Prometheus](https://logz.io/solutions/infrastructure-monito
167166``` yaml
168167pipeline :
169168
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
178177` ` `
179178
180179{% endtab %}
181180{% tab title="fluent-bit.conf" %}
182181
183182` ` ` text
184183[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
193192```
194193
195194{% endtab %}
@@ -205,30 +204,30 @@ With [Coralogix Metrics](https://coralogix.com/platform/metrics/) you might need
205204``` yaml
206205pipeline :
207206
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
217216` ` `
218217
219218{% endtab %}
220219{% tab title="fluent-bit.conf" %}
221220
222221` ` ` text
223222[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
232231```
233232
234233{% endtab %}
@@ -244,32 +243,32 @@ With [Levitate](https://last9.io/levitate-tsdb), you must use the Levitate clust
244243``` yaml
245244pipeline :
246245
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>
257256` ` `
258257
259258{% endtab %}
260259{% tab title="fluent-bit.conf" %}
261260
262261` ` ` text
263262[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>
273272```
274273
275274{% endtab %}
@@ -285,42 +284,42 @@ Ordinary Prometheus clients add some of the following labels:
285284``` yaml
286285pipeline :
287286
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
302301` ` `
303302
304303{% endtab %}
305304{% tab title="fluent-bit.conf" %}
306305
307306` ` ` text
308307[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
321320```
322321
323322{% endtab %}
324323{% endtabs %}
325324
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