Gsoc 2020: Expose System Metrics For Monitoring.

@ayesh nice work… I’ll check the PR :slight_smile:



Hm Its the same @ibacher



wdyt abt this

And I saw there is a graphite reporter as well

I didnt dig deep but I feels like it will affect the performace of the app for sure

I will get an idea weather its possible to pull every 1 hour or 30 mins time than always doing the pulling

That looks like it could be a cool add-on to have. I think the first thing is to make sure we have the metrics publishable in some format. I would think we want to leave the stack consuming the metrics as open as possible, although I suppose integrating something for some viewable dashboards might be cool.

So I thought about publishing in Json format ?

Hi All

I added seprate plugin workflow to the same PR. Which will trigger based on global property change thanks alot @ibacher on suggesting this workflow.

1 Like

thanks for merging the pr ian

Well done @ayesh :smiley:

1 Like

Thanks @judeniroshan

and thanks ian for resolving the activator issue.

Have a small problem @ibacher do you prefer this test

Screenshot from 2020-06-27 14-46-43

or this one

Screenshot from 2020-06-27 14-47-15

I went with the first one because in the second one we are actually mocking the exception as well. I don’t think that is correct

pushed the changes for fhir pr’s as well

Hi All

Am facing an issue currently with the metric module. Seems like there is an issue with the session factory any idea about this. Full log is attached with the pastebin link.

Also it takes a long time to throw this exception as well and this error prevents startup as well.

An error occurred while running scheduled address hierarchy task

org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider]

cc :- @ibacher @dkayiwa

Can you share the server side log?

Hi @dkayiwa

Sure in the pastebin we have the server side log.So it wont continue and start openmrs.It stops after giving this error.

And it coninuosly throws this error as well so it os not conitnuing after this error thrown

When asked for a server side log, avoid the temptation of selecting and hence sharing only a section which you think is the cause. Leave that to the one who wants to help. Does this make sense? :smile:

1 Like

ofcourse sir :rofl:

Here it is thanks alot for helping out.

The code looks like a mess now but I can push it to a branch if it makes more sense to look at the code :slightly_smiling_face:

Which version of the openmrs platform and addresshierarchy module are you running?


I don’t have addresshierarchy module in use. I will add the parent pom here for the reference

also am using ref app 2.10.0 distribution setting up with the sdk. “mysql Ver 14.14 Distrib 5.6.40, for Linux (x86_64) using EditLine wrapper”

If you do not use that module, then delete its task using your equivalent of this screen