prometheus

package
v0.32.0 Latest Latest
Warning

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

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

Documentation

Overview

Package prometheus provides an otelcol.receiver.prometheus component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	// Output configures where to send received data. Required.
	Output *otelcol.ConsumerArguments `river:"output,block"`
}

Arguments configures the otelcol.receiver.prometheus component.

type Component

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

Component is the otelcol.receiver.prometheus component.

func NewComponent

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

NewComponent creates a new otelcol.receiver.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.

type Exports

type Exports struct {
	Receiver storage.Appendable `river:"receiver,attr"`
}

Exports are the set of fields exposed by the otelcol.receiver.prometheus component.

Directories

Path Synopsis
Package internal is a near copy of https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.61.0/receiver/prometheusreceiver/internal A copy was made because the upstream package is internal.
Package internal is a near copy of https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.61.0/receiver/prometheusreceiver/internal A copy was made because the upstream package is internal.

Jump to

Keyboard shortcuts

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