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: about 1 month 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-09T22:32:07.000Z (almost 2 years ago)
- Last Synced: 2024-08-05T15:07:19.694Z (10 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:

Requests per Second:

Average Response Time:

Response Duration:

View the logs from our dashboard:

After we created a user, we can explore our logs dashboard and view the traceid:

## Stargazers over time
[](https://starchart.cc/ruanbekker/grafana-observability-primer)