fluent-plugin-calyptia-monitoring 0.1.0.rc5 → 0.1.0.rc6
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc96c5b09c542854a7fc86e735d01c1b8d15d6ffcacc35d21bc4e02578f7d379
|
4
|
+
data.tar.gz: 1deccf93ccb4b41f802099d72b33670459d78c65917af979dd074041de6b964f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba2e21ff1a791fcf81d33d3c568874ac672c3b9882e942007e57c403f2f0d0a12d211b473244bff8303f58bb5b853f2d9acb6c2d527e0d9623484c0a626f26b1
|
7
|
+
data.tar.gz: 62b0c374c5917ca03d8b836fdf2508838e4cc134d04e25873021fd972fa9914f5a38888e2de62d335b5576883307c343ec72b3f00d5959eb502cf9cd8ec9e87d
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "fluent-plugin-calyptia-monitoring"
|
6
|
-
spec.version = "0.1.0.
|
6
|
+
spec.version = "0.1.0.rc6"
|
7
7
|
spec.authors = ["Hiroshi Hatake"]
|
8
8
|
spec.email = ["hatake@calyptia.com"]
|
9
9
|
|
@@ -51,10 +51,10 @@ module Fluent::Plugin
|
|
51
51
|
metadata
|
52
52
|
end
|
53
53
|
|
54
|
-
# POST /
|
54
|
+
# POST /v1/agents
|
55
55
|
# Authorization: X-Project-Token
|
56
56
|
def create_agent(current_config)
|
57
|
-
url = URI("#{@endpoint}/
|
57
|
+
url = URI("#{@endpoint}/v1/agents")
|
58
58
|
|
59
59
|
https = if proxy = proxies
|
60
60
|
proxy_uri = URI.parse(proxy)
|
@@ -75,10 +75,10 @@ module Fluent::Plugin
|
|
75
75
|
return [response.code, agent, machine_id]
|
76
76
|
end
|
77
77
|
|
78
|
-
# PATCH /
|
78
|
+
# PATCH /v1/agents/:agent_id
|
79
79
|
# Authorization: X-Agent-Token
|
80
80
|
def update_agent(current_config, agent, machine_id)
|
81
|
-
url = URI("#{@endpoint}/
|
81
|
+
url = URI("#{@endpoint}/v1/agents/#{agent['id']}")
|
82
82
|
|
83
83
|
https = if proxy = proxies
|
84
84
|
proxy_uri = URI.parse(proxy)
|
@@ -100,10 +100,10 @@ module Fluent::Plugin
|
|
100
100
|
return [response.code, body]
|
101
101
|
end
|
102
102
|
|
103
|
-
# POST /
|
103
|
+
# POST /v1/agents/:agent_id/metrics
|
104
104
|
# Authorization: X-Agent-Token
|
105
105
|
def add_metrics(metrics, agent_token, agent_id)
|
106
|
-
url = URI("#{@endpoint}/
|
106
|
+
url = URI("#{@endpoint}/v1/agents/#{agent_id}/metrics")
|
107
107
|
|
108
108
|
https = if proxy = proxies
|
109
109
|
proxy_uri = URI.parse(proxy)
|
@@ -45,7 +45,7 @@ module Fluent
|
|
45
45
|
|
46
46
|
config_section :cloud_monitoring, multi: false, required: true do
|
47
47
|
desc 'The endpoint for Monitoring API HTTP request, e.g. http://example.com/api'
|
48
|
-
config_param :endpoint, :string, default: "https://cloud-
|
48
|
+
config_param :endpoint, :string, default: "https://cloud-api.calyptia.com"
|
49
49
|
desc 'The API KEY for Monitoring API HTTP request'
|
50
50
|
config_param :api_key, :string, secret: true
|
51
51
|
desc 'Emit monitoring values interval. (minimum interval is 30 seconds.)'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-calyptia-monitoring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Hatake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|