Documentation ¶
Index ¶
- Constants
- type ErrorLoggerWrapper
- type InstanceInfo
- type Metrics
- func (m *Metrics) IncrementErrorsCount(num int)
- func (m *Metrics) IncrementPlaybookArchivedCount(num int)
- func (m *Metrics) IncrementPlaybookCreatedCount(num int)
- func (m *Metrics) IncrementPlaybookRestoredCount(num int)
- func (m *Metrics) IncrementRunsCreatedCount(num int)
- func (m *Metrics) IncrementRunsFinishedCount(num int)
- func (m *Metrics) ObserveFollowersActiveTotal(count int64)
- func (m *Metrics) ObserveParticipantsActiveTotal(count int64)
- func (m *Metrics) ObservePlaybooksActiveTotal(count int64)
- func (m *Metrics) ObserveRemindersOutstandingTotal(count int64)
- func (m *Metrics) ObserveRetrosOutstandingTotal(count int64)
- func (m *Metrics) ObserveRunsActiveTotal(count int64)
- type Service
Constants ¶
View Source
const ( MetricsNamespace = "playbooks_plugin" MetricsSubsystemPlaybooks = "playbooks" MetricsSubsystemRuns = "runs" MetricsSubsystemSystem = "system" MetricsCloudInstallationLabel = "installationId" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorLoggerWrapper ¶
type ErrorLoggerWrapper struct { }
func (*ErrorLoggerWrapper) Println ¶
func (el *ErrorLoggerWrapper) Println(v ...interface{})
type InstanceInfo ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics used to instrumentate metrics in prometheus.
func NewMetrics ¶
func NewMetrics(info InstanceInfo) *Metrics
NewMetrics Factory method to create a new metrics collector.
func (*Metrics) IncrementErrorsCount ¶
func (*Metrics) IncrementPlaybookArchivedCount ¶
func (*Metrics) IncrementPlaybookCreatedCount ¶
func (*Metrics) IncrementPlaybookRestoredCount ¶
func (*Metrics) IncrementRunsCreatedCount ¶
func (*Metrics) IncrementRunsFinishedCount ¶
func (*Metrics) ObserveFollowersActiveTotal ¶
func (*Metrics) ObserveParticipantsActiveTotal ¶
func (*Metrics) ObservePlaybooksActiveTotal ¶
func (*Metrics) ObserveRemindersOutstandingTotal ¶
func (*Metrics) ObserveRetrosOutstandingTotal ¶
func (*Metrics) ObserveRunsActiveTotal ¶
type Service ¶
Service prometheus to run the server.
func NewMetricsServer ¶
NewMetricsServer factory method to create a new prometheus server.
Click to show internal directories.
Click to hide internal directories.