-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update-workflow
- Loading branch information
Showing
16 changed files
with
1,095 additions
and
351 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
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.