@@ -89,15 +89,22 @@ var alertExample = templates.Examples(`
89
89
--prom-svc-name=prometheus-kube-prometheus-prometheus --prom-svc-namespace=monitoring --prom-svc-port=9090
90
90
91
91
Valid resource types include:
92
+ * connectcluster
93
+ * druid
92
94
* elasticsearch
93
95
* kafka
94
96
* mariadb
95
97
* mongodb
96
98
* mysql
97
99
* perconaxtradb
100
+ * pgpool
98
101
* postgres
99
102
* proxysql
103
+ * rabbitmq
100
104
* redis
105
+ * singlestore
106
+ * solr
107
+ * zookeeper
101
108
` )
102
109
103
110
func AlertCMD (f cmdutil.Factory ) * cobra.Command {
@@ -131,15 +138,22 @@ var dashboardExample = templates.Examples(`
131
138
--prom-svc-name=prometheus-kube-prometheus-prometheus --prom-svc-namespace=monitoring --prom-svc-port=9090
132
139
133
140
Valid dashboards include:
141
+ * connectcluster
142
+ * druid
134
143
* elasticsearch
135
144
* kafka
136
145
* mariadb
137
146
* mongodb
138
147
* mysql
139
148
* perconaxtradb
149
+ * pgpool
140
150
* postgres
141
151
* proxysql
152
+ * rabbitmq
142
153
* redis
154
+ * singlestore
155
+ * solr
156
+ * zookeeper
143
157
144
158
If --file is given, that is the local file. absolute or relative path both accepted.
145
159
If --url is given, that is the remote file. You have to specify the full raw url.
@@ -152,14 +166,15 @@ func DashboardCMD(f cmdutil.Factory) *cobra.Command {
152
166
branch string
153
167
file string
154
168
url string
169
+ isDB bool
155
170
)
156
171
cmd := & cobra.Command {
157
172
Use : "dashboard" ,
158
173
Short : i18n .T ("Check availability of a grafana dashboard" ),
159
174
Long : dashboardLong ,
160
175
161
176
Run : func (cmd * cobra.Command , args []string ) {
162
- dashboard .Run (f , args , branch , file , url , prom )
177
+ dashboard .Run (f , args , branch , file , url , prom , isDB )
163
178
},
164
179
Example : dashboardExample ,
165
180
DisableFlagsInUseLine : true ,
@@ -169,6 +184,7 @@ func DashboardCMD(f cmdutil.Factory) *cobra.Command {
169
184
cmd .Flags ().StringVarP (& file , "file" , "f" , "" , "absolute or relative path of the file containing dashboard" )
170
185
cmd .Flags ().StringVarP (& url , "url" , "u" , "" , "url of the raw file containing dashboard. " +
171
186
"For example: https://raw.githubusercontent.com/appscode/grafana-dashboards/master/mongodb/mongodb-summary-dashboard.json" )
187
+ cmd .Flags ().BoolVarP (& isDB , "isdb" , "d" , true , "for non db object's. just provide the url" )
172
188
return cmd
173
189
}
174
190
@@ -186,15 +202,22 @@ var connectionExample = templates.Examples(`
186
202
--prom-svc-name=prometheus-kube-prometheus-prometheus --prom-svc-namespace=monitoring --prom-svc-port=9090
187
203
188
204
Valid resource types include:
205
+ * connectcluster
206
+ * druid
189
207
* elasticsearch
190
208
* kafka
191
209
* mariadb
192
210
* mongodb
193
211
* mysql
194
212
* perconaxtradb
213
+ * pgpool
195
214
* postgres
196
215
* proxysql
216
+ * rabbitmq
197
217
* redis
218
+ * singlestore
219
+ * solr
220
+ * zookeeper
198
221
` )
199
222
200
223
func ConnectionCMD (f cmdutil.Factory ) * cobra.Command {
0 commit comments