Documentation
¶
Overview ¶
Package metrics registers all Prometheus collectors for Open Streamer. Naming convention: open_streamer_<module>_<metric>_<unit>
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// ── Ingestor ─────────────────────────────────────────────────────────────
// IngestorBytesTotal counts raw bytes received from each input source.
IngestorBytesTotal *prometheus.CounterVec
// IngestorPacketsTotal counts MPEG-TS packets written to the buffer.
IngestorPacketsTotal *prometheus.CounterVec
// IngestorErrorsTotal counts transient read/reconnect errors per stream.
IngestorErrorsTotal *prometheus.CounterVec
// ── Stream Manager ────────────────────────────────────────────────────────
// ManagerFailoversTotal counts input source switches (primary → backup).
ManagerFailoversTotal *prometheus.CounterVec
// ManagerInputHealth is 1 when an input is delivering packets, 0 when degraded.
ManagerInputHealth *prometheus.GaugeVec
// ── Transcoder ────────────────────────────────────────────────────────────
// TranscoderWorkersActive is the number of active FFmpeg processes per stream.
TranscoderWorkersActive *prometheus.GaugeVec
// TranscoderRestartsTotal counts FFmpeg crash-restarts per stream.
TranscoderRestartsTotal *prometheus.CounterVec
// TranscoderQualitiesActive is the number of active ABR renditions per stream.
TranscoderQualitiesActive *prometheus.GaugeVec
// ── Buffer ────────────────────────────────────────────────────────────────
// BufferPackets is the current occupancy (packets) of the ring buffer.
BufferPackets *prometheus.GaugeVec
// ── Publisher ─────────────────────────────────────────────────────────────
// PublisherClientsActive is the number of active viewer connections.
PublisherClientsActive *prometheus.GaugeVec
// PublisherSegmentsTotal counts HLS/DASH segments packaged per stream.
PublisherSegmentsTotal *prometheus.CounterVec
// ── DVR ───────────────────────────────────────────────────────────────────
// DVRSegmentsWrittenTotal counts TS segments flushed to disk per stream.
DVRSegmentsWrittenTotal *prometheus.CounterVec
// DVRBytesWrittenTotal counts bytes written to disk per stream.
DVRBytesWrittenTotal *prometheus.CounterVec
// ── Stream lifecycle ──────────────────────────────────────────────────────
// StreamStartTimeSeconds is the Unix timestamp when a stream pipeline was
// last started. 0 / absent means the stream is not currently running.
// Uptime in Grafana: time() - open_streamer_stream_start_time_seconds
StreamStartTimeSeconds *prometheus.GaugeVec
// ── Hooks ─────────────────────────────────────────────────────────────────
// HooksDeliveryFailedTotal counts hook deliveries that exhausted all retries.
HooksDeliveryFailedTotal *prometheus.CounterVec
}
Metrics holds all registered Prometheus collectors.
Click to show internal directories.
Click to hide internal directories.