Skip to content

Simple test app that logs user activity from Django app to ELK stack, metrics using Influxdb using Docker.

License

Notifications You must be signed in to change notification settings

MilosSimic/logging-app

Repository files navigation

Built with Spacemacs

logging-app

Simple test app that logs user activity from Django app to ELK stack using Docker.

Steps

  • Delte pgadata
  • Remove esdata, influx folder content
  • Watch loags for postgresql and elastecsearch!

Dashboard access

Grafana notes

  • For Grafana to show results, choose Datasource add some (vm_metrics, docker_metrics) or both if you want to use more than one source.
  • For type choose influx with url http://influxdb:8086 (this is docker compose name and port)
  • For access choose proxy
  • For database data choose vm_metrics or docker_metrics these are influx names

Show graph

  • Goto New Dashboard > Graph
  • Click on Panel Title and choose edit
  • From default choose_value to watch for
  • Than from Select statement choose filed

Gunicorn

Check gunicorn setup

Travis tutorial

  • Tutorial for travis CICD can be found here
  • Docker image for Travis CLI can be found here

More materials

  • Grafana create dashboard InfluxDB data video
  • Influxdb and grafana by docker page