gitea: code.gitea.io/gitea/modules/metrics Index | Files

package metrics

import "code.gitea.io/gitea/modules/metrics"

Index

Package Files

collector.go

type Collector Uses

type Collector struct {
    Accesses      *prometheus.Desc
    Actions       *prometheus.Desc
    Attachments   *prometheus.Desc
    Comments      *prometheus.Desc
    Follows       *prometheus.Desc
    HookTasks     *prometheus.Desc
    Issues        *prometheus.Desc
    Labels        *prometheus.Desc
    LoginSources  *prometheus.Desc
    Milestones    *prometheus.Desc
    Mirrors       *prometheus.Desc
    Oauths        *prometheus.Desc
    Organizations *prometheus.Desc
    PublicKeys    *prometheus.Desc
    Releases      *prometheus.Desc
    Repositories  *prometheus.Desc
    Stars         *prometheus.Desc
    Teams         *prometheus.Desc
    UpdateTasks   *prometheus.Desc
    Users         *prometheus.Desc
    Watches       *prometheus.Desc
    Webhooks      *prometheus.Desc
}

Collector implements the prometheus.Collector interface and exposes gitea metrics for prometheus

func NewCollector Uses

func NewCollector() Collector

NewCollector returns a new Collector with all prometheus.Desc initialized

func (Collector) Collect Uses

func (c Collector) Collect(ch chan<- prometheus.Metric)

Collect returns the metrics with values

func (Collector) Describe Uses

func (c Collector) Describe(ch chan<- *prometheus.Desc)

Describe returns all possible prometheus.Desc

Package metrics imports 2 packages (graph) and is imported by 2 packages. Updated 2019-03-26. Refresh now. Tools for package owners.