CC: Tweaked

CC: Tweaked

57M Downloads

Better computer monitoring

SquidDev opened this issue ยท 1 comments

commented

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 (so fs.open and fs.copy are tracked, but fs.combine, fs.isDir are ignored).
    • Invocations to "expensive" turtle methods (so turtle.forward but not turtle.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.

commented

The Prometheus exporter has been implemented with cc-prometheus instead. Additional requests for that should probably go there.