svk 0b5b1c59f1 | ||
---|---|---|
.. | ||
zabbix_templates | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
cronjobs | ||
docker-compose.yml | ||
es-monitoring.go | ||
go.mod | ||
go.sum |
README.md
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