DataDog update script
This commit is contained in:
parent
36b54e190f
commit
1ffb2a1c03
|
@ -7,4 +7,5 @@
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- install-datadog-agent
|
- install-datadog-agent
|
||||||
|
- update-datadog-agent
|
||||||
|
|
||||||
|
|
|
@ -13,14 +13,6 @@
|
||||||
DD_API_KEY: "{{DD_API_KEY}}"
|
DD_API_KEY: "{{DD_API_KEY}}"
|
||||||
DD_HOST_TAGS: "testnet:{{TESTNET_NAME}},cluster:{{CLUSTER_NAME}}"
|
DD_HOST_TAGS: "testnet:{{TESTNET_NAME}},cluster:{{CLUSTER_NAME}}"
|
||||||
|
|
||||||
- name: Set datadog.yaml config
|
|
||||||
template: src=datadog.yaml.j2 dest=/etc/datadog-agent/datadog.yaml
|
|
||||||
notify: restart datadog-agent
|
|
||||||
|
|
||||||
- name: Set metrics config
|
|
||||||
copy: src=conf.d/ dest=/etc/datadog-agent/conf.d/
|
|
||||||
notify: restart datadog-agent
|
|
||||||
|
|
||||||
- name: Disable journald rate-limiting
|
- name: Disable journald rate-limiting
|
||||||
lineinfile: "dest=/etc/systemd/journald.conf regexp={{item.regexp}} line='{{item.line}}'"
|
lineinfile: "dest=/etc/systemd/journald.conf regexp={{item.regexp}} line='{{item.line}}'"
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
init_config:
|
||||||
|
|
||||||
|
instances:
|
||||||
|
- name: gaiad
|
||||||
|
url: http://localhost:26657/status
|
||||||
|
timeout: 1
|
||||||
|
content_match: '"latest_block_height": "0",'
|
||||||
|
reverse_content_match: true
|
||||||
|
|
||||||
|
- name: gaiacli
|
||||||
|
url: http://localhost:1317/node_version
|
||||||
|
timeout: 1
|
||||||
|
|
|
@ -2,6 +2,9 @@ init_config:
|
||||||
|
|
||||||
instances:
|
instances:
|
||||||
- prometheus_url: http://127.0.0.1:26660
|
- prometheus_url: http://127.0.0.1:26660
|
||||||
namespace: "gaiad"
|
|
||||||
metrics:
|
metrics:
|
||||||
- p2p: *
|
- go*
|
||||||
|
- mempool*
|
||||||
|
- p2p*
|
||||||
|
- process*
|
||||||
|
- promhttp*
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: restart datadog-agent
|
||||||
|
service: name=datadog-agent state=restarted
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Set datadog.yaml config
|
||||||
|
template: src=datadog.yaml.j2 dest=/etc/datadog-agent/datadog.yaml
|
||||||
|
notify: restart datadog-agent
|
||||||
|
|
||||||
|
- name: Set metrics config
|
||||||
|
copy: src=conf.d/ dest=/etc/datadog-agent/conf.d/
|
||||||
|
notify: restart datadog-agent
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
#DD_API_KEY,TESTNET_NAME,CLUSTER_NAME required
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
any_errors_fatal: true
|
||||||
|
gather_facts: no
|
||||||
|
roles:
|
||||||
|
- update-datadog-agent
|
||||||
|
|
Loading…
Reference in New Issue