-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Perf Counters #39
Comments
I am not a ruby programmer but probably something like that could be the solution:
For example to get every perf counter with: |
I think I got it. It would be great, if you will integrate it in your work: Example Request: Code: json_flat.each {|key, value|}.each do |key,value|
if key =~ /^value/
key += "'#{key}'"
p.push ("%s=%s" % [ key.insert(0,'\'') , value ])
end
end |
Hi there, Thanks for your patience on a reply (stuff came up in the real world, heh). I like your suggestion and will definitely take a look at it within the next few days. Cheers! |
Would be awesome! Thank you. |
Hello there, I have optimized it a little bit. Probably it is helpful for your implementation. For best integration in graphing software like graphite I am replacing all special characters with "_". "^value" could be replaced by a script argument which defines the needed performance values.
|
Hello, Thanks for your continued interest in this feature. To be honest I'm not entirely sure what you're trying to do. Could you please propose a use case with an example? Also, it'd really help if you could prepare a pull request with the code modifications that you're interested in making. I'd be glad to help you with this process if you like. |
Hello, The use case is to get all needed values from the json output to the performance counters, without knowing their names. Unfortunately I am not able to create a Pull Requests... |
In that you don't know how, or are somehow restricted from doing so? I'm curious now, heh. |
I have never done an pull request... and Im confused at handling with it :( |
Hy all |
Hello,
Would it be possible to get all Perf Counters by one query without know the perf value exactly?
For now it is working with that query:
check_http_json.rb -u 'xx' -E 'ActiveCount' -w 5 -c 10 --element_regex_global -p value§jboss.as:data-source=productx,statistics=pool,subsystem=datasources§ActiveCount?value§jboss.as:data-source=producty,statistics=pool,subsystem=datasources§ActiveCount?value§jboss.as:data-source=db2-productz,statistics=pool,subsystem=datasources§ActiveCount -d § --perf_splitter=?
But I do not really always know the names of the products like 'productx', 'producty' etc. so I need to get the value for all products as perf counters.
Json:
The text was updated successfully, but these errors were encountered: