Skip to content

Commit 9effff4

Browse files
neilschellyYannig
authored andcommitted
Updating to newer Golang client library for Prometheus
This is part of resolving a metric limit bug at iamseth#111
1 parent df17b76 commit 9effff4

File tree

289 files changed

+18
-123387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+18
-123387
lines changed

go.mod

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module github.com/iamseth/oracledb_exporter
2+
3+
go 1.14
4+
5+
require (
6+
github.com/BurntSushi/toml v0.3.1
7+
github.com/beorn7/perks v1.0.0
8+
github.com/golang/protobuf v1.3.1
9+
github.com/mattn/go-oci8 v0.0.0-20160329132525-7a6ecfe0eedf
10+
github.com/matttproud/golang_protobuf_extensions v1.0.1
11+
github.com/prometheus/client_golang v1.0.0
12+
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
13+
github.com/prometheus/common v0.6.0
14+
github.com/prometheus/procfs v0.0.2
15+
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
16+
)

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"fmt"
1919

2020
"github.com/prometheus/client_golang/prometheus"
21+
"github.com/prometheus/client_golang/prometheus/promhttp"
2122
"github.com/prometheus/common/log"
2223
//Required for debugging
2324
//_ "net/http/pprof"
@@ -412,7 +413,7 @@ func main() {
412413
}
413414
exporter := NewExporter(dsn)
414415
prometheus.MustRegister(exporter)
415-
http.Handle(*metricPath, prometheus.Handler())
416+
http.Handle(*metricPath, promhttp.Handler())
416417
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
417418
w.Write(landingPage)
418419
})

vendor/github.com/Sirupsen/logrus/CHANGELOG.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

vendor/github.com/Sirupsen/logrus/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)