graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Server.Metrics

Synopsis

Documentation

data ServerMetricsSpec :: Symbol -> MetricType -> Type -> Type where Source #

A specification of the metrics tracked by the server.

The use of the "unit" type () for the "tag structure" type parameter of a metric indicates that we prohibit that metric from being annotated with tags.

Constructors

WarpThreads :: ServerMetricsSpec "warp_threads" 'GaugeType ()

Current Number of active Warp threads

WebsocketConnections :: ServerMetricsSpec "websocket_connections" 'GaugeType ()

Current number of active websocket connections

ActiveSubscriptions :: ServerMetricsSpec "active_subscriptions" 'GaugeType ()

Current number of active subscriptions

NumEventsFetchedPerBatch :: ServerMetricsSpec "events_fetched_per_batch" 'DistributionType ()

Total Number of events fetched from last 'Event Trigger Fetch'

NumEventHTTPWorkers :: ServerMetricsSpec "num_event_trigger_http_workers" 'GaugeType ()

Current number of Event trigger's HTTP workers in process

EventQueueTime :: ServerMetricsSpec "event_queue_time" 'DistributionType ()

Time (in seconds) between the 'Event Trigger Fetch' from DB and the processing of the event

SchemaCacheMetadataResourceVersion :: ServerMetricsSpec "schema_cache_metadata_resource_version" 'GaugeType ()

The current schema cache metadata resource version

ActiveLiveQueries :: ServerMetricsSpec "active_livequeries" 'GaugeType ()

Current number of subscribers connected to live queries

ActiveStreaming :: ServerMetricsSpec "active_streaming_subscriptions" 'GaugeType ()

Current number of subscribers connected to streaming subscriptions

EventFetchTimePerBatch :: ServerMetricsSpec "events_fetch_time_per_batch" 'DistributionType ()

Latency of fetching a batch of events

EventWebhookProcessingTime :: ServerMetricsSpec "event_webhook_processing_time" 'DistributionType ()

The time (in seconds) between when a event is picked for delivery to the time its status is updated in the DB

EventProcessingTime :: ServerMetricsSpec "event_processing_time" 'DistributionType ()

The time taken for an event to be delivered since it's been created (if first attempt) or retried (after first attempt)