Documentation ¶
Index ¶
- Constants
- func GetCounter(name metrics.MetricName, labels metrics.Labels) metrics.Counter
- func GetGauge(name metrics.MetricName, labels metrics.Labels) metrics.Gauge
- func GetObserver(name metrics.MetricName, labels metrics.Labels) metrics.Observer
- func Init(m metrics.Metrics)
- func IsEnabled() bool
- func NewMetrics() metrics.Metrics
- func Noop() metrics.Metrics
Constants ¶
View Source
const ( // Number of services. Labels: host. MetricServicesGauge metrics.MetricName = "gost_services" // Total service requests. Labels: host, service. MetricServiceRequestsCounter metrics.MetricName = "gost_service_requests_total" // Number of in-flight requests. Labels: host, service. MetricServiceRequestsInFlightGauge metrics.MetricName = "gost_service_requests_in_flight" // Request duration historgram. Labels: host, service. MetricServiceRequestsDurationObserver metrics.MetricName = "gost_service_request_duration_seconds" // Total service input data transfer size in bytes. Labels: host, service. MetricServiceTransferInputBytesCounter metrics.MetricName = "gost_service_transfer_input_bytes_total" // Total service output data transfer size in bytes. Labels: host, service. MetricServiceTransferOutputBytesCounter metrics.MetricName = "gost_service_transfer_output_bytes_total" // Chain node connect duration histogram. Labels: host, chain, node. MetricNodeConnectDurationObserver metrics.MetricName = "gost_chain_node_connect_duration_seconds" // Total service handler errors. Labels: host, service. MetricServiceHandlerErrorsCounter metrics.MetricName = "gost_service_handler_errors_total" // Total chain connect errors. Labels: host, chain, node. MetricChainErrorsCounter metrics.MetricName = "gost_chain_errors_total" )
Variables ¶
This section is empty.
Functions ¶
func GetCounter ¶
func GetObserver ¶
func NewMetrics ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.