prometheus

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 5 Imported by: 1

README

GoZix Prometheus

Dependencies

Configuration example

{
  "prometheus": {
    "host": "0.0.0.0",
    "port": 8683,
    "path": "/metrics"
  }
}

Flags

--prometheus-port - Prometheus metrics port. The same `prometheus.port` config, but with high priority.

Documentation

Index

Constants

View Source
const (
	// BundleName is default definition name.
	BundleName = "prometheus"
	// // TagCollectorProvider is alias of component.TagCollectorProvider.
	TagCollectorProvider = component.TagCollectorProvider
)

Variables

View Source
var DefRegistryName = component.DefRegistryName

DefRegistryName is a internal registry definition name

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

Bundle implements the glue.Bundle interface.

func NewBundle

func NewBundle(options ...Option) *Bundle

NewBundle create bundle instance.

func (*Bundle) Build

func (b *Bundle) Build(builder *di.Builder) error

Build implements the glue.Bundle interface.

func (*Bundle) DependsOn

func (b *Bundle) DependsOn() []string

DependsOn implements the glue.DependsOn interface.

func (*Bundle) Name

func (b *Bundle) Name() string

Name is key implements the glue.Bundle interface.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option interface.

func Registry

func Registry(registry *prometheus.Registry) Option

Registry option makes it possible to set a custom registry.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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