carbonapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: BSD-2-Clause Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildVersion string

BuildVersion is provided to be overridden at build time. Eg. go build -ldflags -X 'main.BuildVersion=...'

Functions

This section is empty.

Types

type App

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

App is the main carbonapi runnable

func New

func New(config cfg.API, logger *zap.Logger, buildVersion string) (*App, error)

New creates a new app

func (*App) Start

func (app *App) Start()

Start starts the app: inits handlers, logger, starts HTTP server

type PrometheusMetrics

type PrometheusMetrics struct {
	Requests     prometheus.Counter
	Responses    *prometheus.CounterVec
	DurationsExp prometheus.Histogram
	DurationsLin prometheus.Histogram
	TimeInQueue  prometheus.Histogram
}

PrometheusMetrics are metrix exported via /metrics endpoint for Prom scraping

type Rule

type Rule map[string]string

type RuleConfig

type RuleConfig struct {
	Rules []Rule
}

Jump to

Keyboard shortcuts

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