autofix

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoloadModules

func AutoloadModules(ctx context.Context, modules []monitoring.ModuleRequest, progress utils.Progress)

AutoloadModules generates a systemd modules-load.d file for all kernel modules required by gravity. modules-load.d is smart enough to skip builtin modules, so we just add all modules we require to the list, even if they are added or already running for other reasons.

func Fix

func Fix(ctx context.Context, probes []*agentpb.Probe, progress utils.Progress) (fixed, unfixed []*agentpb.Probe)

Fix takes a list of failed probes and attempts to fix some of them

func GetFixable

func GetFixable(probes []*agentpb.Probe) (failed, fixable []*agentpb.Probe)

GetFixable returns a list of failed probes that can be attempted to auto-fix

Types

This section is empty.

Jump to

Keyboard shortcuts

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