circonus 3.6.11 → 3.6.12
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.
- data/bin/circonus-add-http-check +2 -2
- metadata +2 -2
data/bin/circonus-add-http-check
CHANGED
|
@@ -15,7 +15,7 @@ host = nil
|
|
|
15
15
|
options[:subcomponents] = []
|
|
16
16
|
options[:tags] = ['application:http','source:manual']
|
|
17
17
|
opts.banner = "Usage: #{File.basename($0)}\n"
|
|
18
|
-
opts.on( '--tags TAGLIST',"Apply comma separated list of tags (default:
|
|
18
|
+
opts.on( '--tags TAGLIST',"Apply comma separated list of tags (default: application:http,source:manual)" ) { |t| options[:tags] += t.split(/,/) }
|
|
19
19
|
opts.on( '--brokers BROKER',"Comma separated list of broker names to use" ) { |t| options[:brokers] = t.split(',') }
|
|
20
20
|
opts.on( '--hostname HOSTNAME',"Hostname to add" ) { |t| options[:hostname] = t }
|
|
21
21
|
opts.on( '--uniqueid STRING',"For checks with the same hostname, uniquely identify the check" ) { |t| options[:subcomponents] += [t] }
|
|
@@ -149,7 +149,7 @@ graph = mib_add_graph!(title,{'style'=>'line','tags'=>@cu.options[:tags],'min_le
|
|
|
149
149
|
checkids.each do |cid|
|
|
150
150
|
dpcid = cid.split('/').last.to_i
|
|
151
151
|
%w{ tt_connect tt_firstbyte duration }.each do |metric|
|
|
152
|
-
mib_add_datapoint!(graph,metric,{'name'=>"#{metric}
|
|
152
|
+
mib_add_datapoint!(graph,metric,{'name'=>"#{metric} (ms) broker:#{dpcid}",'legend_formula'=>'=round(VAL,1)','check_id'=>dpcid})
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
155
|
#pp graph
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: circonus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.6.
|
|
4
|
+
version: 3.6.12
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|