daddy 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tasks/kibana.rake +16 -0
- data/lib/tasks/kibana/config.js +80 -0
- data/lib/tasks/kibana/install.sh +20 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5e5cd1e144733537b6c690970ec1cc2b010d8d5
|
4
|
+
data.tar.gz: 4fc61857ae0821c6dc5adba57151eb5ac866ba15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86c7548dce7b6c4421855c9cbd3d2b8d62517188b206d305d41e1ab2a9331dabfd6364877b7d58e930e334097b81efcf5b33972fb59ad48bebc10819213878f3
|
7
|
+
data.tar.gz: 9be99c32e749c7468a4da751a60a153af00e55b1a189c5da614727a2dedb30b4ec2d79a9d0d61d5348aac70eb9c039d8fa5b7123475197a80665f3f5bbdba7a1
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require_relative 'task_helper'
|
3
|
+
|
4
|
+
namespace :dad do
|
5
|
+
namespace :kibana do
|
6
|
+
|
7
|
+
desc "Kibanaをインストールします。"
|
8
|
+
task :install do
|
9
|
+
FileUtils.mkdir_p(File.join(rails_root, 'tmp'))
|
10
|
+
|
11
|
+
script = File.join(File.dirname(__FILE__), 'kibana', 'install.sh')
|
12
|
+
fail unless system("bash -x #{script}")
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
/** @scratch /configuration/config.js/1
|
2
|
+
*
|
3
|
+
* == Configuration
|
4
|
+
* config.js is where you will find the core Kibana configuration. This file contains parameter that
|
5
|
+
* must be set before kibana is run for the first time.
|
6
|
+
*/
|
7
|
+
define(['settings'],
|
8
|
+
function (Settings) {
|
9
|
+
"use strict";
|
10
|
+
|
11
|
+
/** @scratch /configuration/config.js/2
|
12
|
+
*
|
13
|
+
* === Parameters
|
14
|
+
*/
|
15
|
+
return new Settings({
|
16
|
+
|
17
|
+
/** @scratch /configuration/config.js/5
|
18
|
+
*
|
19
|
+
* ==== elasticsearch
|
20
|
+
*
|
21
|
+
* The URL to your elasticsearch server. You almost certainly don't
|
22
|
+
* want +http://localhost:9200+ here. Even if Kibana and Elasticsearch are on
|
23
|
+
* the same host. By default this will attempt to reach ES at the same host you have
|
24
|
+
* kibana installed on. You probably want to set it to the FQDN of your
|
25
|
+
* elasticsearch host
|
26
|
+
*
|
27
|
+
* Note: this can also be an object if you want to pass options to the http client. For example:
|
28
|
+
*
|
29
|
+
* +elasticsearch: {server: "http://localhost:9200", withCredentials: true}+
|
30
|
+
*
|
31
|
+
*/
|
32
|
+
elasticsearch: "http://"+window.location.hostname,
|
33
|
+
|
34
|
+
/** @scratch /configuration/config.js/5
|
35
|
+
*
|
36
|
+
* ==== default_route
|
37
|
+
*
|
38
|
+
* This is the default landing page when you don't specify a dashboard to load. You can specify
|
39
|
+
* files, scripts or saved dashboards here. For example, if you had saved a dashboard called
|
40
|
+
* `WebLogs' to elasticsearch you might use:
|
41
|
+
*
|
42
|
+
* default_route: '/dashboard/elasticsearch/WebLogs',
|
43
|
+
*/
|
44
|
+
default_route : '/dashboard/file/default.json',
|
45
|
+
|
46
|
+
/** @scratch /configuration/config.js/5
|
47
|
+
*
|
48
|
+
* ==== kibana-int
|
49
|
+
*
|
50
|
+
* The default ES index to use for storing Kibana specific object
|
51
|
+
* such as stored dashboards
|
52
|
+
*/
|
53
|
+
kibana_index: "kibana-int",
|
54
|
+
|
55
|
+
/** @scratch /configuration/config.js/5
|
56
|
+
*
|
57
|
+
* ==== panel_name
|
58
|
+
*
|
59
|
+
* An array of panel modules available. Panels will only be loaded when they are defined in the
|
60
|
+
* dashboard, but this list is used in the "add panel" interface.
|
61
|
+
*/
|
62
|
+
panel_names: [
|
63
|
+
'histogram',
|
64
|
+
'map',
|
65
|
+
'goal',
|
66
|
+
'table',
|
67
|
+
'filtering',
|
68
|
+
'timepicker',
|
69
|
+
'text',
|
70
|
+
'hits',
|
71
|
+
'column',
|
72
|
+
'trends',
|
73
|
+
'bettermap',
|
74
|
+
'query',
|
75
|
+
'terms',
|
76
|
+
'stats',
|
77
|
+
'sparklines'
|
78
|
+
]
|
79
|
+
});
|
80
|
+
});
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
SCRIPT_BASE=`dirname $0`
|
4
|
+
VERSION="3.1.0"
|
5
|
+
|
6
|
+
mkdir -p tmp
|
7
|
+
pushd tmp
|
8
|
+
if [ -e kibana-${VERSION}.tar.gz ]; then
|
9
|
+
echo "kibana-${VERSION}.tar.gz はダウンロード済みです。"
|
10
|
+
else
|
11
|
+
wget https://download.elasticsearch.org/kibana/kibana/kibana-${VERSION}.tar.gz
|
12
|
+
fi
|
13
|
+
|
14
|
+
tar zxf kibana-${VERSION}.tar.gz
|
15
|
+
sudo rm -Rf /opt/kibana-${VERSION}
|
16
|
+
sudo mv kibana-${VERSION} /opt/
|
17
|
+
sudo ln -snf /opt/kibana-${VERSION} /opt/kibana
|
18
|
+
popd
|
19
|
+
|
20
|
+
cp -f ${SCRIPT_BASE}/config.js /opt/kibana/
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
@@ -373,6 +373,9 @@ files:
|
|
373
373
|
- lib/tasks/jenkins
|
374
374
|
- lib/tasks/jenkins.conf
|
375
375
|
- lib/tasks/jenkins.rake
|
376
|
+
- lib/tasks/kibana.rake
|
377
|
+
- lib/tasks/kibana/config.js
|
378
|
+
- lib/tasks/kibana/install.sh
|
376
379
|
- lib/tasks/nginx.app.conf.erb
|
377
380
|
- lib/tasks/nginx.conf.erb
|
378
381
|
- lib/tasks/nginx.jenkins.conf.erb
|
@@ -405,7 +408,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
405
408
|
requirements:
|
406
409
|
- - '>='
|
407
410
|
- !ruby/object:Gem::Version
|
408
|
-
version:
|
411
|
+
version: 2.0.0
|
409
412
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
410
413
|
requirements:
|
411
414
|
- - '>='
|