metrics

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HeadBlockNumber = MetricSet.NewHeadBlockNumber("dgraphql")

HeadBlockNumber records the latest block number seen by a pipeline (if present)

View Source
var HeadTimeDrift = MetricSet.NewHeadTimeDrift("dgraphql")

HeadTimeDrift records the amount of time difference between 'now' and the block time of the latest block seen by a pipeline (if present)

View Source
var InflightMutationCount = MetricSet.NewGaugeVec("dgraphql_inflight_mutation_count", perGraphqlLabels, "inflight mutation count currently active, per GraphQL type")

InflightMutationCount records active count of mutation being resolved, per GraphQL type

View Source
var InflightQueryCount = MetricSet.NewGaugeVec("dgraphql_inflight_query_count", perGraphqlLabels, "inflight query count currently active, per GraphQL type")

InflightQueryCount records active count of query being resolved, per GraphQL type

View Source
var InflightRequestCount = MetricSet.NewGauge("dgraphql_inflight_request_count", "inflight request count currently active")

InflightRequestCount records active count of request (either an active Query, Mutation or Subscription)

View Source
var InflightSubscriptionCount = MetricSet.NewGaugeVec("dgraphql_inflight_subscription_count", perGraphqlLabels, "inflight subscription count currently active, per GraphQL type")

InflightSubscriptionCount records active count of subscription, per GraphQL type (top-level subscription element)

View Source
var MetricSet = dmetrics.NewSet()

MetricSet contains all recorded metrics for this package

View Source
var MutationResponseTimes = MetricSet.NewHistogramVec("dgraphql_mutation_response_times", perGraphqlLabels, "mutation response times histogram for percentile sampling, per GraphQL type")

MutationResponseTimes records histogram of "mutation" time taken to answer

View Source
var QueryResponseTimes = MetricSet.NewHistogramVec("dgraphql_query_response_times", perGraphqlLabels, "query response times histogram for percentile sampling, per GraphQL type")

QueryResponseTimes records histogram of "query" time taken to answer

View Source
var TotalMutationCount = MetricSet.NewCounterVec("dgraphql_total_mutation_count", perGraphqlLabels, "total count of mutation started since startup time, per GraphQL type")

TotalMutationCount records total count of mutation performed so far, per GraphQL type

View Source
var TotalQueryCount = MetricSet.NewCounterVec("dgraphql_total_query_count", perGraphqlLabels, "total count of query started since startup time, per GraphQL type")

TotalQueryCount records total count of query performed so far, per GraphQL type

View Source
var TotalRequestCount = MetricSet.NewCounter("dgraphql_total_request_count", "total count of request served since startup time")

TotalRequestCount records total count of request (either a Query, Mutation or Subscription)

View Source
var TotalSubscriptionCount = MetricSet.NewCounterVec("dgraphql_total_subscription_count", perGraphqlLabels, "total count of subscription started since startup time, per GraphQL type")

TotalSubscriptionCount records total count of query performed so far, per GraphQL type (top-level subscription element)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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