-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into tls-net-scoping
- Loading branch information
Showing
18 changed files
with
3,553 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
.../opentelemetry-instrumentation-mysql/examples/docker/collector/otel-collector-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
|
||
exporters: | ||
prometheus: | ||
endpoint: "0.0.0.0:8889" | ||
const_labels: | ||
label1: value1 | ||
|
||
logging: | ||
loglevel: debug | ||
|
||
zipkin: | ||
endpoint: "http://zipkin-all-in-one:9411/api/v2/spans" | ||
format: proto | ||
|
||
jaeger: | ||
endpoint: jaeger-all-in-one:14250 | ||
tls: | ||
insecure: true | ||
|
||
processors: | ||
batch: | ||
|
||
extensions: | ||
health_check: | ||
pprof: | ||
endpoint: :1888 | ||
zpages: | ||
endpoint: :55679 | ||
|
||
service: | ||
extensions: [pprof, zpages, health_check] | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [logging] | ||
metrics: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [logging, prometheus] |
68 changes: 68 additions & 0 deletions
68
plugins/node/opentelemetry-instrumentation-mysql/examples/docker/docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
version: "2" | ||
services: | ||
|
||
# mysql | ||
mysql: | ||
image: mysql:5.7 | ||
command: --init-file /etc/mysql/init.sql | ||
volumes: | ||
- ./mysql/init.sql:/etc/mysql/init.sql | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=secret | ||
ports: | ||
- "3306:3306" | ||
|
||
# Jaeger | ||
|
||
jaeger-all-in-one: | ||
image: jaegertracing/all-in-one:latest | ||
ports: | ||
- "16686:16686" | ||
- "14268" | ||
- "14250" | ||
|
||
# Zipkin | ||
|
||
zipkin-all-in-one: | ||
image: openzipkin/zipkin:latest | ||
ports: | ||
- "9411:9411" | ||
|
||
# Collector | ||
|
||
otel-collector: | ||
image: otel/opentelemetry-collector-contrib:0.61.0 | ||
command: ["--config=/etc/otel-collector-config.yaml", ""] | ||
volumes: | ||
- ./collector/otel-collector-config.yaml:/etc/otel-collector-config.yaml | ||
ports: | ||
- "1888:1888" # pprof extension | ||
- "8888:8888" # Prometheus metrics exposed by the collector | ||
- "8889:8889" # Prometheus exporter metrics | ||
- "13133:13133" # health_check extension | ||
- "4317:4317" # OTLP gRPC receiver | ||
- "55679:55679" # zpages extension | ||
depends_on: | ||
- jaeger-all-in-one | ||
- zipkin-all-in-one | ||
|
||
# Prometheus | ||
|
||
prometheus: | ||
image: quay.io/prometheus/prometheus:v2.34.0 | ||
command: --config.file=/etc/prometheus/prometheus.yml --no-scrape.adjust-timestamps | ||
volumes: | ||
- ./prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml | ||
ports: | ||
- "9090:9090" | ||
|
||
# Grafana | ||
|
||
grafana: | ||
image: grafana/grafana:9.0.1 | ||
container_name: grafana | ||
volumes: | ||
- ./grafana/grafana.ini:/etc/grafana/grafana.ini | ||
- ./grafana/provisioning/:/etc/grafana/provisioning/ | ||
ports: | ||
- "3000:3000" |
Oops, something went wrong.