Skip to content

Commit

Permalink
chore: update synthetic test influx2otel-otelcol
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Marble authored and jacobmarble committed Sep 21, 2021
1 parent 3eb003a commit 10b0a19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tests-synthetic/Dockerfile.telegraf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.16-alpine AS builder

RUN apk add git
RUN git clone --branch jgm-opentelemetry --depth 1 https://github.com/jacobmarble/telegraf
RUN git clone --branch master --depth 1 https://github.com/influxdata/telegraf
WORKDIR /go/telegraf

RUN \
Expand All @@ -12,3 +12,4 @@ RUN \
FROM scratch

COPY --from=builder /go/bin/telegraf /
CMD ["/telegraf"]
5 changes: 2 additions & 3 deletions tests-synthetic/docker-compose.influx2otel-otelcol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ services:
# Configuration in telegraf-generate-lp.toml
build:
dockerfile: Dockerfile.telegraf
image: telegraf:local
command: /telegraf
# image: telegraf:1.20-alpine
volumes:
- ./telegraf-generate-lp.toml:/etc/telegraf/telegraf.conf:ro
links:
- opentelemetry-collector

opentelemetry-collector:
# Configuration in otelcol-receive-print-lp.yaml
image: otel/opentelemetry-collector-contrib:0.28.0
image: otel/opentelemetry-collector-contrib:0.35.0
command: /otelcolcontrib --config /config.yaml --log-level INFO
stop_grace_period: 1s
volumes:
Expand Down
1 change: 0 additions & 1 deletion tests-synthetic/otelcol-receive-print-lp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
receivers:
influxdb:
endpoint: 0.0.0.0:8086
metrics_schema: telegraf-prometheus-v1

processors:

Expand Down

0 comments on commit 10b0a19

Please sign in to comment.