Expand description
Metrics module for the application.
- This module contains the global Prometheus registry.
- Defines specific metrics for the application.
Modules§
- middleware
- This defines the Middleware to collect metrics for the application. This middleware will increment the request counter for each request for each endpoint.
Structs§
- API_
RPC_ FAILURES - AVAILABLE_
MEMORY - CLOSE_
WAIT_ SOCKETS - CPU_
USAGE - DISK_
USAGE - DISK_
USAGE_ PERCENT - ERROR_
COUNTER - FILE_
DESCRIPTORS - IN_
FLIGHT_ REQUESTS - MEMORY_
USAGE - MEMORY_
USAGE_ PERCENT - PLUGIN_
CALLS - RAW_
REQUEST_ COUNTER - REGISTRY
- REQUEST_
COUNTER - REQUEST_
LATENCY - RPC_
CALL_ LATENCY - TIMEOUT_
COUNTER - TOTAL_
MEMORY - TRANSACTIONS_
BY_ STATUS - TRANSACTIONS_
CREATED - TRANSACTIONS_
FAILED - TRANSACTIONS_
SUBMITTED - TRANSACTIONS_
SUCCESS - TRANSACTION_
PROCESSING_ TIME
Functions§
- gather_
metrics - Gather all metrics and encode into the provided format.
- update_
system_ metrics - Updates the system metrics for CPU and memory usage.