sensu-plugins-openstack 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +5 -1
- data/README.md +1 -1
- data/bin/keystone/keystone-token-metrics.rb +2 -2
- data/bin/nova/nova-hypervisor-metrics.py +5 -4
- data/bin/nova/nova-server-state-metrics.py +5 -4
- data/lib/sensu-plugins-openstack/version.rb +1 -1
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 137dfeab64f07ff389040c465e3a148e75b8fe41
|
4
|
+
data.tar.gz: 4a2d3ab84755442d516a1c39e1635207b0576726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 254ccc0f4b574632a83a4240db2be1d984b890eb1c6c60ca726f7fa78b1aa76f6221a6a6ba91a908461abdaabec78f65df838d81b297bc04055337036b6413ee
|
7
|
+
data.tar.gz: 01b92e9b59870315a90bee2b3a062a4da1842519e721bcd3f60f661efe88dcce5ee7f879f5e26520248b7b0beffff2ad7804022ece11b7466b322922e01c98a8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
3
3
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
|
-
## Unreleased
|
6
|
+
## Unreleased
|
7
|
+
|
8
|
+
## [0.0.4] - 2015-09-29
|
9
|
+
### Changed
|
10
|
+
- nova: optionally get auth from ENV
|
7
11
|
|
8
12
|
## [0.0.3] - 2015-07-14
|
9
13
|
### Changed
|
data/README.md
CHANGED
@@ -79,13 +79,13 @@ class KeystoneTokenCounts < Sensu::Plugin::Metric::CLI::Graphite
|
|
79
79
|
end
|
80
80
|
metrics = %w(active expired total)
|
81
81
|
sql = <<-eosql
|
82
|
-
SELECT #{
|
82
|
+
SELECT #{'user.name,' if config[:by_user]}
|
83
83
|
SUM(IF(NOW() <= expires,1,0)) AS active,
|
84
84
|
SUM(IF(NOW() > expires,1,0)) AS expired,
|
85
85
|
COUNT(*) AS total FROM token
|
86
86
|
eosql
|
87
87
|
sql.concat <<-eosql if config[:by_user]
|
88
|
-
LEFT JOIN user ON token.user_id = user.id #{
|
88
|
+
LEFT JOIN user ON token.user_id = user.id #{where}
|
89
89
|
GROUP BY user.name
|
90
90
|
eosql
|
91
91
|
begin
|
@@ -7,6 +7,7 @@
|
|
7
7
|
|
8
8
|
# #RED
|
9
9
|
from argparse import ArgumentParser
|
10
|
+
from os import getenv
|
10
11
|
import socket
|
11
12
|
import time
|
12
13
|
|
@@ -31,10 +32,10 @@ def output_metric(name, value):
|
|
31
32
|
|
32
33
|
def main():
|
33
34
|
parser = ArgumentParser()
|
34
|
-
parser.add_argument('-u', '--user', default='admin')
|
35
|
-
parser.add_argument('-p', '--password', default='admin')
|
36
|
-
parser.add_argument('-t', '--tenant', default='admin')
|
37
|
-
parser.add_argument('-a', '--auth-url', default='http://localhost:5000/v2.0')
|
35
|
+
parser.add_argument('-u', '--user', default=getenv('OS_USERNAME', 'admin'))
|
36
|
+
parser.add_argument('-p', '--password', default=getenv('OS_PASSWORD', 'admin'))
|
37
|
+
parser.add_argument('-t', '--tenant', default=getenv('OS_TENANT_NAME', 'admin'))
|
38
|
+
parser.add_argument('-a', '--auth-url', default=getenv('OS_AUTH_URL', 'http://localhost:5000/v2.0'))
|
38
39
|
parser.add_argument('-S', '--service-type', default='compute')
|
39
40
|
parser.add_argument('-H', '--host')
|
40
41
|
parser.add_argument('-s', '--scheme', default=DEFAULT_SCHEME)
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
# #RED
|
4
4
|
from argparse import ArgumentParser
|
5
|
+
from os import getenv
|
5
6
|
import socket
|
6
7
|
import time
|
7
8
|
|
@@ -14,10 +15,10 @@ def output_metric(name, value):
|
|
14
15
|
|
15
16
|
def main():
|
16
17
|
parser = ArgumentParser()
|
17
|
-
parser.add_argument('-u', '--user', default='admin')
|
18
|
-
parser.add_argument('-p', '--password', default='admin')
|
19
|
-
parser.add_argument('-t', '--tenant', default='admin')
|
20
|
-
parser.add_argument('-a', '--auth-url', default='http://localhost:5000/v2.0')
|
18
|
+
parser.add_argument('-u', '--user', default=getenv('OS_USERNAME', 'admin'))
|
19
|
+
parser.add_argument('-p', '--password', default=getenv('OS_PASSWORD', 'admin'))
|
20
|
+
parser.add_argument('-t', '--tenant', default=getenv('OS_TENANT_NAME', 'admin'))
|
21
|
+
parser.add_argument('-a', '--auth-url', default=getenv('OS_AUTH_URL', 'http://localhost:5000/v2.0'))
|
21
22
|
parser.add_argument('-S', '--service-type', default='compute')
|
22
23
|
parser.add_argument('-s', '--scheme', default=DEFAULT_SCHEME)
|
23
24
|
args = parser.parse_args()
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-openstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-
|
33
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sensu-plugin
|
@@ -66,14 +66,14 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 0.32.1
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 0.32.1
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: rspec
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.4.
|
222
|
+
rubygems_version: 2.4.8
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Sensu plugins for openstack
|
metadata.gz.sig
CHANGED
Binary file
|