dev@glassfish.java.net

Re: monitoring - stats providers (registration?) issue

From: Pavel Bucek <Pavel.Bucek_at_Sun.COM>
Date: Thu, 12 Aug 2010 18:02:55 +0200

already done; https://glassfish.dev.java.net/issues/show_bug.cgi?id=12968

thanks,
pavel

On 8/12/10 4:54 PM, Vijay Ramachandran wrote:
>
> On 8/12/10 7:47 AM, Pavel Bucek wrote:
>> Ha! Thats it, thanks!
>>
>> ./bin/asadmin get -m "*" # empty output
>> ./bin/asadmin get -m "server.*" # expected output..
>>
>> (ugly issue by the way.. I'd expect this is thoroughly tested)..
>
> It was tested and was working properly for 3.0. Then you had one
> instance named "server" and wildcard meant that server only.
>
> Recently replication support was added to this command so that it can
> get the data from remote instances directly. Wildcard processing has
> some issues while trying to derive/deduce instance info from wild
> cards such as this scenario where the user just gives a "*" only.
>
> Please don't forget to file a bug (P2). We will follow up.
>
> Vijay
>
>>
>> Pavel
>>
>>
>> On 8/12/10 4:14 PM, Vijay Ramachandran wrote:
>>> Instead of using wild card, can you check if specifying full / part
>>> dotted name for the monitored attribute (for example,
>>> <instance-name>.* or <instance-name>.<monitored-attr>.*) works ?
>>>
>>> If it works, please file a bug for the "asadmin get -m "*" not working
>>>
>>> Thanks
>>>
>>> Vijay
>>>
>>> On 8/12/10 4:38 AM, Pavel Bucek wrote:
>>>>
>>>> Hello,
>>>>
>>>> I have some probes and stats provider module which registers
>>>> listener to these probes, creates and registers custom stats
>>>> providers.
>>>>
>>>> When I add some debugging output, I can see that statistics are
>>>> counted as expected (so monitoring is enabled, probes are being
>>>> emitted and caught by listeners).. but when I invoke
>>>>
>>>> ./bin/asadmin get -m "*"
>>>>
>>>> I get only blank line. Is there some clever way how can I debug
>>>> registering stats provider classes? There is no exception or
>>>> warning in glassfish server log during application run. get -m "*"
>>>> command invocation or objects registration
>>>> (StatsProviderManager.register(...)).
>>>>
>>>> I can create reproducible testcase if it helps..
>>>>
>>>> Thanks,
>>>> Pavel
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>