GET
on /{db}/watchdog
which will return a simple JSON object containing the information available via JMX."I have a database in Stardog named "demo". I used the Enterprise Trial version (3.0.1) on Windows with JDK 1.8I can use JConsole via JMX to see the "demo" database details. From Stardog's Admin console, I am also able to click on the "Monitor" tab to see the server statistics.In http://docs.stardog.com/#_server_monitoring_with_watchdog_jmx , it says that :"You can also access information from Watchdog in the web console for the database, or by performing aGET
on/{db}/watchdog
which will return a simple JSON object containing the information available via JMX."
I am interested in trying out the HTTP call to get the JSON response. On Chrome, I am logged in Admin Console as the default admin/admin and I set the browser's URL to http://localhost:5820/demo/watchdog (which effectively does a HTTP GET), but I get a HTTP 404.
When I used Chrome's Developer Tools to look at the HTTP calls that happens in the Stardog Admin, I notice that there are calls to http://localhost:5820/watchdog which seems to return a JSON object with the information. However, I do not see a database name being specified there.
Anyone knows what is the correct HTTP URL to call ?Thanks.Kean
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Well, I would not get any JSON response if I hit the URL http://localhost:5820/watchdog directly. I am not sure how the Stardog Admin console does it, but it seems to work for Stardog Admin. Perhaps I am missing some parameters ?
Also, how do I specify the specific database information that I want to get because URL http://localhost:5820/watchdog does not allow me to specify the database name.
I am interested in trying out the HTTP call to get the JSON response. On Chrome, I am logged in Admin Console as the default admin/admin and I set the browser's URL to http://localhost:5820/demo/watchdog (which effectively does a HTTP GET), but I get a HTTP 404.When I used Chrome's Developer Tools to look at the HTTP calls that happens in the Stardog Admin, I notice that there are calls to http://localhost:5820/watchdog which seems to return a JSON object with the information. However, I do not see a database name being specified there.This is the correct URL. The database specific information is returned in the JSON object from that call; in your case, there will be a key 'demo' whose value is a map of the data for that database.Cheers,Mike
--
Hi Michael,Thanks for the reply. Interesting that when we use WGET, we can get a JSON response. Trying POSTMAN on Chrome also works, but providing that URL directly on Chrome browser does not.