Giter VIP home page Giter VIP logo

elk-study's Introduction

elk-study

A project to study about observability

I'm using ELK (Elastic, Logstash, Kibana) to check a small application made in python

Technologies

  • Python
  • Flask
  • Elastic Apm (Flask)
  • Docker
  • Docker Compose
  • ELK Stack

Configuration

All the configurations needed are in files inside the services folder

  • ./docker/apm-server/apm-server.yml
  • ./docker/elasticsearch/config/elasticsearch.yml
  • ./docker/filebeat/config/filebeat.docker.yml
  • ./docker/kibana/config/kibana.yml
  • ./docker/logstash/pipeline/filebeat.conf

Application

Start all services in docker-compose.yml file

$ docker-compose -f ./docker/docker-compose.yml up

The application is listening on port 3000

http://locahost:3000

There are a few endpoints to fill the elastic service

  • /home

    • this endpoint will log Calling /home - Lets goooooo in elastic and print Hello world on screen
  • /home/me

    • this endpoint will just print Hello Felipe on screen
  • /error/capture/exception

    • this endpoint will gerenate a ZeroDivisionError error and be captured by apm service and then print error captured on screen
  • /error/capture/message

    • this endpoint will capture handling error message into the apm service and then print error captured on screen
  • /error/capture/extra

    • this endpoint will put some extra info into log and then print error captured on screen
  • /error/capture/extra2

    • same as /extra, just to test different messages
  • /error/capture/should/

    • this endpoint, you can pass "true" or "false" to param, which will:
      • true: thrown an expcetion, which will be captured by apm service
      • false: will not thrown an exception and will just print not throwing exception on screen
  • /events/<event_name>

    • <event_name> is optional, this will create a transaction name (span) in elastic

Kibana

The kibana is listening on port 5601

http://localhost:5601

elk-study's People

Contributors

felipenathan avatar

Watchers

 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.