prometheus

package
v0.0.0-...-344df76 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package prometheus ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL            string            `yaml:"url" mapstructure:"url"` // prometheus api url
	ClusterID      string            `yaml:"cluster_id" mapstructure:"cluster_id"`
	ExternalLabels map[string]string `yaml:"external_labels" mapstructure:"external_labels"`
}

Config 配置

type PromStore

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

PromStore implements the store node API on top of the remote read API.

func NewPromStore

func NewPromStore(conf []byte) (*PromStore, error)

NewPromStore xxx

func (*PromStore) Info

Info 返回元数据信息

func (*PromStore) LabelNames

LabelNames 返回 labels 列表

func (*PromStore) LabelValues

LabelValues 返回 label values 列表

func (*PromStore) Series

Series 返回时序数据

Jump to

Keyboard shortcuts

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