Created
February 11, 2020 02:41
-
-
Save oilbeater/89fba086e31b3fd9cce0b5c1fdc45614 to your computer and use it in GitHub Desktop.
Prometheus HTTP Handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"github.com/prometheus/client_golang/prometheus/promhttp" | |
) | |
func main() { | |
http.Handle("/metrics", promhttp.Handler()) | |
http.ListenAndServe(":2112", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment