grafana-rb 0.16.0 → 0.17.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/lib/grafana-rb/cli.rb +3 -2
- data/lib/grafana-rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97ee4b71f1093f8df1f8f780a0c18db45843fdd0
|
4
|
+
data.tar.gz: ea170777a2eab5af4ccade42826218914ab2f85e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3af6932643551fe7019e6afe2dc4378c2bde2de33ecddb9a81d12285428ee509dd8b143a5c141939d4f60686e75546fb127e22e7795b920e0d3730520a89ebc9
|
7
|
+
data.tar.gz: bb1e7ab8827c51466afcd74c2e8701e79c74d30f60109793adfe5a034571e058d2cbd0f86585bb577878d3158c3d785390b18f10914393b009dbd49b162c240d
|
data/CHANGELOG.md
CHANGED
data/lib/grafana-rb/cli.rb
CHANGED
@@ -33,8 +33,9 @@ module GrafanaRb
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def request(method, path, params = {})
|
36
|
-
uri = URI(
|
36
|
+
uri = URI(config["grafana_url"] + path)
|
37
37
|
http = Net::HTTP.new(uri.host, uri.port)
|
38
|
+
http.use_ssl = uri.scheme == "https"
|
38
39
|
# http.set_debug_output $stderr
|
39
40
|
if method == :get
|
40
41
|
req = Net::HTTP::Get.new(uri)
|
@@ -78,7 +79,7 @@ module GrafanaRb
|
|
78
79
|
puts ""
|
79
80
|
puts "---"
|
80
81
|
puts "tool_version: #{GrafanaRb::VERSION}"
|
81
|
-
puts "grafana_url: monitoring.your-domain.com:3000 # required"
|
82
|
+
puts "grafana_url: http://monitoring.your-domain.com:3000 # required"
|
82
83
|
puts "grafana_user: user # 'admin' if missed"
|
83
84
|
puts "grafana_password: secret # 'admin' if missed"
|
84
85
|
puts "require: [main.yml, dash*.yml] # optional, [*.yml] by default"
|
data/lib/grafana-rb/version.rb
CHANGED