-
Notifications
You must be signed in to change notification settings - Fork 21
/
test.yml
96 lines (89 loc) · 1.95 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
- hosts: 127.0.0.1
connection: local
tags:
- simple
roles:
- ../..
vars:
mackerel_agent_apikey: "test-api-key"
- hosts: 127.0.0.1
connection: local
tags:
- agent_roles
roles:
- ../..
vars:
mackerel_agent_apikey: "test-api-key"
mackerel_agent_roles:
- "test-service-1:app-1"
- "test-service-2:app-2"
- hosts: 127.0.0.1
connection: local
tags:
- display_name
roles:
- ../..
vars:
mackerel_agent_apikey: "test-api-key"
mackerel_agent_display_name: "Test host"
- hosts: 127.0.0.1
connection: local
tags:
- pidfile_root_include
roles:
- ../..
vars:
mackerel_agent_apikey: "test-api-key"
mackerel_agent_pidfile: "/tmp/mackerel-agent.pid"
mackerel_agent_root: "/tmp/mackerel-agent"
mackerel_agent_include: "/etc/mackerel-agent/conf.d/*.conf"
- hosts: 127.0.0.1
connection: local
tags:
- verbose
roles:
- ../..
vars:
mackerel_agent_apikey: "test-api-key"
mackerel_agent_verbose: true
- hosts: 127.0.0.1
connection: local
tags:
- agent_plugins_simple
roles:
- ../..
vars:
mackerel_agent_apikey: "test-api-key"
mackerel_agent_plugins:
jvm: "/usr/bin/mackerel-plugin-jvm -javaname=NettyServer"
- hosts: 127.0.0.1
connection: local
tags:
- check_plugins_simple
roles:
- ../..
vars:
mackerel_agent_apikey: "test-api-key"
mackerel_check_plugins:
uptime:
command: "/usr/bin/check-procs -p any_process"
- hosts: 127.0.0.1
connection: local
tags:
- check_plugins
roles:
- ../..
vars:
mackerel_agent_apikey: "test-api-key"
mackerel_check_plugins:
uptime:
command: "/usr/bin/check-procs -p any_process"
notification_interval: 10
max_check_attempts: 3
check_interval: 5
prevent_alert_auto_close: true
action:
command: "echo \\\"Error any_process is not running.\\\" > log_file"
env:
FOO: foo