Skip to content

Commit

Permalink
OpenTelemetry Integration (#96)
Browse files Browse the repository at this point in the history
* provides useful OTel metrics and a selection of exports
* adds helpful grafana dashboard for viewing metrics exported by prometheus
  • Loading branch information
jordan-rash authored Jan 31, 2024
1 parent 1fab220 commit 3d17cbd
Show file tree
Hide file tree
Showing 26 changed files with 1,157 additions and 120 deletions.
23 changes: 23 additions & 0 deletions _otel/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3'
services:
prometheus:
image: prom/prometheus:v2.21.0
ports:
- 9000:9090
volumes:
- ./prometheus:/etc/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:7.5.7
environment:
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/provisioning/dashboards/nex.json:/var/lib/grafana/dashboards/nex.json

7 changes: 7 additions & 0 deletions _otel/grafana/provisioning/dashboards/dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: 1
providers:
- name: 'nex-dashboard'
updateIntervalSeconds: 10
allowUiUpdates: false
options:
path: /var/lib/grafana/dashboards
Loading

0 comments on commit 3d17cbd

Please sign in to comment.