forked from logicalclocks/hopsmonitor-chef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.rb
executable file
·166 lines (136 loc) · 5.01 KB
/
metadata.rb
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
maintainer "Jim Dowling"
maintainer_email "jdowling@kth.se"
name "hopsmonitor"
license "AGPLv3"
description "Deploy monitoring infrastructure for the Hopsworks platform"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "2.1.0"
source_url "https://github.com/logicalclocks/hopsmonitor-chef"
%w{ ubuntu debian centos }.each do |os|
supports os
end
depends 'java', '~> 7.0.0'
depends 'conda'
depends 'hops'
depends 'ndb'
depends 'kagent'
depends 'tensorflow'
depends 'hops_airflow'
recipe "hopsmonitor::install", "Installs Influxdb/Grafana Server"
recipe "hopsmonitor::default", "configures Influxdb/Grafana Server"
recipe "hopsmonitor::influxdb", "Installs and configure InfluxDb"
recipe "hopsmonitor::grafana", "Installs and configure Grafana"
recipe "hopsmonitor::prometheus", "Installs and configure Prometheus"
recipe "hopsmonitor::node_exporter", "Installs and configure node exporter"
recipe "hopsmonitor::purge", "Deletes the Influxdb/Grafana Server"
attribute "hopsmonitor/user",
:description => "User to run Influxdb/Grafana server as",
:type => "string"
attribute "hopsmonitor/group",
:description => "Group to run Influxdb/Grafana server as",
:type => "string"
attribute "hopsmonitor/dir",
:description => "Base install directory for Influxdb/Grafana ",
:type => "string"
attribute "hopsmonitor/default/private_ips",
:description => "Set ip addresses",
:type => "array"
attribute "hopsmonitor/default/public_ips",
:description => "Set ip addresses",
:type => "array"
attribute "hopsmonitor/private_ips",
:description => "Set ip addresses",
:type => "array"
attribute "hopsmonitor/public_ips",
:description => "Set ip addresses",
:type => "array"
#
# InfluxDB
#
attribute "influxdb/db_user",
:description => "username for influxdb account used by hopsworks ",
:type => "string"
attribute "influxdb/db_password",
:description => "Password for influxdb account used by hopsworks",
:type => "string"
attribute "influxdb/admin_user",
:description => "username for influxdb admin ",
:type => "string"
attribute "influxdb/admin_password",
:description => "Password for influxdb admin user",
:type => "string"
attribute "influxdb/http/port",
:description => "Http port for influxdb",
:type => "string"
attribute "influxdb/port",
:description => "Main port for influxdb",
:type => "string"
attribute "influxdb/admin/port",
:description => "Admin port for influxdb",
:type => "string"
attribute "influxdb/graphite/port",
:description => "Port for influxdb graphite connector",
:type => "string"
#
# Grafana
#
attribute "grafana/admin_user",
:description => "username for grafana admin ",
:type => "string"
attribute "grafana/admin_password",
:description => "Password for grafana admin user",
:type => "string"
attribute "grafana/port",
:description => "Port for grafana",
:type => "string"
#
# Prometheus
#
attribute "prometheus/retention_time",
:description => "Retention time for prometheus data",
:type => "string"
attribute "prometheus/port",
:description => "Port on which prometheus listens",
:type => "string"
#
# Alertmanager
#
attribute "alertmanager/port",
:description => "port on which alertmanager listens",
:type => "string"
attribute "alertmanager/slack/api_url",
:description => "Slack api url for sending alerts to slack",
:type => "string"
attribute "alertmanager/slack/channel",
:description => "Slack channel",
:type => "string"
attribute "alertmanager/slack/username",
:description => "Slack bot username",
:type => "string"
attribute "alertmanager/slack/text",
:description => "Slack text template",
:type => "string"
attribute "alertmanager/email/to",
:description => "Email address to send alerts to",
:type => "string"
attribute "alertmanager/email/from",
:description => "Email address to send alerts from",
:type => "string"
attribute "alertmanager/email/smtp_host",
:description => "Smtp host",
:type => "string"
attribute "alertmanager/email/auth_username",
:description => "Email auth username",
:type => "string"
attribute "alertmanager/email/auth_password",
:description => "Email auth password",
:type => "string"
attribute "alertmanager/email/auth_secret",
:description => "Email auth secret",
:type => "string"
attribute "alertmanager/email/auth_identity",
:description => "Email auth identity",
:type => "string"
attribute "alertmanager/email/text",
:description => "Email text template",
:type => "string"