prometheus

package
v0.36.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package prometheus provides an otelcol.exporter.prometheus component.

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	IncludeTargetInfo: true,
	IncludeScopeInfo:  false,
	GCFrequency:       5 * time.Minute,
}

DefaultArguments holds defaults values.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	IncludeTargetInfo bool                 `river:"include_target_info,attr,optional"`
	IncludeScopeInfo  bool                 `river:"include_scope_info,attr,optional"`
	GCFrequency       time.Duration        `river:"gc_frequency,attr,optional"`
	ForwardTo         []storage.Appendable `river:"forward_to,attr"`
}

Arguments configures the otelcol.exporter.prometheus component.

func (*Arguments) SetToDefault added in v0.35.0

func (args *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate added in v0.35.0

func (args *Arguments) Validate() error

Validate implements river.Validator.

type Component

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

Component is the otelcol.exporter.prometheus component.

func New

func New(o component.Options, c Arguments) (*Component, error)

New creates a new otelcol.exporter.prometheus component.

func (*Component) Run

func (c *Component) Run(ctx context.Context) error

Run implements Component.

func (*Component) Update

func (c *Component) Update(newConfig component.Arguments) error

Update implements Component.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳