https://github.com/manics/prometheus-metrics-combiner
https://github.com/manics/prometheus-metrics-combiner
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/manics/prometheus-metrics-combiner
- Owner: manics
- License: mit
- Created: 2025-10-22T19:43:45.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-26T13:39:04.000Z (8 months ago)
- Last Synced: 2025-10-26T15:31:36.552Z (8 months ago)
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Prometheus Metrics Combiner
[](https://github.com/manics/prometheus-metrics-combiner/actions/workflows/build.yml)
A simple HTTP server that fetches Prometheus metrics from multiple upstream services, combines them, and exposes them on a single `/metrics` endpoint.
For example, if you have a Kubernetes pod with multiple containers with separate metrics endpoints you can use this to expose a single endpoint for scraping.
## Building
This requires Go 1.25
```bash
go build
```
## Usage
The server is configured via command-line flags.
### Command-Line Flags
- `-port `: The port for the HTTP server to listen on (default `8080`)
- `-url `: An upstream URL to fetch metrics from, can be specified multiple times
- `-prefix `: Optional filter, only lines starting with this prefix will be included in the output, can be specified multiple times