{"modulePath":"github.com/RedAFD/code-core","version":"v1.8.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package metrics\n\n## Types\n\n```go\ntype Collector struct {\n\tAccesses      *prometheus.Desc\n\tActions       *prometheus.Desc\n\tAttachments   *prometheus.Desc\n\tComments      *prometheus.Desc\n\tFollows       *prometheus.Desc\n\tHookTasks     *prometheus.Desc\n\tIssues        *prometheus.Desc\n\tLabels        *prometheus.Desc\n\tLoginSources  *prometheus.Desc\n\tMilestones    *prometheus.Desc\n\tMirrors       *prometheus.Desc\n\tOauths        *prometheus.Desc\n\tOrganizations *prometheus.Desc\n\tPublicKeys    *prometheus.Desc\n\tReleases      *prometheus.Desc\n\tRepositories  *prometheus.Desc\n\tStars         *prometheus.Desc\n\tTeams         *prometheus.Desc\n\tUpdateTasks   *prometheus.Desc\n\tUsers         *prometheus.Desc\n\tWatches       *prometheus.Desc\n\tWebhooks      *prometheus.Desc\n}\n```\nCollector implements the prometheus.Collector interface and exposes gitea metrics for prometheus\n\n```go\nfunc NewCollector() Collector\n```\nNewCollector returns a new Collector with all prometheus.Desc initialized\n\n```go\nfunc (c Collector) Collect(ch chan\u003c- prometheus.Metric)\n```\nCollect returns the metrics with values\n\n```go\nfunc (c Collector) Describe(ch chan\u003c- *prometheus.Desc)\n```\nDescribe returns all possible prometheus.Desc\n\n","path":"github.com/RedAFD/code-core/modules/metrics","name":"metrics","synopsis":"","isRedistributable":true}
