Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ServerMetricsSpec :: Symbol -> MetricType -> Type -> Type where
- WarpThreads :: ServerMetricsSpec "warp_threads" 'GaugeType ()
- WebsocketConnections :: ServerMetricsSpec "websocket_connections" 'GaugeType ()
- ActiveSubscriptions :: ServerMetricsSpec "active_subscriptions" 'GaugeType ()
- NumEventsFetchedPerBatch :: ServerMetricsSpec "events_fetched_per_batch" 'DistributionType ()
- NumEventHTTPWorkers :: ServerMetricsSpec "num_event_trigger_http_workers" 'GaugeType ()
- EventQueueTime :: ServerMetricsSpec "event_queue_time" 'DistributionType ()
- SchemaCacheMetadataResourceVersion :: ServerMetricsSpec "schema_cache_metadata_resource_version" 'GaugeType ()
- ActiveLiveQueries :: ServerMetricsSpec "active_livequeries" 'GaugeType ()
- ActiveStreaming :: ServerMetricsSpec "active_streaming_subscriptions" 'GaugeType ()
- EventFetchTimePerBatch :: ServerMetricsSpec "events_fetch_time_per_batch" 'DistributionType ()
- EventWebhookProcessingTime :: ServerMetricsSpec "event_webhook_processing_time" 'DistributionType ()
- EventProcessingTime :: ServerMetricsSpec "event_processing_time" 'DistributionType ()
- data ServerMetrics = ServerMetrics {
- smWarpThreads :: Gauge
- smWebsocketConnections :: Gauge
- smActiveSubscriptions :: Gauge
- smNumEventsFetchedPerBatch :: Distribution
- smNumEventHTTPWorkers :: Gauge
- smEventQueueTime :: Distribution
- smSchemaCacheMetadataResourceVersion :: Gauge
- smActiveLiveQueries :: Gauge
- smActiveStreamingSubscriptions :: Gauge
- smEventFetchTimePerBatch :: Distribution
- smEventWebhookProcessingTime :: Distribution
- smEventProcessingTime :: Distribution
- createServerMetrics :: Store ServerMetricsSpec -> IO ServerMetrics
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.
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) |
data ServerMetrics Source #
Mutable references for the server metrics. See ServerMetricsSpec
for a
description of each metric.