Skip to content

Instantly share code, notes, and snippets.

View chris530's full-sized avatar

Chris Haessig chris530

View GitHub Profile
package main
import (
"fmt"
"net"
"os"
"strconv"
"time"
)
@chris530
chris530 / prometheus.go
Created July 23, 2019 20:22
Simple prometheus server
package main
import (
"net/http"
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/client_golang/prometheus/promhttp"
)