Simple prometheus exporter for Wazuh server
Name | Description |
---|---|
WAZUH_API_HOST | Wazuh API host e.g 127.0.0.1 or wazuh |
WAZUH_API_PORT | Wazuh API port e.g 55000 |
WAZUH_API_USERNAME | Wazuh API user for authorization |
WAZUH_API_PASSWORD | Wazuh API user password for authorization |
EXPORTER_PORT | Exporter listen port, default 5000 |
EXPORTER_LOG_LEVEL | Exporter log level, default INFO, for debug use DEBUG |
SKIP_LAST_LOGS | If set skip metrics last_logs_info |
SKIP_LAST_REGISTERED_AGENT | If set skip metrics last_registered_agent_info |
SKIP_WAZUH_API_INFO | if set skip metrics wazuh_api_info |
The solution can be run as docker container or inside Kubernetes
Building docker container
docker build . -t wazuh-exporter:latest
or You can pull the existing image from DockerHub
docker pull kennyopennix/wazuh-exporter:latest
Example of Kubernetes deployment
cd deployment
Change variables WAZUH_API_HOST/WAZUH_API_PORT/WAZUH_API_USERNAME/WAZUH_API_PASSWORD
And run kubectl command for example for wazuh namespace
kubectl apply -f deployment.yaml -n wazuh