mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 20:03:04 +00:00
docs: Remove references to to previous named ansible collection cloudalchemy
The repository is a migration from https://github.com/cloudalchemy/ansible-node-exporter. The previous repository has been marked as archived already. Signed-off-by: Andy Grunwald <andygrunwald@gmail.com>
This commit is contained in:
parent
3b83b02c33
commit
7bc4f474e3
8 changed files with 19 additions and 24 deletions
|
@ -55,7 +55,7 @@ alertmanager_cluster:
|
||||||
# listen-address: "{{ ansible_default_ipv4.address }}:6783"
|
# listen-address: "{{ ansible_default_ipv4.address }}:6783"
|
||||||
# peers:
|
# peers:
|
||||||
# - "{{ ansible_default_ipv4.address }}:6783"
|
# - "{{ ansible_default_ipv4.address }}:6783"
|
||||||
# - "demo.cloudalchemy.org:6783"
|
# - "alertmanager.demo.do.prometheus.io:6783"
|
||||||
|
|
||||||
alertmanager_receivers: []
|
alertmanager_receivers: []
|
||||||
# alertmanager_receivers:
|
# alertmanager_receivers:
|
||||||
|
|
|
@ -32,4 +32,4 @@
|
||||||
listen-address: "127.0.0.1:6783"
|
listen-address: "127.0.0.1:6783"
|
||||||
peers:
|
peers:
|
||||||
- "127.0.0.1:6783"
|
- "127.0.0.1:6783"
|
||||||
- "demo.cloudalchemy.org:6783"
|
- "alertmanager.demo.do.prometheus.io:6783"
|
||||||
|
|
|
@ -31,7 +31,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
|
||||||
- hosts: all
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- cloudalchemy.blackbox-exporter
|
- prometheus.prometheus.blackbox-exporter
|
||||||
```
|
```
|
||||||
|
|
||||||
### Demo site
|
### Demo site
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
# Ansible Role: node exporter
|
# Ansible Role: node exporter
|
||||||
|
|
||||||
## Warning
|
|
||||||
|
|
||||||
Due to limitations of galaxy.ansible.com we had to move the role to https://galaxy.ansible.com/cloudalchemy/node_exporter and use `_` instead of `-` in role name. This is a breaking change and unfortunately, it affects all versions of node_exporter role as ansible galaxy doesn't offer any form of redirection. We are sorry for the inconvenience.
|
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
Deploy prometheus [node exporter](https://github.com/prometheus/node_exporter) using ansible.
|
Deploy prometheus [node exporter](https://github.com/prometheus/node_exporter) using ansible.
|
||||||
|
@ -43,7 +39,7 @@ Use it in a playbook as follows:
|
||||||
```yaml
|
```yaml
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- cloudalchemy.node_exporter
|
- prometheus.prometheus.node_exporter
|
||||||
```
|
```
|
||||||
|
|
||||||
### TLS config
|
### TLS config
|
||||||
|
@ -66,7 +62,7 @@ Before running node_exporter role, the user needs to provision their own certifi
|
||||||
privatekey_path: /etc/node_exporter/tls.key
|
privatekey_path: /etc/node_exporter/tls.key
|
||||||
provider: selfsigned
|
provider: selfsigned
|
||||||
roles:
|
roles:
|
||||||
- cloudalchemy.node_exporter
|
- prometheus.prometheus.node_exporter
|
||||||
vars:
|
vars:
|
||||||
node_exporter_tls_server_config:
|
node_exporter_tls_server_config:
|
||||||
cert_file: /etc/node_exporter/tls.cert
|
cert_file: /etc/node_exporter/tls.cert
|
||||||
|
|
|
@ -98,13 +98,13 @@ prometheus_scrape_configs:
|
||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- cloudalchemy.prometheus
|
- prometheus.prometheus.prometheus
|
||||||
vars:
|
vars:
|
||||||
prometheus_targets:
|
prometheus_targets:
|
||||||
node:
|
node:
|
||||||
- targets:
|
- targets:
|
||||||
- localhost:9100
|
- localhost:9100
|
||||||
- demo.cloudalchemy.org:9100
|
- node.demo.do.prometheus.io
|
||||||
labels:
|
labels:
|
||||||
env: demosite
|
env: demosite
|
||||||
```
|
```
|
||||||
|
|
|
@ -58,7 +58,7 @@ prometheus_remote_write: []
|
||||||
|
|
||||||
prometheus_remote_read: []
|
prometheus_remote_read: []
|
||||||
# prometheus_remote_read:
|
# prometheus_remote_read:
|
||||||
# - url: https://demo.cloudalchemy.org:9201/read
|
# - url: https://prometheus.demo.do.prometheus.io:9201/read
|
||||||
# basic_auth:
|
# basic_auth:
|
||||||
# password: FOO
|
# password: FOO
|
||||||
|
|
||||||
|
|
|
@ -96,8 +96,7 @@ argument_specs:
|
||||||
environment: "{{ ansible_fqdn | default(ansible_host) | default(inventory_hostname) }}"
|
environment: "{{ ansible_fqdn | default(ansible_host) | default(inventory_hostname) }}"
|
||||||
prometheus_targets:
|
prometheus_targets:
|
||||||
description:
|
description:
|
||||||
- "Targets which will be scraped. Better example is provided in our
|
- "Targets which will be scraped."
|
||||||
L(demo site,https://github.com/cloudalchemy/demo-site/blob/2a8a56fc10ce613d8b08dc8623230dace6704f9a/group_vars/all/vars#L8)"
|
|
||||||
type: "dict"
|
type: "dict"
|
||||||
elements: "str"
|
elements: "str"
|
||||||
prometheus_scrape_configs:
|
prometheus_scrape_configs:
|
||||||
|
|
|
@ -37,27 +37,27 @@
|
||||||
scrape_timeout: 2s
|
scrape_timeout: 2s
|
||||||
evaluation_interval: 10s
|
evaluation_interval: 10s
|
||||||
prometheus_remote_write:
|
prometheus_remote_write:
|
||||||
- url: http://influx.cloudalchemy.org:8086/api/v1/prom/write?db=test
|
- url: http://influx.example.org:8086/api/v1/prom/write?db=test
|
||||||
basic_auth:
|
basic_auth:
|
||||||
username: prometheus
|
username: prometheus
|
||||||
password: SuperSecret
|
password: SuperSecret
|
||||||
prometheus_remote_read:
|
prometheus_remote_read:
|
||||||
- url: http://influx.cloudalchemy.org:8086/api/v1/prom/read?db=cloudalchemy
|
- url: http://influx.example.org:8086/api/v1/prom/read?db=demo
|
||||||
prometheus_external_labels:
|
prometheus_external_labels:
|
||||||
environment: "alternative"
|
environment: "alternative"
|
||||||
prometheus_targets:
|
prometheus_targets:
|
||||||
node:
|
node:
|
||||||
- targets:
|
- targets:
|
||||||
- demo.cloudalchemy.org:9100
|
- node.demo.do.prometheus.io
|
||||||
- influx.cloudalchemy.org:9100
|
- influx.example.org:9100
|
||||||
labels:
|
labels:
|
||||||
env: cloudalchemy
|
env: demo
|
||||||
docker:
|
docker:
|
||||||
- targets:
|
- targets:
|
||||||
- demo.cloudalchemy.org:8080
|
- demo.do.prometheus.io:8080
|
||||||
- influx.cloudalchemy.org:8080
|
- influx.example.org:8080
|
||||||
labels:
|
labels:
|
||||||
env: cloudalchemy
|
env: demo
|
||||||
prometheus_scrape_configs:
|
prometheus_scrape_configs:
|
||||||
- job_name: "prometheus"
|
- job_name: "prometheus"
|
||||||
metrics_path: "{{ prometheus_metrics_path }}"
|
metrics_path: "{{ prometheus_metrics_path }}"
|
||||||
|
@ -78,8 +78,8 @@
|
||||||
module: [http_2xx]
|
module: [http_2xx]
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- http://demo.cloudalchemy.org:9100
|
- http://node.demo.do.prometheus.io
|
||||||
- http://influx.cloudalchemy.org:9100
|
- http://influx.example.org:9100
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
target_label: __param_target
|
target_label: __param_target
|
||||||
|
|
Loading…
Reference in a new issue