https://github.com/jbox-web/syslog_ng_exporter
https://github.com/jbox-web/syslog_ng_exporter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jbox-web/syslog_ng_exporter
- Owner: jbox-web
- License: mit
- Created: 2024-04-26T00:03:26.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-26T00:15:31.000Z (about 1 year ago)
- Last Synced: 2024-04-26T01:26:28.293Z (about 1 year ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/).