Skip to content

Incorrect displaying of stored_messages in statistics #267

@materkov

Description

@materkov

Hi, @wandenberg
It looks like that push stream module statistics can display wrong values for "stored_messages". For example, it now looks like this:

{"hostname": "my-hostname", "time": "2017-11-24T09:00:25", "channels": 2977, "wildcard_channels": 0, "published_messages": 18271, "stored_messages": 4, "messages_in_trash": 77, "channels_in_delete": 0, "channels_in_trash": 8, "subscribers": 2762, "uptime": 2878, "by_worker": [
{"pid": "12682", "subscribers": 589, "uptime": 2878},
{"pid": "12683", "subscribers": 819, "uptime": 2878},
{"pid": "12684", "subscribers": 660, "uptime": 2878},
{"pid": "12685", "subscribers": 694, "uptime": 2878}
]}

stored_messages always shows very low value (less than 20). If i look for stats for some specific channel (?id=CHANNEL_NAME):

{"channel": "conn_track_channel", "published_messages": 10041, "stored_messages": 1039, "subscribers": 0}

So, here is 1039, but in general stats the value is too low.

Could you please check this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions