-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instrumentation to KERIA #259
Comments
I looked briefly at Prometheus (really just read the readme) but the description reminds of a lot of the tooling that we had to build for autonomous vehicle systems. A lot of similar (to Prometheus) features were implemented in the Ioflo the Logger, Log, and Loggee behaviors in Ioflo which we would have gotten for free if I had had the time to port them to Hio. Anyway not sure how Prometheus plugs in but it seems reasonable at least from a high level description. Anyway it makes me want to put metrified logs on the road map for Hio. Not something that is going to happen anytime soon so not something to wait for but certainly would be advantageous down the road to have more tightly integrated metrified logging for Hio Doers and DoDoers that eats its own dog food for flow based architecture systems logging. For example the logging code in ioflo < 1000 lines because it leverages all the ioflo supporting libraries. The graphing etc that Prometheus does I did with scripts I wrote for MatPlotLib (back in the day). So for example this video QuadOctagonCurrent.mp4 |
I've explored Prometheus python client instrumenting, four types of metric are offered: Counter, Gauge, Summary, and Histogram. Could you please elaborate on what behaviors or metrics we're interested in about any specific doer. For example, how many times/fequently is a doer invoked of an agent, or resource consumption of a doer of an agent for a specific task. This could be helpful to assess the feasibility of using Prometheus. |
As we discussed in the KERIpy maintainer's call, we'd like to capture number of times a Doer's recur method is called and the amount of time that method took to execute. We could also instrument the API calls into the KERIA API endpoints. I believe prometheus has function decorators for that. |
Investigate Prometheus or similar instrumentation library to add metrics to each Doer to capture processing occurring for any installation of KERIA
The text was updated successfully, but these errors were encountered: