https://github.com/prometheus/prometheus-opentelemetry-collector
[EXPERIMENTAL] A Prometheus-branded OpenTelemetry Collector distribution.
https://github.com/prometheus/prometheus-opentelemetry-collector
Last synced: 2 months ago
JSON representation
[EXPERIMENTAL] A Prometheus-branded OpenTelemetry Collector distribution.
- Host: GitHub
- URL: https://github.com/prometheus/prometheus-opentelemetry-collector
- Owner: prometheus
- License: apache-2.0
- Created: 2026-04-02T15:03:06.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-04-02T18:22:48.000Z (2 months ago)
- Last Synced: 2026-04-03T05:33:29.535Z (2 months ago)
- Language: Makefile
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prometheus-opentelemetry-collector
[EXPERIMENTAL] A Prometheus-flavored OpenTelemetry Collector distribution built with the OpenTelemetry Collector Builder (OCB).
This repository is intentionally small. Its job is to define a curated collector build, generate the distribution during local builds and CI, and fail fast when component additions or version bumps stop compiling.
## Goals
- Add Prometheus exporters that can be embedded as native collector components.
- Verify that the generated collector still compiles whenever dependencies or component selections change.
## Repository layout
- `builder-config.yaml`: the single source of truth for the distribution
- `Makefile`: local entrypoints for generation, compile checks, and cleanup
- `.github/workflows/build.yaml`: CI that regenerates the collector and compiles the generated Go module
Generated sources and binaries live in `_build/` and are not committed.
## Local development
```bash
make generate
make build
make check
make clean
```
Command behavior:
- `make generate`: install OCB and generate collector sources into `_build/`
- `make build`: run OCB end-to-end and produce the `prometheus-otelcol` binary
- `make check`: regenerate sources, then run `go build ./...` inside `_build/`
- `make clean`: remove generated artifacts and the local OCB binary
## Adding components or bumping versions safely
1. Edit `builder-config.yaml`.
2. Run `make check` to regenerate the collector and compile the generated module.