check_mount_exporter

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

check_mount Prometheus exporter

Build Status GitHub release GitHub All Releases codecov

Check mount Prometheus exporter

The check_mount_exporter produces metrics about mount points mount status and if that mountpoint is read-only or read-write.

This exporter by default listens on port 9304 and all metrics are exposed via the /metrics endpoint.

Example of metrics exposed by this exporter:

check_mount_status{mountpoint="/",rw="rw"} 1
check_mount_status{mountpoint="/boot",rw="rw"} 1
check_mount_status{mountpoint="/opt",rw="rw"} 1
check_mount_status{mountpoint="/tmp",rw="rw"} 1
check_mount_status{mountpoint="/var",rw="rw"} 1

Usage

If the exporter is launched without --config.mountpoints then /etc/fstab will be parsed to identify which mountpoints to produce metrics for.

When parsing /etc/fstab you can exclude mountpoints using the --config.exclude.mountpoints and --config.exclude.fs-types flags.

The value for --config.mountpoints is comma separated while the exclude flags expect regular expressions.

Docker

Example of running the Docker container

docker run -d -p 9304:9304 -v "/:/host:ro,rslave" treydock/check_mount_exporter --path.rootfs=/host

Install

Download the latest release

Build from source

To produce the check_mount_exporter binary:

make build

Or

go get github.com/treydock/check_mount_exporter

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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