5#include <prometheus/registry.h>
52 TelnetStats(
const std::shared_ptr<prometheus::Registry> ®, uint16_t portNumber,
53 const std::string &prependName =
"");
void consumeStats(const TelnetSessionStats &stat, bool sessionClosed)
prometheus::Counter * _totalDownloadBytes
Total downloaded bytes.
prometheus::Family< prometheus::Info > * _infoFamily
Information metric family.
prometheus::Counter * _totalConnection
Number of total received connections.
prometheus::Counter * _refusedConnection
Number of refused connections.
prometheus::Gauge * _maxSessionDuration
Maximum duration of sessions.
prometheus::Gauge * _activeConnection
Number of active connections.
prometheus::Counter * _totalUploadBytes
Total uploaded bytes.
prometheus::Gauge * _minSessionDuration
Minimum duration of sessions.
prometheus::Summary * _sessionDuration
Value of the duration of sessions.
TelnetStats(const std::shared_ptr< prometheus::Registry > ®, uint16_t portNumber, const std::string &prependName="")
std::chrono::high_resolution_clock::time_point processingTimeStart
Processing time start.
uint64_t activeConnectionCtr
Number of active connections.
std::chrono::high_resolution_clock::time_point processingTimeEnd
Processing time end.
uint64_t refusedConnectionCtr
Number of refused connections.
uint64_t acceptedConnectionCtr
Number of accepted connections.
std::chrono::high_resolution_clock::time_point disconnectTime
Connection end time.
uint64_t failCmdCtr
Failed commands.
uint64_t successCmdCtr
Successful commands.
size_t downloadBytes
Downloaded bytes.
std::chrono::high_resolution_clock::time_point connectTime
Connection start time.
size_t uploadBytes
Uploaded bytes.