Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #88 from gbevan/D20190331_prometheus
Browse files Browse the repository at this point in the history
D20190331 prometheus
  • Loading branch information
gbevan authored Mar 31, 2019
2 parents 632689d + 0dd75a4 commit 926bbe5
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 3 deletions.
52 changes: 51 additions & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ docker run --init -d \

### Going HA and Scalable with gostint
See [gostint-helm](https://github.com/goethite/gostint-helm) for (a work-in-progress)
PoC HA deployment of gostint using mongodb, etcd and vault on kubernetes.
PoC HA deployment of gostint using mongodb, consul and vault on kubernetes.

### gostint-client
A sister project called [gostint-client](https://github.com/goethite/gostint-client)
Expand Down
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ import (
"github.com/go-chi/chi/middleware"
"github.com/go-chi/render"
"github.com/hashicorp/vault/api"

"github.com/prometheus/client_golang/prometheus/promhttp"
)

//go:generate esc -o banner.go banner.txt
Expand Down Expand Up @@ -121,6 +123,9 @@ func Routes() *chi.Mux {
r.Mount("/api/job", job.Routes(GetDb()))
r.Mount("/api/health", healthApi.Routes(GetDb()))
r.Mount("/api/vault", vault.Routes())

// prometheus metrics exposition
r.Mount("/api/metrics", promhttp.Handler())
})

router.Get("/login", func(w http.ResponseWriter, r *http.Request) {
Expand Down
3 changes: 2 additions & 1 deletion scripts/init_vault.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash -e

VAULTVER=0.11.3
# VAULTVER=0.11.3
VAULTVER=1.1.0

GOSTINT_ROLENAME="gostint-role"

Expand Down

0 comments on commit 926bbe5

Please sign in to comment.