ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
nats_server_sample Struct Referencefinal

A single point-in-time sample of NATS server-level metrics. More...

#include <nats_server_sample.hpp>

Collaboration diagram for nats_server_sample:
Collaboration graph

Public Attributes

std::chrono::system_clock::time_point sampled_at
 When this sample was taken.
 
std::uint64_t in_msgs {0}
 Total inbound messages since server start.
 
std::uint64_t out_msgs {0}
 Total outbound messages since server start.
 
std::uint64_t in_bytes {0}
 Total inbound bytes since server start.
 
std::uint64_t out_bytes {0}
 Total outbound bytes since server start.
 
int connections {0}
 Current number of client connections.
 
std::uint64_t mem_bytes {0}
 Server process resident memory in bytes.
 
int slow_consumers {0}
 Number of slow consumers detected since server start.
 

Detailed Description

A single point-in-time sample of NATS server-level metrics.

Populated by polling the NATS server's HTTP monitoring endpoint at /varz. One row is written to ores_nats_server_samples_tbl per poll.

Member Data Documentation

◆ sampled_at

std::chrono::system_clock::time_point sampled_at

When this sample was taken.

Partitioning key for the TimescaleDB hypertable.

◆ slow_consumers

int slow_consumers {0}

Number of slow consumers detected since server start.

A non-zero value indicates that one or more subscribers are not keeping up with message delivery and messages may be dropped.