Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloudalchemy/ansible-blackbox-exporter
Blackbox prober exporter
https://github.com/cloudalchemy/ansible-blackbox-exporter
ansible blackbox-exporter molecule monitoring prometheus prometheus-exporter tox
Last synced: about 2 months ago
JSON representation
Blackbox prober exporter
- Host: GitHub
- URL: https://github.com/cloudalchemy/ansible-blackbox-exporter
- Owner: cloudalchemy
- License: mit
- Archived: true
- Created: 2017-11-27T16:53:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T14:22:34.000Z (over 1 year ago)
- Last Synced: 2024-09-22T13:32:42.051Z (about 2 months ago)
- Topics: ansible, blackbox-exporter, molecule, monitoring, prometheus, prometheus-exporter, tox
- Language: Python
- Size: 159 KB
- Stars: 59
- Watchers: 7
- Forks: 50
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# DEPRECATED
**This role has been deprecated in favor of a the [prometheus-community/ansible](https://github.com/prometheus-community/ansible) collection.**
# Ansible Role: Blackbox Exporter
[![Build Status](https://travis-ci.org/cloudalchemy/ansible-blackbox-exporter.svg?branch=master)](https://travis-ci.org/cloudalchemy/ansible-blackbox-exporter)
[![License](https://img.shields.io/badge/license-MIT%20License-brightgreen.svg)](https://opensource.org/licenses/MIT)
[![Ansible Role](https://img.shields.io/badge/ansible%20role-cloudalchemy.blackbox_exporter-blue.svg)](https://galaxy.ansible.com/cloudalchemy/blackbox-exporter/)
[![GitHub tag](https://img.shields.io/github/tag/cloudalchemy/ansible-blackbox-exporter.svg)](https://github.com/cloudalchemy/ansible-blackbox-exporter/tags)## Description
Deploy and manage [blackbox exporter](https://github.com/prometheus/blackbox_exporter) which allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP.
## Requirements
- Ansible >= 2.7 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)## Role Variables
All variables which can be overridden are stored in [defaults/main.yml](defaults/main.yml) file as well as in table below.
| Name | Default Value | Description |
| -------------- | ------------- | -----------------------------------|
| `blackbox_exporter_version` | 0.18.0 | Blackbox exporter package version |
| `blackbox_exporter_web_listen_address` | 0.0.0.0:9115 | Address on which blackbox exporter will be listening |
| `blackbox_exporter_cli_flags` | {} | Additional configuration flags passed to blackbox exporter binary at startup |
| `blackbox_exporter_configuration_modules` | http_2xx: { prober: http, timeout: 5s, http: '' } | |## Example
### Playbook
```yaml
- hosts: all
become: true
roles:
- cloudalchemy.blackbox-exporter
```### Demo site
We provide demo site for full monitoring solution based on prometheus and grafana. Repository with code and links to running instances is [available on github](https://github.com/cloudalchemy/demo-site) and site is hosted on [DigitalOcean](https://digitalocean.com).
## Local Testing
The preferred way of locally testing the role is to use Docker and [molecule](https://github.com/ansible-community/molecule) (v3.x). You will have to install Docker on your system. See "Get started" for a Docker package suitable to for your system. Running your tests is as simple as executing `molecule test`.
## Continuous Intergation
Combining molecule and circle CI allows us to test how new PRs will behave when used with multiple ansible versions and multiple operating systems. This also allows use to create test scenarios for different role configurations. As a result we have a quite large test matrix which can take more time than local testing, so please be patient.
## Contributing
See [contributor guideline](CONTRIBUTING.md).
## Troubleshooting
See [troubleshooting](TROUBLESHOOTING.md).
## License
This project is licensed under MIT License. See [LICENSE](/LICENSE) for more details.