File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,14 @@ docker run --rm -p 8083:8083 -p 8093:8093 \
306
306
** Note:** The ` WORKDIR ` of the proxy and agent images is ` /app ` , so make sure to use ` /app ` as the base directory in the
307
307
target for ` --mount ` options.
308
308
309
+ ## Scraping a prometheus instance
310
+ It's possible to scrape an existing prometheus server using the /federate endpoint.
311
+ This enables using the existing service discovery features already built into prometheus.
312
+
313
+ An example config can be found in
314
+ [ federate.conf] ( https://raw.githubusercontent.com/pambrose/prometheus-proxy/master/examples/federate.conf )
315
+
316
+
309
317
## Grafana
310
318
311
319
[ Grafana] ( https://grafana.com ) dashboards for the proxy and agent
Original file line number Diff line number Diff line change
1
+ agent {
2
+ pathConfigs: [
3
+ {
4
+ name: "Federate metrics"
5
+ path: federate_metrics
6
+ url: "http://prometheus:9090/federate?match[]={job=~'.*'}"
7
+ },
8
+ {
9
+ name: "Agent metrics"
10
+ path: agent_metrics
11
+ url: "http://localhost:8083/metrics"
12
+ }
13
+ ]
14
+ }
You can’t perform that action at this time.
0 commit comments