carbonapi

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: BSD-2-Clause Imports: 53 Imported by: 1

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(logger *zap.Logger) func()

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

type PrometheusMetrics

type PrometheusMetrics struct {
	Requests                  prometheus.Counter
	Responses                 *prometheus.CounterVec
	FindNotFound              prometheus.Counter
	RenderPartialFail         prometheus.Counter
	RequestCancel             *prometheus.CounterVec
	DurationExp               prometheus.Histogram
	DurationLin               prometheus.Histogram
	RenderDurationExp         prometheus.Histogram
	RenderDurationLinSimple   prometheus.Histogram
	RenderDurationExpSimple   prometheus.Histogram
	RenderDurationExpComplex  prometheus.Histogram
	RenderDurationPerPointExp prometheus.Histogram
	FindDurationExp           prometheus.Histogram
	FindDurationLin           prometheus.Histogram
	FindDurationLinSimple     prometheus.Histogram
	FindDurationLinComplex    prometheus.Histogram
	TimeInQueueExp            prometheus.Histogram
	TimeInQueueLin            prometheus.Histogram
	ActiveUpstreamRequests    prometheus.Gauge
	WaitingUpstreamRequests   prometheus.Gauge
}

PrometheusMetrics are metrix exported via /metrics endpoint for Prom scraping

Jump to

Keyboard shortcuts

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