pgmetrics

package
v3.0.0-rc21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

func (*Manager) Start

func (m *Manager) Start(parent context.Context) error

Start starts the manager goroutine

func (*Manager) Stop

func (m *Manager) Stop() error

Stop stops the manager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL