ganglia_js_charts 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ganglia_js_charts.gemspec +1 -1
- data/lib/ganglia_js_charts.rb +3 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/ganglia_js_charts.gemspec
CHANGED
data/lib/ganglia_js_charts.rb
CHANGED
@@ -13,17 +13,17 @@ class GangliaJSCharts
|
|
13
13
|
set :dump_errors, true
|
14
14
|
|
15
15
|
get "/clusters.json" do
|
16
|
-
Dir[charts_root + "/*"].select { |f| File.directory?(f) }.map { |f| f.gsub(charts_root, "").delete("/") }.to_json
|
16
|
+
Dir[charts_root + "/*"].select { |f| File.directory?(f) }.map { |f| f.gsub(charts_root, "").delete("/") }.sort.to_json
|
17
17
|
end
|
18
18
|
|
19
19
|
get "/:cluster/servers.json" do
|
20
20
|
cluster_root = charts_root + "/#{params[:cluster]}"
|
21
|
-
Dir["#{cluster_root}/*"].select { |f| File.directory?(f) }.map { |f| f.gsub(cluster_root, "").delete("/") }.to_json
|
21
|
+
Dir["#{cluster_root}/*"].select { |f| File.directory?(f) }.map { |f| f.gsub(cluster_root, "").delete("/") }.sort.to_json
|
22
22
|
end
|
23
23
|
|
24
24
|
get "/:cluster/:server/metrics.json" do
|
25
25
|
server_root = charts_root + "/#{params[:cluster]}/#{params[:server]}"
|
26
|
-
Dir["#{server_root}/*"].reject { |f| File.directory?(f) }.map { |f| f.gsub(server_root, "").delete("/").gsub(".rrd", "") }.to_json
|
26
|
+
Dir["#{server_root}/*"].reject { |f| File.directory?(f) }.map { |f| f.gsub(server_root, "").delete("/").gsub(".rrd", "") }.sort.to_json
|
27
27
|
end
|
28
28
|
|
29
29
|
get "/:cluster/:server/:metric.json" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ganglia_js_charts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Golick
|