An open API service indexing awesome lists of open source software.

https://github.com/jbox-web/syslog_ng_exporter


https://github.com/jbox-web/syslog_ng_exporter

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Syslog-NG Exporter for Prometheus

Exports syslog-ng statistics via HTTP for Prometheus consumption.

## Running

Help on flags:

```
--help Show context-sensitive help (also try --help-long and --help-man).
--version Print version information.
--telemetry.address=":9577" Address on which to expose metrics.
--telemetry.endpoint="/metrics"
Path under which to expose metrics.
--socket.path="/var/lib/syslog-ng/syslog-ng.ctl"
Path to syslog-ng control socket.
--log.level="info" Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]
--log.format="logger:stderr" Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true"
```

Tested with syslog-ng 3.5.6, 3.20.1, and 3.22.1

## Collectors

```
# HELP syslog_ng_destination_messages_dropped_total Number of messages dropped by this destination.
# TYPE syslog_ng_destination_messages_dropped_total counter
# HELP syslog_ng_destination_messages_processed_total Number of messages processed by this destination.
# TYPE syslog_ng_destination_messages_processed_total counter
# HELP syslog_ng_destination_messages_stored_total Number of messages stored by this destination.
# TYPE syslog_ng_destination_messages_stored_total gauge
# HELP syslog_ng_source_messages_processed_total Number of messages processed by this source.
# TYPE syslog_ng_source_messages_processed_total counter
# HELP syslog_ng_up Reads 1 if the syslog-ng server could be reached, else 0.
# TYPE syslog_ng_up gauge
```

## Author

The exporter was originally created by [brandond](https://github.com/brandond), heavily inspired by the [apache_exporter](https://github.com/Lusitaniae/apache_exporter/).