Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shimizukawa/try-otel
OpenTelemetry DEMO with Python, Django, React, Uptrace, Vector
https://github.com/shimizukawa/try-otel
django monitoring opentelemetry python react uptrace vector
Last synced: about 1 month ago
JSON representation
OpenTelemetry DEMO with Python, Django, React, Uptrace, Vector
- Host: GitHub
- URL: https://github.com/shimizukawa/try-otel
- Owner: shimizukawa
- License: mit
- Created: 2021-09-17T21:10:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-29T07:52:48.000Z (about 1 year ago)
- Last Synced: 2024-10-03T23:14:15.201Z (about 2 months ago)
- Topics: django, monitoring, opentelemetry, python, react, uptrace, vector
- Language: Python
- Homepage:
- Size: 7.72 MB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenTelemetry demo with django/celery
This is a OpenTelemetry DEMO.
Applications:
* Nginx as Web Server (TRACE)
* WSGI as Python Web Application Server (TRACE, METRIC)
* Django as Python Web Application Server (TRACE, METRIC, LOG)
* Django ORM with Postgres (TRACE, LOG)
* Python logging (LOG)
* Requests as Python HTTP Client (TRACE, LOG)
* React as Web Frontend by JavaScript (TRACE, LOG)
* Postgres (NOT READY)
* Redis (NOT READY)
* Celery (NOT READY)Monitoring/Visualizing
* OpenTelemetry Collector process
* Uptrace monitor
* Jaeger process for TRACING monitor
* Zipkin process for TRACING monitor
* Prometheus process for Metrics monitorEmail server
* MailHog to receive alert
## invoke docker components
```bash
$ docker compose up
```And open:
* Uptrace:http://uptrace.lvh.me/ - Select "My project" from Top-Left dropdown.
- Jaeger: http://jaeger.lvh.me/
- Zipkin: http://zipkin.lvh.me/
- Prometheus: http://prometheus.lvh.me/
- Email: http://mailhog.lvh.me/## invoke django app and celery
setup
```console
$ docker compose run --rm backend python manage.py migrate
$ docker compose run --rm backend python manage.py createsuperuser --username=joe [email protected]
```invoke celery (NOT READY)
```console
$ python
```invoke django
```console
$ docker compose run --rm backend
```And open http://api.lvh.me/
## Run console client
run client with **manual** instrumentation
```console
$ docker compose run --rm console
```run client with **auto** instrumentation
```console
$ docker compose run --rm console-auto
```## run react frontend
Just open http://lvh.me/