Better computer monitoring
SquidDev opened this issue ยท 1 comments
Taken from a now-deleted issue:
-
Prometheus exporter (with configurable port number) for computers running, largest tick times etc. It might be nice to track counts of various TEs (turtles, peripherals, etc...), as well as block updates (monitors) but that might be better done as a more general mod.
-
Tracking the number of various operations performed by computers. Some ideas:
- Invocations to
peripheral.call
. - Invocations to "expensive"
fs
methods (sofs.open
andfs.copy
are tracked, butfs.combine
,fs.isDir
are ignored). - Invocations to "expensive"
turtle
methods (soturtle.forward
but notturtle.select
. Maybe split this into movement and other?)
I'm not entirely sure how we'll display it in the command, as they won't all fit on a screen - possibly stick with default timings for now, and add an additional argument to track dump. Something like:
[tasks|total|average|max|fs|peripheral]
.Dumping for Prometheus should be easy, as we can just export it the same way as any other value.
- Invocations to
The Prometheus exporter has been implemented with cc-prometheus instead. Additional requests for that should probably go there.