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

counter decreasing #12

Open
Lathanderjk opened this issue Feb 25, 2022 · 1 comment
Open

counter decreasing #12

Lathanderjk opened this issue Feb 25, 2022 · 1 comment

Comments

@Lathanderjk
Copy link

Lathanderjk commented Feb 25, 2022

Hi,
Counter reporting total_session increasing/decreasing over time, as far as i know counters can only increasing. Value is identical to current session.

1. scrap
# HELP maxctrl_service_total_sessions Total amount of sessions
# TYPE maxctrl_service_total_sessions counter
maxctrl_service_total_sessions{name="Splitter-Service",router="readwritesplit"} 26

2. scrap
# HELP maxctrl_service_total_sessions Total amount of sessions
# TYPE maxctrl_service_total_sessions counter
maxctrl_service_total_sessions{name="Splitter-Service",router="readwritesplit"} 14

3. scrap
# HELP maxctrl_service_total_sessions Total amount of sessions
# TYPE maxctrl_service_total_sessions counter
maxctrl_service_total_sessions{name="Splitter-Service",router="readwritesplit"} 19

There is no restart/reload of maxscale or maxctrl exporter between scraps.
maxctrl_exporter latest git snap and maxscale 2.5

@ktugan
Copy link
Collaborator

ktugan commented Feb 26, 2022

In this case it does not make much sense per my understanding. If we add an ever increasing number for number of sessions then we need to normalize by seconds which, again, as I understand it is just making things complicated.

The data is also not that high frequency to make sense.

If you still want to implement it, feel free to add a new field with sum for this and we can see if we can get it merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants