Elastic Beat fetching events & status from Icinga 2
Go to file
Blerim Sheqa 22beed33e8 Update dashboards 2017-12-27 10:05:59 +01:00
.github Add GitHub issue template 2017-06-13 20:34:10 +02:00
_meta Update dashboards 2017-12-27 10:05:59 +01:00
beater Add option to allow custom CAs 2017-12-20 16:35:22 +01:00
cmd Format code to suite goimports style 2017-12-20 09:27:16 +01: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 dashboards 2017-12-27 10:05:59 +01: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/elastic/beats Update to libbeat 6.1 2017-12-19 13:16:39 +01: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 Run Travis-CI tests with go v1.9 2017-12-20 08:16:57 +01:00
AUTHORS Update AUTHORS 2017-12-18 13:29:28 +01:00
CHANGELOG.md Release version 5.6.6 2017-12-18 13:57:45 +01:00
CONTRIBUTING.md Update CONTRIBUTING.md 2017-03-15 11:39:01 +01:00
LICENSE Initial commit 2016-12-02 10:41:29 +01:00
Makefile Release version 1.1.0 2017-04-18 16:10:13 +02:00
README.md Update documentation 2017-12-22 13:11:42 +01:00
RELEASE.md Add RELEASE.md 2017-04-28 15:07:15 +02:00
dashboards.yml Add dashboards compatible with Kibana 6 2017-12-19 16:31:08 +01:00
fields.yml Update dashboards 2017-12-27 10:05:59 +01:00
icingabeat.full.yml Update generated files 2017-12-18 13:28:08 +01:00
icingabeat.reference.yml Add option to allow custom CAs 2017-12-20 16:35:22 +01:00
icingabeat.yml Add option to allow custom CAs 2017-12-20 16:35:22 +01:00
main.go Move beater interface to cmd package 2017-12-19 13:19:52 +01:00
main_test.go Add initial files genereated by cookiecutter 2016-12-02 11:51:44 +01:00
version.yml Release version 5.6.6 2017-12-18 13:57:45 +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 testsuite

alternatively:

make unit-tests
make system-tests
make integration-tests
make coverage-report

The test coverage is reported in the folder ./build/coverage/

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