Giter Club home page Giter Club logo

syslog_ng_exporter's Introduction

Syslog-NG Exporter for Prometheus

Exports syslog-ng statistics via HTTP for Prometheus consumption.

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

Running

Using Docker

docker run -d -p 9577:9577 -v /var/lib/syslog-ng/syslog-ng.ctl:/syslog-ng.ctl \
  brandond/syslog_ng_exporter --socket.path=/syslog-ng.ctl

Details

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, heavily inspired by the apache_exporter.

syslog_ng_exporter's People

Contributors

brandond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

syslog_ng_exporter's Issues

compile error on FreeBSD-13.0-RELEASE-p3

go install github.com/kardianos/govendor@latest
runs fine
but:

HOST:x: /home/Services/syslog_ng_exporter >gmake build

building binaries
gmake: /bin/govendor: No such file or directory
gmake: *** [Makefile:44: build] Error 127

Kubernetes Deployment

Hi there.

any idea how to create some kind of symlinks on a shared volume to the required socket to be able to link the syslog-ng.ctl socket from the pod running syslog-ng with the pod running the exporter?

Regards
Sergei

errors while scraping syslog-ng

Hi ,

I'm trying to scrape syslog-ng metrics using prometheus exporter through docker. I'm facing this issue :

image

image

Could you help please ?

Thanks

get more metrics from syslog-ng

Hi,

Is there any way to collect more metrics about status of syslog-ng ?
for example memory_usage, queued messages for dst ....

I set stats-level to 3, but doesn't help .
This if the output of my syslong-ng-ctl query get "*" :

image

Metrics collected from exporter

image

Any idea ?

Thank you in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.