Skip to content

Commit

Permalink
Refactor metrics.go file + Add pushgatewayURL singletone (#149)
Browse files Browse the repository at this point in the history
* Move and split metrics.go into a separate package

Signed-off-by: Emruz Hossain <[email protected]>

* Add getter and setter for PushgatewayURL

Signed-off-by: Emruz Hossain <[email protected]>

* Remove pushgateway.URL()

Signed-off-by: Emruz Hossain <[email protected]>

* Fix pushgateURL assignment

Signed-off-by: Emruz Hossain <[email protected]>
  • Loading branch information
Emruz Hossain authored Jan 31, 2022
1 parent 553a63a commit 3e17dd8
Show file tree
Hide file tree
Showing 8 changed files with 1,226 additions and 1,125 deletions.
7 changes: 3 additions & 4 deletions apis/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ const (
)

const (
CallerWebhook = "webhook"
CallerController = "controller"
PushgatewayLocalURL = "http://localhost:56789"
DefaultHost = "host-0"
CallerWebhook = "webhook"
CallerController = "controller"
DefaultHost = "host-0"
)

// ==================== Prometheus metrics related constants ============
Expand Down
Loading

0 comments on commit 3e17dd8

Please sign in to comment.