This role installs a Prometheus exporter for Solr
This role installs a Prometheus exporter for Solr Standalone or Solr Cloud. If you need to install Apache Solr use this other role idealista/solrcloud-role
Python, Ansible, Molecule and Docker
Create or add to your roles dependency file (e.g requirements.yml):
- src: idealista.prometheus_solr_exporter_role
version: 2.0.0
name: prometheus_solr_exporterInstall the role with ansible-galaxy command:
ansible-galaxy install -p roles -r requirements.yml -f
Use in a playbook:
- hosts: someserver
roles:
- role: prometheus_solr_exporter
Variables explanation:
prometheus_solr_exporter_versionthis is the solr prometheus exporter version to installprometheus_solr_exporter_installation_dirthis is a path location to install the exporterprometheus_solr_exporter_useruser owner of all filesprometheus_solr_exporter_groupgroup owner of all filesprometheus_solr_exporter_temp_dirthe path for a temporary directoryprometheus_solr_exporter_portlistening portprometheus_solr_exporter_solr_mode'standalone' or 'cluster'prometheus_solr_exporter_threadsnumber of threadsprometheus_solr_exporter_config_filethis is the config file path. Use it to override default config fileprometheus_solr_exporter_service_locationthis is a path location to move the service fileprometheus_solr_exporter_service_nameservice nameprometheus_solr_exporter_service_filethe service template file.prometheus_solr_exporter_env_filejava environment template fileprometheus_solr_exporter_env_locationthis is a path location to move the java environment fileprometheus_solr_exporter_xmxjava heap max sizeprometheus_solr_exporter_xmsjava heap initial sizeprometheus_solr_exporter_java_optsjvm extra optionsprometheus_solr_exporter_jmx_enabledjmx enabled or disabled variableprometheus_solr_exporter_jmx_portjmx remote port
Excluding variables:
prometheus_solr_exporter_zookeeper_hostif cluster mode, the zookeeper host. For ex, http://localhost:8983/solrprometheus_solr_exporter_solr_baseurlif standalone mode, the solr url. For ex, localhost:2181/solr
Run pip install requirements-test.yml before running tests
Launch tests:
molecule test
For the versions available, see the tags on this repository.
Additionaly you can see what change in each version in the CHANGELOG.md file.
- Idealista - Work with - idealista
See also the list of contributors who participated in this project.
This project is licensed under the Apache 2.0 license - see the LICENSE file for details.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

