[Koha-devel] Unable to access plack middleware ( Plack::Middleware::Prometheus::RequestTimes )

Jonathan Druart jonathan.druart at bugs.koha-community.org
Wed May 31 09:58:31 CEST 2023


Hi Kyle,

It should work if you mount it in /intranet/metrics and access it using
/cgi-bin/koha/metrics

Cheers,
Jonathan

Le mar. 30 mai 2023 à 18:36, Kyle Hall <kyle.m.hall at gmail.com> a écrit :

> Hey yinz, I’m trying to add some Prometheus metrics to Koha. This looks
> like it has what we want:
> https://metacpan.org/pod/Plack::Middleware::Prometheus::RequestTimes
>
> Really, I’d like response times per script, but I’m not that picky just
> yet.
>
> I tried this on /etc/koha/plack.psgi but I just get a 404 for
> 127.0.0.1:8081/metrics. No errors in the logs. Any thoughts?
>
> Here's my POC commit:
>
> https://github.com/bywatersolutions/bywater-koha-devel/commit/472436f7a05a8ae5049cd8f140ba43e8a71bce8c
>
> ---
> http://www.kylehall.info
> ByWater Solutions ( http://bywatersolutions.com )
> Meadville Public Library ( http://www.meadvillelibrary.org )
> Crawford County Federated Library System ( http://www.ccfls.org )
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : https://www.koha-community.org/
> git : https://git.koha-community.org/
> bugs : https://bugs.koha-community.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20230531/adf1f49a/attachment.htm>


More information about the Koha-devel mailing list