-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #403 from xmidt-org/logger-basculehelper
Added zap logger and basculehelper package
- Loading branch information
Showing
15 changed files
with
977 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/xmidt-org/ancla" | ||
|
||
// nolint:staticcheck | ||
"github.com/xmidt-org/webpa-common/v2/xmetrics" | ||
) | ||
|
||
func NewHelperMeasures(p xmetrics.Registry) ancla.Measures { | ||
return ancla.Measures{ | ||
ChrysomPollsTotalCounterName: p.NewCounterVec(ancla.ChrysomPollsTotalCounterName), | ||
WebhookListSizeGaugeName: p.NewPrometheusGauge(ancla.WebhookListSizeGaugeName), | ||
} | ||
} | ||
|
||
func AnclaHelperMetrics() []xmetrics.Metric { | ||
return []xmetrics.Metric{ | ||
{ | ||
Name: ancla.ChrysomPollsTotalCounterName, | ||
Type: xmetrics.CounterType, | ||
Help: "Counter for the number of polls (and their success/failure outcomes) to fetch new items.", | ||
LabelNames: []string{ancla.OutcomeLabel}, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.