ruanbekker / grafana-observability-primer

Grafana Observability Primer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grafana-observability-primer

Grafana Observability Primer

stack

Deploy:

docker-compose up -d --build

k6

Create user:

docker run --rm -i --network=docknet loadimpact/k6 run --quiet - < k6lib/http_post.js

Run tests to perform get requests:

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

Requests per Second:

image

Average Response Time:

image

Response Duration:

image

View the logs from our dashboard:

logs

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

logs-to-traces

Stargazers over time

Stargazers over time

About

Grafana Observability Primer


Languages

Language:Python 68.5%Language:Makefile 13.6%Language:JavaScript 10.9%Language:Dockerfile 7.1%