Skip to content

Commit

Permalink
Fix prometheus namespace in postgres reader & writer (#1109)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milošević <iva@blokovi.com>
  • Loading branch information
blokovi authored Apr 13, 2020
1 parent 880e193 commit 537d73d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/postgres-reader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ func newService(db *sqlx.DB, logger logger.Logger) readers.MessageRepository {
svc = api.MetricsMiddleware(
svc,
kitprometheus.NewCounterFrom(stdprometheus.CounterOpts{
Namespace: svcName,
Namespace: "postgres",
Subsystem: "message_reader",
Name: "request_count",
Help: "Number of requests received.",
}, []string{"method"}),
kitprometheus.NewSummaryFrom(stdprometheus.SummaryOpts{
Namespace: svcName,
Namespace: "postgres",
Subsystem: "message_reader",
Name: "request_latency_microseconds",
Help: "Total duration of requests in microseconds.",
Expand Down
4 changes: 2 additions & 2 deletions cmd/postgres-writer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ func newService(db *sqlx.DB, logger logger.Logger) writers.MessageRepository {
svc = api.MetricsMiddleware(
svc,
kitprometheus.NewCounterFrom(stdprometheus.CounterOpts{
Namespace: svcName,
Namespace: "postgres",
Subsystem: "message_writer",
Name: "request_count",
Help: "Number of requests received.",
}, []string{"method"}),
kitprometheus.NewSummaryFrom(stdprometheus.SummaryOpts{
Namespace: svcName,
Namespace: "postgres",
Subsystem: "message_writer",
Name: "request_latency_microseconds",
Help: "Total duration of requests in microseconds.",
Expand Down

0 comments on commit 537d73d

Please sign in to comment.