Skip to content

Go app that exposes metrics about its HTTP handlers.

License

Notifications You must be signed in to change notification settings

yuzliu/prometheus-example-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus Example App

This example app serves as an example of how one can easily instrument HTTP handlers with Prometheus metrics. It uses the Prometheus go client to create a new Prometheus registry.

Usage is simple, on any request to / the request will result in a 200 response code. This increments the counter for this response code. Similarly the /err endpoint will result in a 404 response code, therefore increments that respective counter.

A Docker image is available at: quay.io/brancz/prometheus-example-app:v0.1.0

About

Go app that exposes metrics about its HTTP handlers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Go 81.8%
  • Makefile 9.9%
  • Dockerfile 8.3%