prometheus

package
v0.0.0-...-84a5812 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package prometheus provides a Prometheus implementation of a datastore.Provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	API v1.API
}

Provider provides methods for querying a Prometheus server.

func NewProvider

func NewProvider(prometheusURL string) (*Provider, error)

NewProvider returns a new *Provider for querying a Prometheus server.

func (*Provider) ProvideShardServerCounts

func (prom *Provider) ProvideShardServerCounts(ctx context.Context) ([]int, error)

ProvideShardServerCounts queries metrics from a Prometheus server and satisfies the datastore.Provider interface.

Jump to

Keyboard shortcuts

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