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 - labstack/echo-prometheus

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
example
example
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
prometheus.go
prometheus.go
 
 
prometheus_test.go
prometheus_test.go
 
 

Repository files navigation

Sourcegraph GoDoc Go Report Card License

Echo Prometheus metrics and monitoring middleware

Prometheus middleware for Echo framework.

Versioning

  • version v0.x.y tracks the latest Echo version (v5).
  • main branch is compatible with the latest Echo version (v5).

Usage

Add Prometheus middleware dependency

go get github.com/labstack/echo-prometheus

Use as an import statement

import echoprometheus "github.com/labstack/echo-prometheus"

Add middleware to your Echo instance

e.Use(echoprometheus.NewMiddleware("myapp"))

or with config

e.Use(echoprometheus.NewMiddlewareWithConfig(echoprometheus.MiddlewareConfig{
    Subsystem: "myapp",
}))

Add handler to your Echo instance to expose metrics

e.GET("/metrics", echoprometheus.NewHandler())

Full example

See example

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

5 stars

Watchers

0 watching

Forks

3 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.