package
0.0.0-20220824021342-5961e9c4d224
Repository: https://github.com/xiaodingding/iotfast.git
Documentation: pkg.go.dev

# README

Prometheus

Prometheus implements the prometheus exporter for gmqtt.
Default URL: 127.0.0.1:8082/metrics

Metrics

metric nameTypeLabels
gmqtt_clients_connected_totalCounter
gmqtt_messages_dropped_totalCounterqos: qos of the dropped message
gmqtt_packets_received_bytes_totalCountertype: type of the packet
gmqtt_packets_received_totalCountertype: type of the packet
gmqtt_packets_sent_bytes_totalCountertype: type of the packet
gmqtt_packets_sent_totalCountertype: type of the packet
gmqtt_sessions_created_totalCounter
gmqtt_sessions_terminated_totalCounterreason: the reason of termination. (expired
gmqtt_sessions_active_currentGauge
gmqtt_sessions_expired_totalCounter
gmqtt_sessions_inactive_currentGauge
gmqtt_subscriptions_currentGauge
gmqtt_subscriptions_totalCounter
gmqtt_messages_queued_currentGauge
gmqtt_messages_received_totalCounterqos: qos of the message
gmqtt_messages_sent_totalCounterqos: qos of the message

# Functions

No description provided by the author

# Constants

No description provided by the author

# Variables

DefaultConfig is the default configuration.

# Structs

Config is the configuration for the prometheus plugin.
Prometheus served as a prometheus exporter that exposes gmqtt metrics.