Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanbekker/grafana-observability-primer
Grafana Observability Primer
https://github.com/ruanbekker/grafana-observability-primer
docker docker-compose grafana loki monitoring observability tempo
Last synced: 2 months ago
JSON representation
Grafana Observability Primer
- Host: GitHub
- URL: https://github.com/ruanbekker/grafana-observability-primer
- Owner: ruanbekker
- Created: 2022-03-28T19:54:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-09T22:32:07.000Z (over 1 year ago)
- Last Synced: 2024-08-05T15:07:19.694Z (6 months ago)
- Topics: docker, docker-compose, grafana, loki, monitoring, observability, tempo
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 40
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grafana-observability-primer
Grafana Observability Primer## stack
Deploy:
```bash
docker-compose up -d --build
```## k6
Create user:
```bash
docker run --rm -i --network=docknet loadimpact/k6 run --quiet - < k6lib/http_post.js
```Run tests to perform get requests:
```bash
docker run --rm -i --network=docknet loadimpact/k6 run --quiet - < k6lib/http_gets.js
```## usage
API Usage:
```
# list all users
curl -H 'Content-Type: application/json' http://localhost:5000/users
``````
# create user
curl -XPOST -H 'Content-Type: application/json' http://localhost:5000/users -d '{"username": "ruan", "email": "ruan@localhost"}'
```## grafana screenshots
CPU and Memory:
![image](https://user-images.githubusercontent.com/567298/160496251-76fea7a6-11fa-419c-a9fc-2f9b2c2f2604.png)
Requests per Second:
![image](https://user-images.githubusercontent.com/567298/160496321-3b42bdf3-ce19-4c68-b0bd-4961c9fac24c.png)
Average Response Time:
![image](https://user-images.githubusercontent.com/567298/160496357-08a0d009-265f-4cd7-ad02-635d7e1d58f1.png)
Response Duration:
![image](https://user-images.githubusercontent.com/567298/160496393-8a65a499-882a-49ad-8f7d-1157fff4063a.png)
View the logs from our dashboard:
![logs](https://user-images.githubusercontent.com/567298/227045215-8d39086f-b329-485a-85c4-d5b7659d545f.png)
After we created a user, we can explore our logs dashboard and view the traceid:
![logs-to-traces](https://user-images.githubusercontent.com/567298/227044932-ab6f30e0-ff09-48dc-b8ec-24860732ccfb.png)
## Stargazers over time
[![Stargazers over time](https://starchart.cc/ruanbekker/grafana-observability-primer.svg)](https://starchart.cc/ruanbekker/grafana-observability-primer)