logind

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: GPL-3.0 Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

systemd-logind collector

Overview

systemd-logind is a system service that manages user logins.

This collector monitors number of sessions and users as reported by the org.freedesktop.login1 DBus API.

Collected metrics

Metrics grouped by scope.

The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.

global

These metrics refer to the entire monitored application.

This scope has no labels.

Metrics:

Metric Dimensions Unit
logind.sessions remote, local sessions
logind.sessions_type console, graphical, other sessions
logind.sessions_state online, closing, active sessions
logind.users_state offline, closing, online, lingering, active users

Setup

Prerequisites

No action required.

Configuration

No configuration required.

Troubleshooting

Debug mode

To troubleshoot issues with the logind collector, run the go.d.plugin with the debug option enabled. The output should give you clues as to why the collector isn't working.

  • Navigate to the plugins.d directory, usually at /usr/libexec/netdata/plugins.d/. If that's not the case on your system, open netdata.conf and look for the plugins setting under [directories].

    cd /usr/libexec/netdata/plugins.d/
    
  • Switch to the netdata user.

    sudo -u netdata -s
    
  • Run the go.d.plugin to debug the collector:

    ./go.d.plugin -d -m logind
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Timeout web.Duration `yaml:"timeout"`
}

type Logind

type Logind struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

func New

func New() *Logind

func (*Logind) Charts

func (l *Logind) Charts() *module.Charts

func (*Logind) Check

func (l *Logind) Check() bool

func (*Logind) Cleanup

func (l *Logind) Cleanup()

func (*Logind) Collect

func (l *Logind) Collect() map[string]int64

func (*Logind) Init

func (l *Logind) Init() bool

Jump to

Keyboard shortcuts

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