tschoonj.ansible_role_guacamole_exporter
Ansible 角色 guacamole_exporter
ansible-guacamole-exporter
此角色安装并配置 guacamole_exporter,以从 Guacamole 无客户端远程桌面网关收集使用指标,并可供 Prometheus 实例抓取。
要求
- Ansible >= 2.10(较早版本可能有效,但我没有进行测试)
角色变量
用户需要定义以下变量。
名称 | 描述 |
---|---|
guacamole_exporter_endpoint |
Guacamole 实例的地址 |
guacamole_exporter_username |
有足够权限访问 REST API 的用户 |
guacamole_exporter_password |
对应的密码 |
guacamole_exporter_datasource |
在 REST API 调用中使用的数据源。可能与身份验证数据源不同,通常是 SQL 实现 |
所有变量可以在 default/main.yml 中覆盖
名称 | 默认值 | 描述 |
---|---|---|
guacamole_exporter_version |
0.1.1 | 要安装的版本,latest 也可以接受 |
guacamole_exporter_binary_local_dir |
"" | 允许使用控制器机器上的本地包而非 github 包 |
guacamole_exporter_web_listen_address |
"0.0.0.0:9623" | guacamole_exporter 监听地址 |
guacamole_exporter_web_telemetry_path |
"/metrics" | 用于导出指标的路径 |
依赖
无
使用方法
从 Galaxy
ansible-galaxy install tschoonj.ansible_role_guacamole_exporter
Git 子模块
要作为子模块添加到您的项目,而不是从 Galaxy 拉取
git submodule add -b main https://github.com/tschoonj/ansible-role-guacamole-exporter.git roles/guacamole-exporter
获取角色更新
git submodule update --remote
示例剧本
- hosts: all
roles:
- role: tschoonj.ansible_role_guacamole_exporter
vars:
guacamole_endpoint: guacamole.example.com
guacamole_username: admin
guacamole_password: admin
guacamole_datasource: mysql
贡献
- 在 GitHub 上分叉该项目
- 克隆该项目
- 添加更改(和测试)
- 提交并推送
- 创建一个拉取请求
鸣谢
此角色的灵感来源于 ansible-node-exporter 和 ansible-prometheus-msteams。
许可证
关于项目
Role for installing guacamole_exporter, which provides Guacamole usage metrics for Prometheus
安装
ansible-galaxy install tschoonj.ansible_role_guacamole_exporter
许可证
mit
下载
4.5k
拥有者
I'm a software engineer working @genomicsplc, and am passionate about developing quality open source software.