Skip to content
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

Add missing metadata keys to monitoring port subsz JSON #1371

Closed
davidkemper opened this issue May 4, 2020 · 6 comments · Fixed by #1377
Closed

Add missing metadata keys to monitoring port subsz JSON #1371

davidkemper opened this issue May 4, 2020 · 6 comments · Fixed by #1377
Assignees

Comments

@davidkemper
Copy link

Unlike the other *z (e.g., connz and varz), subsz is missing the server_id key.

It is also missing now.

There are probably other metadata fields that could be added, but these are the notable omissions.

Here is a recent subsz payload:

{
  "num_subscriptions": 0,
  "num_cache": 0,
  "num_inserts": 0,
  "num_removes": 0,
  "num_matches": 0,
  "cache_hit_rate": 0,
  "max_fanout": 0,
  "avg_fanout": 0
}
@derekcollison
Copy link
Member

Also time, etc.

So server id and name and now fields.

@derekcollison
Copy link
Member

And if we do not already an account filter arg we can send.

@matthiashanel
Copy link
Contributor

@derekcollison I would make subsz work like all the others meaning return everything.
In a separate issue add account args to all were applicable.
That is add it to connz too

@derekcollison
Copy link
Member

What do you mean everything? This is about subs but agree we need server id and name and now timestamp for request.

@matthiashanel
Copy link
Contributor

I'll add the fields but also address #1357

/subs like /connz should return all subscriptions, irrespective of account.
Then I will also add an option to (/subsz and /connz to query by account) and expose via system events as well.

@derekcollison
Copy link
Member

subsz is currently not a pageable destination, so you can not return any dynamic sized lists here.
Subsz totals should be for all accounts I agree, it may just be $G. Take care at holding the servers locks, probably snapshot s.accounts and go one by one asking them (or the sl) for the stats.

matthiashanel added a commit that referenced this issue May 6, 2020
Fixes  #1371 and #1357 by adding up stats and collecting subscriptions
from all accounts.

Signed-off-by: Matthias Hanel <mh@synadia.com>
matthiashanel added a commit that referenced this issue May 6, 2020
Fixes  #1371 and #1357 by adding up stats and collecting subscriptions
from all accounts.

Signed-off-by: Matthias Hanel <mh@synadia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants