Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncRequestsTotal ¶
Types ¶
type OctopusMetricsCollector ¶
type OctopusMetricsCollector struct {
// contains filtered or unexported fields
}
OctopusMetricsCollector implements the prometheus.Collector interface to provide up-to-date metrics when Prometheus scrapes the endpoint.
func NewOctopusMetricsCollector ¶
func NewOctopusMetricsCollector(cli client.Client, eng rules.Engine) *OctopusMetricsCollector
NewOctopusMetricsCollector creates a new instance of OctopusMetricsCollector
func (*OctopusMetricsCollector) Collect ¶
func (c *OctopusMetricsCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface It is called by Prometheus when it scrapes the metrics endpoint This method collects current metrics and sends them to the provided channel
func (*OctopusMetricsCollector) Describe ¶
func (c *OctopusMetricsCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface It sends the descriptors of all the metrics the collector will provide
func (*OctopusMetricsCollector) TrackRequest ¶
func (c *OctopusMetricsCollector) TrackRequest(controllerType string, scopeMatched bool)
Click to show internal directories.
Click to hide internal directories.