diff --git a/examples/demo/.env b/examples/demo/.env deleted file mode 100644 index 4963b70d55a0..000000000000 --- a/examples/demo/.env +++ /dev/null @@ -1,2 +0,0 @@ -OTELCOL_IMG=otel/opentelemetry-collector:0.88.0 -OTELCOL_ARGS= diff --git a/examples/demo/docker-compose.yaml b/examples/demo/docker-compose.yaml index b23fbb3b823d..db514918576c 100644 --- a/examples/demo/docker-compose.yaml +++ b/examples/demo/docker-compose.yaml @@ -21,9 +21,9 @@ services: # Collector otel-collector: - image: ${OTELCOL_IMG} + image: otel/opentelemetry-collector:0.116.1 restart: always - command: ["--config=/etc/otel-collector-config.yaml", "${OTELCOL_ARGS}"] + command: ["--config=/etc/otel-collector-config.yaml"] volumes: - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml ports: diff --git a/examples/demo/otel-collector-config.yaml b/examples/demo/otel-collector-config.yaml index 205a47e97c4a..3c241503b2f7 100644 --- a/examples/demo/otel-collector-config.yaml +++ b/examples/demo/otel-collector-config.yaml @@ -42,3 +42,11 @@ service: receivers: [otlp] processors: [batch] exporters: [debug, prometheus] + telemetry: + metrics: + readers: + - pull: + exporter: + prometheus: + host: '0.0.0.0' + port: 8888