Giter VIP home page Giter VIP logo

milossimic / logging-app Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 3.52 MB

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

License: MIT License

Python 85.60% HTML 3.06% Shell 6.57% Dockerfile 4.77%
django python elk-stack logging learning-by-doing learning-exercise learning influxdb telegraf grafana grafana-dashboard grafana-influxdb

logging-app's Introduction

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

logging-app's People

Contributors

milossimic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.