Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cirocosta/dmesg_exporter
A "dmesg" prometheus exporter - metrics from the kernel messages ring buffer
https://github.com/cirocosta/dmesg_exporter
dmesg golang linux metrics monitoring prometheus
Last synced: 19 days ago
JSON representation
A "dmesg" prometheus exporter - metrics from the kernel messages ring buffer
- Host: GitHub
- URL: https://github.com/cirocosta/dmesg_exporter
- Owner: cirocosta
- License: mit
- Created: 2018-09-20T22:58:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T09:06:52.000Z (almost 4 years ago)
- Last Synced: 2024-10-10T12:14:17.689Z (about 1 month ago)
- Topics: dmesg, golang, linux, metrics, monitoring, prometheus
- Language: Go
- Homepage: https://ops.tips
- Size: 43 KB
- Stars: 54
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dmesg_exporter
> A [Prometheus](https://prometheus.io) exporter that collects metrics from the [kernel messages ring buffer](https://www.kernel.org/doc/Documentation/ABI/testing/dev-kmsg).
[![](https://hush-house.pivotal.io/api/v1/teams/main/pipelines/dmesg_exporter/badge)](https://hush-house.pivotal.io/teams/main/pipelines/dmesg_exporter)
## 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
```sh
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](./LICENSE)