grafana-rb 0.12.0 → 0.14.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d628d0e4ba67c8c1bb2242a292953d6edf67107
4
- data.tar.gz: d646b0be5c8373b9b76b9d52bdab9bed79ea27f7
3
+ metadata.gz: 1dc7f51380b937fa32c5800be68e2e200520f167
4
+ data.tar.gz: 345ad01d4b454bc1cc49bd24e428241b9b7f208b
5
5
  SHA512:
6
- metadata.gz: b4a13c8f56a580b0337d8407b48e3d68773a22972639f5c1683ed4ad676ec050c22cc0b46807e18ba16839a1bbbf0bac73b6975ce1d0effce64b5ec1c3d3785e
7
- data.tar.gz: 4f7aea50f71487907cb68cc801e0b5e3770c8c2ef9ff7b746c32dcf67edb40f6954368cbd195bc78d93c95343cd1ee4b06849aa25cde9f5e5222a764b570fbf8
6
+ metadata.gz: ac85c8eb209c986dd6dad22eec536ba1083b5cb830b817b89dc14be11d790c7528bf5125a95ff5d8ffc9fc3ae2d2bf000f606faee86d78fd3d4d9c70dc371a00
7
+ data.tar.gz: faa5c3e7ac4f4c1aa312f9a83706668b3dd95cf99b44709789550e51c9c8ed310aaa2b2023b894d1fedb8e6445443190b49d2e7b147ec112bdb00ee0ca832c8a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Grafana-rb 0.14.0 (April 10, 2017) ##
2
+
3
+ * Add text panel support.
4
+
1
5
  ## Grafana-rb 0.12.0 (April 6, 2017) ##
2
6
 
3
7
  * Add optional `refresh` param.
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/uchiru/grafana-rb/master.svg)]()
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/uchiru/grafana-rb.
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/uchiru/grafana-rb"
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|
@@ -182,7 +182,17 @@ module GrafanaRb
182
182
  end
183
183
 
184
184
  def gen_panel(id, datasource_id, desc)
185
- if desc["type"] == "memory"
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",
@@ -1,3 +1,3 @@
1
1
  module GrafanaRb
2
- VERSION = "0.12.0"
2
+ VERSION = "0.14.0"
3
3
  end
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.12.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-06 00:00:00.000000000 Z
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/uchiru/grafana-rb
81
+ homepage: https://github.com/smuzitools/grafana-rb
82
82
  licenses:
83
83
  - MIT
84
84
  metadata: {}