Skip to content

Commit

Permalink
feat: add prometheus exporter to otel collector (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielp authored Jul 20, 2023
1 parent 8496207 commit e16041e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endif

.PHONY: build
build: check-prep
$(OCB_PATH)/ocb --config config/manifest.yaml
GOOS=$(OS) GOARCH=$(ARCH) $(OCB_PATH)/ocb --config config/manifest.yaml

.PHONY: build-debug
build-debug: check-prep
Expand Down Expand Up @@ -83,5 +83,6 @@ cibuild: check-prep
$(OCB_PATH)/ocb --config config/manifest.yaml --skip-compilation

.PHONY: dockerbuild
dockerbuild: build
dockerbuild:
$(MAKE) build OS=linux ARCH=amd64
docker build . -t liatrio/liatrio-otel-collector:localdev --build-arg BIN_PATH="./build/otelcol-custom"
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ service:
extensions: [health_check, pprof, zpages]
pipelines:
metrics:
receivers: [otlp, gitprovider]
receivers: [otlp, prometheus, gitprovider]
processors: [batch]
exporters: [logging]

Expand Down
1 change: 1 addition & 0 deletions config/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exporters:
- gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.81.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerexporter v0.81.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/influxdbexporter v0.81.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.81.0

processors:
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.81.0
Expand Down

0 comments on commit e16041e

Please sign in to comment.