metrics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromMetricSync

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

PromMetricSync synchronizes prometheus metrics from the prometheus API to the database

func NewPromMetricSync

func NewPromMetricSync(promApiClient v1.API, db *database.DB, logger *logging.Logger) *PromMetricSync

NewPromMetricSync creates a new PromMetricSync

func (*PromMetricSync) Clusters

func (pms *PromMetricSync) Clusters(ctx context.Context, informer kcache.SharedIndexInformer) error

func (*PromMetricSync) Containers

func (pms *PromMetricSync) Containers(ctx context.Context, informer kcache.SharedIndexInformer) error

func (*PromMetricSync) Nodes

func (pms *PromMetricSync) Nodes(ctx context.Context, informer kcache.SharedIndexInformer) error

func (*PromMetricSync) Pods

func (pms *PromMetricSync) Pods(ctx context.Context, informer kcache.SharedIndexInformer) error

type PromQuery

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

PromQuery defines a prometheus query with the metric group, the query and the name label

type PrometheusConfig

type PrometheusConfig struct {
	Url string `yaml:"url"`
}

PrometheusConfig defines Prometheus configuration.

func (*PrometheusConfig) Validate

func (c *PrometheusConfig) Validate() error

Validate checks constraints in the supplied Prometheus configuration and returns an error if they are violated.

Jump to

Keyboard shortcuts

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