Simple database for keeping some events from various sources. Dedicated to use as source for Grafana (json) and webhook for Prometheus Alert Manager.
- github.com/prometheus/client_golang/
- github.com/prometheus/common
- github.com/boltdb/bolt
- github.com/boltdb/boltd
- gopkg.in/yaml.v2
For development:
go build
./eventdb
-config.file string
Path to configuration file. (defaulteventdb.yml
)-log.format value
Set the log target and format. Example:logger:syslog?appname=bob&local=7
orlogger:stdout?json=true
(defaultlogger:stderr
)-log.level value
Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal] (defaultinfo
)-version
Print version information.-web.listen-address string
Address to listen on for web interface and telemetry. (default:9701
)
Copyright (c) 2017, Karol Będkowski.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.