https://github.com/leocavalcante/tracing-nano
🔠Proof of concept on adding observability features (tracing and metrics) to a Nano microservice (using existing Hyperf components).
https://github.com/leocavalcante/tracing-nano
grafana hyperf jaeger metrics nano observability php prometheus swoole tracing
Last synced: 6 months ago
JSON representation
🔠Proof of concept on adding observability features (tracing and metrics) to a Nano microservice (using existing Hyperf components).
- Host: GitHub
- URL: https://github.com/leocavalcante/tracing-nano
- Owner: leocavalcante
- Created: 2022-08-19T21:51:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-19T21:58:25.000Z (about 3 years ago)
- Last Synced: 2025-03-29T22:41:19.146Z (6 months ago)
- Topics: grafana, hyperf, jaeger, metrics, nano, observability, php, prometheus, swoole, tracing
- Language: PHP
- Homepage: https://nano.hyperf.wiki
- Size: 25.4 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔠Tracing Nano
Proof of concept on adding observability features (tracing and metrics) to a Nano microservice (using existing Hyperf components 🚀).
Run Prometheus, Grafana and Jaeger using Docker:
```shell
docker compose up
```
> Then link Prometheus as a data source in Grafana using service's name as host (i.e.: `http://prometheus:9090`).- Go to http://localhost:3000 to explore metrics using Grafana.
- Go to http://localhost:16686 to explore traces using the Jaeger UI.Run Nano with:
```shell
php app.php start
```- Go to http://localhost:9501 to make a test request.
- Go to http://localhost:9502/metrics you can see some Prometheus data.Thanks to [@huangdijia](https://github.com/huangdijia) for the help with AOP + Nano.