exporter

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BoardIssueInfo                 = prometheus.NewDesc(prometheus.BuildFQName(namespace, "board", "issue_info"), "Information about issue managed by board", []string{"workspace", "issue_number", "repository_id", "pipeline", "is_epic"}, nil)
	BoardIssueEstimatedStoryPoints = prometheus.NewDesc(prometheus.BuildFQName(namespace, "board", "issue_estimated_story_points"), "Estimated story point of each issue", []string{"workspace", "issue_number", "repository_id"}, nil)
)

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	Logger log.Logger
	// contains filtered or unexported fields
}

Exporter collects ZenHub stats from ZenHub API Response and exports them using the prometheus metrics package.

func NewExporter

func NewExporter(zenhub zenhub.Client, logger log.Logger) *Exporter

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect fetches the stats from ZenHub API Responce and delivers them as Prometheus metrics. It implements prometheus.Collector.

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Describe describes all the metrics ever exported by the ZenHub exporter. It implements prometheus.Collector.

func (*Exporter) GetWorkspaceIssues

func (e *Exporter) GetWorkspaceIssues(ctx context.Context) ([]model.Issue, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL