system

package
v0.0.0-...-26052f9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package system implements the system metrics collector, which is based on Linux cgroups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiskDeviceMapping

func GetDiskDeviceMapping(procPath string) (map[string]string, error)

GetDiskDeviceMapping scrapes /proc/diskstats to build a mapping from "major:minor" device numbers to device name. It is cached for 1 minute Format: 7 0 loop0 0 0 0 0 0 0 0 0 0 0 0 7 1 loop1 0 0 0 0 0 0 0 0 0 0 0 8 0 sda 24398 2788 1317975 40488 25201 46267 1584744 142336 0 22352 182660 8 1 sda1 24232 2788 1312025 40376 25201 46267 1584744 142336 0 22320 182552 8 16 sdb 189 0 4063 220 0 0 0 0 0 112 204

Types

This section is empty.

Jump to

Keyboard shortcuts

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