You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by GitBox <gi...@apache.org> on 2019/04/05 16:43:40 UTC

[GitHub] [jena] Claudenw commented on issue #534: [WIP] Proof of concept for prometheus endpoint

Claudenw commented on issue #534: [WIP] Proof of concept for prometheus endpoint
URL: https://github.com/apache/jena/pull/534#issuecomment-480343725
 
 
   I think we only need to add the licenses (there may be only one) to the
   META-INF folder.  We could do this by just copying the file(s) or we could
   extract them from the Jars duirng the build.
   
   The first is easier, the latter means that if there are any changes in the
   license files we will pick them up.
   
   Is there any desire to do this one way or the other?  If not I will
   probably just copy the files.
   
   The other issue may be the license scan (at least I think we do one) will
   have to be updated to accept the licenses.
   
   Does this only go into the fuseki war or are there other builds that need
   them too?
   
   Claude
   
   On Thu, Apr 4, 2019 at 3:32 PM Andy Seaborne <no...@github.com>
   wrote:
   
   > Licensing
   >
   > @claudew <https://github.com/claudew> - would you be able to help out
   > with the L&N issues here?
   >
   > The LICENSE and NOTICE for the combined binary artifacts (3 of them) wil
   > need to include BSD-related text.
   > At the moment, they get autogenerated but we need to put specific text in.
   >
   > jena-fuseki-server
   > jena-fuseki-war
   > jena-fuseki-fulljar
   >
   > See jena-fuseki-webapp/src/resources/META-INF/ which puts in LICENSE and
   > NOTICE into a jar but I think we need to do it in the shading step for
   > external resources like BSD-licnesed binaries.
   > Packaging
   >
   > It is easier to add maven modules later than retire them.
   > Prometheus is sufficiently common I think including in Fuseki core for now
   > is easier for users.
   >
   > Proposal: moving it to
   > jena-fuseki-core::org.apache.jena.fuseki.metrics.prometheus (and the
   > ServiceLoader file similarly)
   > and now have the jena-prometheus (which is out of sequence in the build
   > currently).
   > Testing
   >
   > If jena-prometheus is not available I get a 500 server error and a
   > stacktrace, not 501 (running Fuseki main+Prometheus)
   >
   > {noformat}
   > [12:47:13] INFO Server :: Start Fuseki (port=3030)
   > [12:47:18] WARN HttpChannel :: /$/metrics/ds
   > org.apache.jena.fuseki.servlets.ActionErrorException: SimpleMeterRegistry
   > isn't scrapeable
   > at org.apache.jena.fuseki.servlets.ServletOps.error(ServletOps.java:143)
   > at
   > org.apache.jena.fuseki.servlets.ServletOps.errorNotImplemented(ServletOps.java:116)
   > at
   > org.apache.jena.fuseki.metrics.SimpleMetricsProvider.scrape(SimpleMetricsProvider.java:36)
   > at org.apache.jena.fuseki.ctl.ActionMetrics.perform(ActionMetrics.java:51)
   > at org.apache.jena.fuseki.ctl.ActionMetrics.doGet(ActionMetrics.java:42)
   > at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
   > {noformat}
   >
   > Some tests of the metrics code would be good. Testing the server is tricky
   > because you have to have a server and jena-fuseki-core isn't a whole
   > server. test can go into jena-fuseki-main for functional testing and
   > ideally jena-fuseki-webapp (just to test web.xml/shiro.ini setup).
   > Code comment
   >
   > The direct adding of MeterRegistry to everywhere DataAccessPointRegistry
   > is created feels wrong :-) but this does not have to be looked at now. The
   > current way works.
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/jena/pull/534#issuecomment-479922355>, or mute
   > the thread
   > <https://github.com/notifications/unsubscribe-auth/ACU6nuyFp_lZM4a13rHdSMlU3oKi6tNfks5vdg0SgaJpZM4bDW9i>
   > .
   >
   
   
   -- 
   I like: Like Like - The likeliest place on the web
   <http://like-like.xenei.com>
   LinkedIn: http://www.linkedin.com/in/claudewarren
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services