grafana-rb 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/grafana-rb.gemspec +1 -1
- data/lib/grafana-rb/cli.rb +11 -1
- data/lib/grafana-rb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc7f51380b937fa32c5800be68e2e200520f167
|
4
|
+
data.tar.gz: 345ad01d4b454bc1cc49bd24e428241b9b7f208b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac85c8eb209c986dd6dad22eec536ba1083b5cb830b817b89dc14be11d790c7528bf5125a95ff5d8ffc9fc3ae2d2bf000f606faee86d78fd3d4d9c70dc371a00
|
7
|
+
data.tar.gz: faa5c3e7ac4f4c1aa312f9a83706668b3dd95cf99b44709789550e51c9c8ed310aaa2b2023b894d1fedb8e6445443190b49d2e7b147ec112bdb00ee0ca832c8a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Configure grafana dashboards using simple yml-notation.
|
4
4
|
|
5
|
-
[![Build Status](https://img.shields.io/travis/
|
5
|
+
[![Build Status](https://img.shields.io/travis/smuzitools/grafana-rb/master.svg)]()
|
6
6
|
[![Gem Version](https://img.shields.io/gem/v/grafana-rb.svg)]()
|
7
7
|
|
8
8
|
**Note:** work only with prometheus datasource now!
|
@@ -23,7 +23,7 @@ Fire `grafana-rb run` to create/upload grafana dashboards.
|
|
23
23
|
|
24
24
|
## Contributing
|
25
25
|
|
26
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
26
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/smuzitools/grafana-rb.
|
27
27
|
|
28
28
|
## License
|
29
29
|
|
data/grafana-rb.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Grafana dashboards tool}
|
13
13
|
spec.description = %q{Configure grafana dashboards using simple yml-notation.}
|
14
|
-
spec.homepage = "https://github.com/
|
14
|
+
spec.homepage = "https://github.com/smuzitools/grafana-rb"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
data/lib/grafana-rb/cli.rb
CHANGED
@@ -182,7 +182,17 @@ module GrafanaRb
|
|
182
182
|
end
|
183
183
|
|
184
184
|
def gen_panel(id, datasource_id, desc)
|
185
|
-
if desc["type"] == "
|
185
|
+
if desc["type"] == "text"
|
186
|
+
{
|
187
|
+
"content": desc["content"].to_s,
|
188
|
+
"id": id,
|
189
|
+
"mode": "markdown",
|
190
|
+
"span": desc["span"] || 2,
|
191
|
+
"title": desc["title"].to_s,
|
192
|
+
"type": "text"
|
193
|
+
}
|
194
|
+
|
195
|
+
elsif desc["type"] == "memory"
|
186
196
|
title = desc.delete("title")
|
187
197
|
gen_panel_custom(id, datasource_id, desc.merge(JSON.load(JSON.dump({
|
188
198
|
title: desc["target"] + " - mem",
|
data/lib/grafana-rb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grafana-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Vakhov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,7 +78,7 @@ files:
|
|
78
78
|
- lib/grafana-rb/cli.rb
|
79
79
|
- lib/grafana-rb/version.rb
|
80
80
|
- lib/grafana_rb.rb
|
81
|
-
homepage: https://github.com/
|
81
|
+
homepage: https://github.com/smuzitools/grafana-rb
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
84
|
metadata: {}
|