Skip to content
A Metrics and sturctured log demo, using a beer inventory
Python Other
  1. Python 98.3%
  2. Other 1.7%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
grafana
prometheus
src
.gitignore
Dockerfile
Makefile
README.md
add_beer.py
docker-compose.yml
health.py
requirements.txt

README.md

Metrics and Structured Logs Demo

This Demo uses:

  • prometheus
  • grafana
  • loki

to demo Structured logs and metrics. This Repo is for teaching feel free to take and learn.

The demo webserver is a inventory of beer.

  • The code all runs in memory to be easily reset
  • has no permissions model
  • is just a http wrapper and metrics collector around an array

requirements

docker plugin install  grafana/loki-docker-driver:latest --alias loki --grant-all-permissions

Run Demo

docker-compose up -d --build
You can’t perform that action at this time.