{"repo":"warmans/prometheus-aggregate-exporter","free":true,"listed":false,"github":"https://github.com/warmans/prometheus-aggregate-exporter","clone":"git clone https://github.com/warmans/prometheus-aggregate-exporter.git","description":"Aggregates many exporters to a single endpoint.","language":"Go","stars":41,"topics":["hacktoberfest","prometheus-exporter"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Aggregate Exporter ============================ Aggregates many exporters to a single endpoint to reduce number of exposed endpoints. NOTE This doesn't actually aggregate metrics (as in it doesn't sum them up etc.). As a result each target has its metrics tagged with a label so that they are not duplicated in the aggregate view. Options How to build it Build using the go binary If you have go (1.14) installed on your machine, you can simply do: To build without CGO enabled, which removes the dependency on libc , do: Or you can use the provided Makefile: Build into a Docker image If you have Docker installed (or any runtime understanding the Dockerfile format), you can simply invoke: make docker-build And you'll have Docker compile the binary and make it available under the image named warmans/aggregate-exporter:latest Alternatively the image is available though docker-hub: https://hub.docker.com/r/warmans/prometheus-aggregate-exporter Manual Testing You can run the exporter against some static fixture files by running the following make targets in separate terminals. then to view the /metrics page: Example Usage or using environment variables instead of flags: or with docker Custom labelling By default, the labels values that will end up in your metrics will be equals to the target url; for example: http requests total{method=\"post\",code=\"200\",ae source=\"http://localhost:3000/histogram.txt\"} 1027 101 But you can customize those labels; for example if you invoke the tool with:","default_branch":null,"files":null,"tree":[],"storefront":"/r/warmans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/warmans/prometheus-aggregate-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}