dmesg_exporter

command module
v0.0.0-...-6e3e42f Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 3 Imported by: 0

README

dmesg_exporter

A Prometheus exporter that collects metrics from the kernel messages ring buffer.

Usage

  dmesg_exporter [OPTIONS] start [start-OPTIONS]

Help Options:
  -h, --help         Show this help message

[start command options]
          --path=    path to serve metrics (default: /metrics)
          --address= address to listen for prometheus scraping (default: :9000)
      -t, --tail     whether the reader should seek to the end

Sample metrics

dmesg_logs{facility="daemon",priority="info"} 10
dmesg_logs{facility="kern",priority="debug"} 69
dmesg_logs{facility="kern",priority="err"} 4
dmesg_logs{facility="kern",priority="info"} 380
dmesg_logs{facility="kern",priority="notice"} 47
dmesg_logs{facility="kern",priority="warning"} 38
dmesg_logs{facility="syslog",priority="info"} 1
dmesg_logs{facility="user",priority="warning"} 4

Installation

Using Go:

go get github.com/cirocosta/dmesg_exporter

Container image:

docker pull cirocosta/dmesg_exporter

LICENSE

MIT - See ./LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package exporter defines the implementation of dmesg_exporter's prometheus exporter internals, providing means for it to gather metrics from the registered collectors.
Package exporter defines the implementation of dmesg_exporter's prometheus exporter internals, providing means for it to gather metrics from the registered collectors.
Package kmsg provides a minimal interface for dealing with kmsg messages extracted from `/dev/kmesg`.
Package kmsg provides a minimal interface for dealing with kmsg messages extracted from `/dev/kmesg`.

Jump to

Keyboard shortcuts

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