Upgrade Prometheus node exporter to Prometheus collection

Change-Id: I182c6114ee525090d2661bb0d48781e292d66919
This commit is contained in:
Marcus Klein 2023-11-10 12:26:27 +01:00
parent 12e85362a6
commit 7a9df911ba
4 changed files with 14 additions and 7 deletions

View File

@ -25,7 +25,7 @@ Downloading role dependencies
.. code-block:: bash
cd /opt/openstack-ansible-ops/prometheus
ansible-galaxy install -r ansible-role-requirements.yml
ansible-galaxy install -r requirements.yml
Install node_exporter

View File

@ -1,5 +0,0 @@
---
- name: node-exporter
scm: git
src: https://github.com/cloudalchemy/ansible-node-exporter
version: master

View File

@ -12,9 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Refresh local facts
hosts: hosts
tasks:
- name: Refresh local facts
setup:
- name: node_exporter
hosts: hosts
vars_files:
- vars/variables.yml
roles:
- role: node-exporter
- role: prometheus.prometheus.node_exporter

View File

@ -0,0 +1,6 @@
---
collections:
- name: prometheus.prometheus
version: 0.8.0
type: galaxy