GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - philwinder/prometheus-python: An example of Prometheus instrumentation with Flask and Python

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.py
app.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Example Prometheus Instrumentation for Python

This is a quick example of how to instrument your Flask-based Python app with the Python Prometheus client.

This project is built with:

  • Python 3.6.x

And is packaged as a Docker container. The two top level dependencies are:

  • Flask==0.12.2
  • prometheus-client==0.0.21

See the requirements file for more details.

Prometheus

Prometheus is a Cloud Native monitoring application.

To instrument our Python code we need to manipulate the metrics each time a new HTTP request is received.

See the application for more details.

Building

This project is automatically built by Docker Automated Builds.

To build manually:

docker build -t python-app .

Running

Simply open port 5000 when running as a container:

docker run -p 5000:5000 --name python-app philwinder/prometheus-python

About

An example of Prometheus instrumentation with Flask and Python

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

0 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.