Skip to content

pinscript/httpstats_for_prometheus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A HTTP statistic exporter for Prometheus written in Go

This is a HTTP statistic gathering script written in Go to export metrics to Prometheus.

The config file allows for adding multiple links, and changing the port. Default port is ":7777", just remember to change it in the dockerfile as well if you want a different port.

To Run

go get github.com/prometheus/client_golang/prometheus
go get github.com/tkanos/gonfig
go run main.go

Thanks

The original idea came from httpstat command (and Dave Cheney's golang implementation), and Taichi Nakashima's package go-httpstat.

refs: https://github.com/davecheney/httpstat and https://github.com/tcnksm/go-httpstat

About

This is a HTTP statistic gathering script written in Go to export metrics to Prometheus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%