logind

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 7 Imported by: 1

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