prometheus

package
v3.0.0-...-de0fd11 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPrometheus

func ConvertPrometheus(input model.DataEntry) (metricdata.Metrics, error)

ConvertPrometheus converts metrics data points from our internal model to OTel format.

Types

type InstrumentPointConverter

type InstrumentPointConverter[N float64 | int64] func(input model.DataEntry) metricdata.Aggregation

type Scraper

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

Scraper is a Prometheus MetricsProducer.

func NewScraper

func NewScraper(targets []string) *Scraper

NewScraper initializes a new Prometheus MetricsProducer.

func (*Scraper) Produce

func (s *Scraper) Produce(ctx context.Context) ([]model.DataEntry, error)

func (*Scraper) Type

func (s *Scraper) Type() model.MetricsSourceType

Jump to

Keyboard shortcuts

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