api

package
v0.0.0-...-7825352 Latest Latest
Warning

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

Go to latest
Published: May 12, 2014 License: Apache-2.0 Imports: 18 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 {
	Config        *config.Config
	TargetManager retrieval.TargetManager
	Storage       metric.PreloadingPersistence
	// contains filtered or unexported fields
}

func (MetricsService) Metrics

func (serv MetricsService) Metrics(w http.ResponseWriter, r *http.Request)

func (MetricsService) Query

func (serv MetricsService) Query(w http.ResponseWriter, r *http.Request)

func (MetricsService) QueryRange

func (serv MetricsService) QueryRange(w http.ResponseWriter, r *http.Request)

func (*MetricsService) RegisterHandler

func (msrv *MetricsService) RegisterHandler()

func (MetricsService) SetTargets

func (serv MetricsService) SetTargets(w http.ResponseWriter, r *http.Request)

type TargetGroup

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

Notes

Bugs

  • Use Content-Type negotiation.

  • 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