NetXMS Support Forum

English Support => General Support => Topic started by: MarcusH on August 06, 2020, 08:33:42 AM

Title: Active sessions from Grafana
Post by: MarcusH on August 06, 2020, 08:33:42 AM
Hi,

I have a problem that i am trying to understand and see if it is something that can be fixed with config.

When i refresh a dashboard in grafana that has alot of unique DCI values, every tile creates its own session to the server via the webapi meaning you max out available connections to the server and then everything hangs until sessions starts to close.
What i trying to understand if this is how grafana works or is it the netxms datasource plugin or webapi that causes this problem.

If anyone has any knowledge of this i'd be happy to hear it.
Title: Re: Active sessions from Grafana
Post by: Victor Kirhenshtein on August 10, 2020, 11:35:26 PM
Hi,

at first glance it looks like issue with data source plugin. Somebody from the team will take a look.

Best regards,
Victor
Title: Re: Active sessions from Grafana
Post by: Victor Kirhenshtein on August 14, 2020, 05:53:23 PM
Hi,

just fixed that (commit e4f0dfc in netxms/grafana repository). If you have installed NetXMS datasource from GitHub you can update it now, otherwise you'll have to wait some time while it will be updated in official Grafana repository.

Best regards,
Victor
Title: Re: Active sessions from Grafana
Post by: MarcusH on September 17, 2020, 03:16:16 PM
Hi,

tested the version from github and i still get alot of connections
Title: Re: Active sessions from Grafana
Post by: Alex Kirhenshtein on September 18, 2020, 01:22:14 PM
You are testing version 1.2.3, correct?
Title: Re: Active sessions from Grafana
Post by: MarcusH on September 18, 2020, 01:28:11 PM
correct 1.2.3
Title: Re: Active sessions from Grafana
Post by: MarcusH on September 18, 2020, 02:37:56 PM
Just to be clear this is when dashboard is refreshed or loaded in the browser after some time the connections are closed and then only one connection per browser session is open and is used for when a grafana updates.
So it is only when browser loads it creates many connections not when grafana updates.
Title: Re: Active sessions from Grafana
Post by: Alex Kirhenshtein on September 18, 2020, 04:11:41 PM
thanks for clarification, I'll check it.
Title: Re: Active sessions from Grafana
Post by: MarcusH on September 25, 2020, 11:39:57 AM
Can it be the webapi?

Tested some other things with grafana and i noticed that all the connections live long after grafana is closed i.e no data polling.