forked from NaicheD/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(perf): Add perf testing and monitoring framework (datahub-projec…
- Loading branch information
Dexter Lee
authored
Sep 8, 2021
1 parent
e30d723
commit 8747fbe
Showing
61 changed files
with
6,684 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ venv.bak/ | |
.dmypy.json | ||
dmypy.json | ||
MANIFEST | ||
*.pyc | ||
|
||
# Added by mp-maker | ||
**/build | ||
|
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,16 @@ | ||
#!/bin/sh | ||
|
||
OTEL_AGENT="" | ||
if [[ $ENABLE_OTEL == true ]]; then | ||
OTEL_AGENT="-javaagent:opentelemetry-javaagent-all.jar " | ||
fi | ||
|
||
PROMETHEUS_AGENT="" | ||
if [[ $ENABLE_PROMETHEUS == true ]]; then | ||
PROMETHEUS_AGENT="-javaagent:jmx_prometheus_javaagent.jar=4318:/datahub/datahub-mce-consumer/scripts/prometheus-config.yaml " | ||
fi | ||
|
||
dockerize \ | ||
-wait tcp://$(echo $KAFKA_BOOTSTRAP_SERVER | sed 's/,/ -wait tcp:\/\//g') \ | ||
-timeout 240s \ | ||
java $JAVA_OPTS $JMX_OPTS -jar /datahub/datahub-mce-consumer/bin/mce-consumer-job.jar | ||
java $JAVA_OPTS $JMX_OPTS $OTEL_AGENT $PROMETHEUS_AGENT -jar /datahub/datahub-mce-consumer/bin/mce-consumer-job.jar |
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
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
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
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
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
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
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,4 @@ | ||
# DataHub Monitoring Quickstart | ||
|
||
This directory contains setup for monitoring DataHub performance and enabling distributed tracing. More details can be | ||
found [here](../../docs/advanced/monitoring.md) |
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,4 @@ | ||
startDelaySeconds: 0 | ||
ssl: false | ||
lowercaseOutputName: false | ||
lowercaseOutputLabelNames: false |
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,24 @@ | ||
--- | ||
version: '3.5' | ||
services: | ||
datahub-mae-consumer: | ||
environment: | ||
- ENABLE_PROMETHEUS=true | ||
- ENABLE_OTEL=true | ||
- OTEL_TRACES_EXPORTER=jaeger | ||
- OTEL_EXPORTER_JAEGER_ENDPOINT=http://jaeger-all-in-one:14250 | ||
- OTEL_METRICS_EXPORTER=none | ||
- OTEL_SERVICE_NAME=datahub-mae-consumer | ||
ports: | ||
- "4318" | ||
|
||
datahub-mce-consumer: | ||
environment: | ||
- ENABLE_PROMETHEUS=true | ||
- ENABLE_OTEL=true | ||
- OTEL_TRACES_EXPORTER=jaeger | ||
- OTEL_EXPORTER_JAEGER_ENDPOINT=http://jaeger-all-in-one:14250 | ||
- OTEL_METRICS_EXPORTER=none | ||
- OTEL_SERVICE_NAME=datahub-mce-consumer | ||
ports: | ||
- "4318" |
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,43 @@ | ||
--- | ||
version: '3.5' | ||
services: | ||
datahub-gms: | ||
environment: | ||
- ENABLE_PROMETHEUS=true | ||
- ENABLE_OTEL=true | ||
- OTEL_TRACES_EXPORTER=jaeger | ||
- OTEL_EXPORTER_JAEGER_ENDPOINT=http://jaeger-all-in-one:14250 | ||
- OTEL_METRICS_EXPORTER=none | ||
- OTEL_SERVICE_NAME=datahub-gms | ||
ports: | ||
- "4318" | ||
|
||
# Jaeger | ||
jaeger-all-in-one: | ||
image: jaegertracing/all-in-one:latest | ||
ports: | ||
- "16686:16686" | ||
- "14268" | ||
- "14250" | ||
|
||
prometheus: | ||
container_name: prometheus | ||
image: prom/prometheus:latest | ||
volumes: | ||
- ./monitoring/prometheus.yaml:/etc/prometheus/prometheus.yml | ||
ports: | ||
- "9089:9090" | ||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
ports: | ||
- "3001:3000" | ||
volumes: | ||
- grafana-storage:/var/lib/grafana | ||
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources | ||
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards | ||
depends_on: | ||
- prometheus | ||
|
||
volumes: | ||
grafana-storage: |
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,9 @@ | ||
apiVersion: 1 | ||
|
||
providers: | ||
- name: Default # A uniquely identifiable name for the provider | ||
folder: Services # The folder where to place the dashboards | ||
type: file | ||
allowUiUpdates: true | ||
options: | ||
path: /etc/grafana/provisioning/dashboards |
Oops, something went wrong.