Documentation
¶
Overview ¶
Package pgmetrics provides Prometheus metrics for cgroup resource usage under the opensvc.slice hierarchy.
It exposes cgroup metrics (CPU, memory, etc.) for all cgroups created by the pg_* object keywords.
Index ¶
Constants ¶
View Source
const (
// CgroupRoot is the root path for opensvc cgroups
CgroupRoot = "/sys/fs/cgroup/opensvc.slice"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the collection and reporting of cgroup metrics
func New ¶
func New(subQS pubsub.QueueSizer) *Manager
New creates a new pgmetrics manager with the specified queue size
Click to show internal directories.
Click to hide internal directories.