Elastic Beat fetching events & status from Icinga 2
Go to file
Blerim Sheqa 20d5e0fc77 Include generated fields into icingabeat binary 2019-08-16 15:45:50 +02:00
.github Add GitHub issue template 2017-06-13 20:34:10 +02:00
_meta Add dashboards for Kibana 7 2019-08-16 10:59:10 +02:00
beater Cleanup styles according to goimports' style 2019-01-02 15:40:00 +01:00
cmd Cleanup styles according to goimports' style 2019-08-15 14:26:08 +02:00
config Add option to allow custom CAs 2017-12-20 16:35:22 +01:00
data Update documentation 2017-12-22 13:11:42 +01:00
docs Update generated icingabeat files 2019-08-15 14:08:08 +02:00
include Update generated icingabeat files 2019-08-15 14:08:08 +02:00
screenshots Update documentation 2017-12-22 13:11:42 +01:00
tests/system Format code to suite goimports style 2017-12-20 09:27:16 +01:00
vendor/github.com Update to libbeat 7.3.0 2019-08-15 14:07:09 +02:00
.gitignore Update config format 2016-12-30 14:44:23 +01:00
.mailmap Update AUTHORS 2017-01-02 17:24:08 +01:00
.travis.yml Install mage before running tests 2018-12-20 17:05:22 +01:00
AUTHORS Update AUTHORS 2017-12-18 13:29:28 +01:00
CHANGELOG.md Release version 6.5.4 2019-01-03 08:55:52 +01:00
CONTRIBUTING.md Update CONTRIBUTING.md 2017-03-15 11:39:01 +01:00
LICENSE.txt Rename license file 2018-12-21 11:57:37 +01:00
Makefile Update metadata for packages 2019-08-16 09:57:39 +02:00
NOTICE.txt Rename license file 2018-12-21 11:57:37 +01:00
README.md Update README.md 2018-12-20 17:14:00 +01:00
RELEASE.md Update RELEASE.md 2019-01-03 08:55:12 +01:00
dashboards.yml Add dashboards compatible with Kibana 6 2017-12-19 16:31:08 +01:00
fields.yml Update generated icingabeat files 2019-08-15 14:08:08 +02:00
icingabeat.docker.yml Update generated icingabeat files 2019-08-15 14:08:08 +02:00
icingabeat.reference.yml Update generated icingabeat files 2019-08-15 14:08:08 +02:00
icingabeat.yml Update generated icingabeat files 2019-08-15 14:08:08 +02:00
magefile.go Update metadata for packages 2019-08-16 09:57:39 +02:00
main.go Include generated fields into icingabeat binary 2019-08-16 15:45:50 +02:00
main_test.go Add initial files genereated by cookiecutter 2016-12-02 11:51:44 +01:00

README.md

Build Status

Icingabeat

The Beats are lightweight data shippers, written in Go, that you install on your servers to capture all sorts of operational data (think of logs, metrics, or network packet data). The Beats send the operational data to Elasticsearch, either directly or via Logstash, so it can be visualized with Kibana.

Icingabeat is an Elastic Beat that fetches data from the Icinga 2 API and sends it either directly to Elasticsearch or Logstash.

icingabeat-checkresult-dashboard

Documentation

Please read the documentation on icinga.com/docs/icingabeat/latest for more information

Development

Building and running manually

Requirements

Clone

To clone Icingabeat from the git repository, run the following commands:

mkdir -p ${GOPATH}/github.com/icinga
cd ${GOPATH}/github.com/icinga
git clone https://github.com/icinga/icingabeat

For further development check out the beat developer guide.

Build

Ensure that this folder is at the following location: ${GOPATH}/github.com/icinga

To build the binary for Icingabeat run the command below. This will generate a binary in the same directory with the name icingabeat.

make

Run

To run Icingabeat with debugging output enabled, run:

./icingabeat -c icingabeat.yml -e -d "*"

Test

To test Icingabeat, run the following command:

make ci

Update

Each beat has a template for the mapping in elasticsearch and a documentation for the fields which is automatically generated based on etc/fields.yml. To generate etc/icingabeat.template.json and etc/icingabeat.asciidoc

make update

Cleanup

To clean Icingabeat source code, run the following commands:

make fmt
make simplify

To clean up the build directory and generated artifacts, run:

make clean

Packaging

The beat frameworks provides tools to crosscompile and package your beat for different platforms. This requires docker and vendoring as described above. To build packages of your beat, run the following command:

make package

This will fetch and create all images required for the build process. The whole process can take several minutes to finish.

To disable snapshot packages or build specific packages, set the following environment variables:

export SNAPSHOT=false
export TARGETS="\"linux/amd64 linux/386\""
export PACKAGES=icingabeat/deb
make package

Dashboards

To be able to export dashboards with all their dependencies (visualizations and searches) you have to name the dashboard with a icingabeat- prefix.

Export dashboards:

export ES_URL=http://127.0.0.1:9200
make export-dashboards

After exporting, dashboards can be packaged:

export SNAPSHOT=false
make package-dashboards