promquery

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PromAPI string
}

Config structure

type Service

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

Service structure

func New

func New(config *Config) (*Service, error)

New creates a new instance of promquery.Service

func (*Service) Query

func (r *Service) Query(ctx context.Context, query string) (map[string]interface{}, error)

Query fetches data from prometheus using PromQL

Jump to

Keyboard shortcuts

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