zabbix-helpers/es-monitoring/README.md

29 lines
1.0 KiB
Markdown
Raw Normal View History

2021-04-06 20:25:03 +03:00
# Es Monitoring
Мониторинг индексов Elasticsearch
# использование
export ELASTICSEARCH_URL="https://__USER__:__PASSWORD__@elastic:200"
export ZABBIX_SERVER=https://zabbix2
export ZABBIX_HOST=elastic
export ZABBIX_USERNAME=zabbix_helpers
export ZABBIX_PASSWORD=
```
Usage of ./es-monitor:
-indexname string
Elasticsearch index name pattern, (like "filebeat")
-operation string
Opertation type, must be:
es-cluster-info - ES Cluster information (version e.t.c)
es-get-indices - geting all index
es-indices-discover - getting es index pattern list
es-records-count - getting the number of records for a time range for all index pattern
es-index-records-count - getting records count for one index (used with -indexname option (default "es-cluster-info")
-timerange int
Elasticsearch time range for records count into hours (default 6)
-zabbix-send
Send metrics or discovery data into zabbix
```