api

package
v0.0.0-...-8f0a3a0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2013 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsService

type MetricsService struct {
	gorest.RestService `root:"/api/" consumes:"application/json" produces:"application/json"`

	Config        *config.Config
	TargetManager retrieval.TargetManager
	Storage       *metric.TieredStorage
	// contains filtered or unexported fields
}

func (MetricsService) Metrics

func (serv MetricsService) Metrics() string

func (MetricsService) Query

func (serv MetricsService) Query(expr string, formatJson string) string

func (MetricsService) QueryRange

func (serv MetricsService) QueryRange(expr string, end int64, duration int64, step int64) string

func (MetricsService) SetTargets

func (serv MetricsService) SetTargets(targetGroups []TargetGroup, jobName string)

type TargetGroup

type TargetGroup struct {
	Endpoints  []string          `json:"endpoints"`
	BaseLabels map[string]string `json:"baseLabels"`
}

Notes

Bugs

  • Validate that this ScrapeInterval is in fact the proper one for the job.

Jump to

Keyboard shortcuts

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