Git Product home page Git Product logo

flask-prometheus-gunicorn-docker-real-app's Introduction

Flask prometheus gunicorn docker real app

Python 3.7

Docker build

$ docker build -t anishdhanka/flask_prometheus -f docker/Dockerfile .

Docker run

$ docker run  -d -p 5000:5000 -td anishdhanka/flask_prometheus 

Request metrics test

$ curl -i http://0.0.0.0:5000/metrics

Sample Response

# HELP request_count_total Multiprocess metric
# TYPE request_count_total counter
request_count_total{endpoint="/metrics",http_status="200",method="GET",prometheus_app="prometheus_app"} 16.0
# HELP request_latency_seconds Multiprocess metric
# TYPE request_latency_seconds histogram
request_latency_seconds_sum{app_name="prometheus_app",endpoint="/metrics"} 0.014453649520874023
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.005"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.01"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.025"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.05"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.075"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.1"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.25"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.5"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="0.75"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="1.0"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="2.5"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="5.0"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="7.5"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="10.0"} 16.0
request_latency_seconds_bucket{app_name="prometheus_app",endpoint="/metrics",le="+Inf"} 16.0
request_latency_seconds_count{app_name="prometheus_app",endpoint="/metrics"} 16.0

flask-prometheus-gunicorn-docker-real-app's People

Contributors

anishmourya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.