metrics
metrics copied to clipboard
prometheus support?
prometheus is a very popular time-series data storage and querying system. It goes well with dashboards like grafana, making pretty pictures like this:
We've got an OCaml implementation of the prometheus metrics gathering format, thanks to @talex5: https://github.com/mirage/prometheus which I've had success with integrating with the ocaml-qcow code: https://github.com/mirage/ocaml-qcow/issues/99
It would be nice if we could easily integrate with existing prometheus infrastructure (and not have to duplicate it)
yes, I agree. In #28 I developed an influx reporter, which I use in a grafana setup as well:

similar to that, but slightly different would be a prometheus reporter. another useful reporter would be SNMP imho.
@CraigFe or @icristescu would you be interested to look at this feature request?
@MagnusS was interested as well -- in influx, a metrics source (e.g. gc) is a measurement, and tags contain the static (indexed) information such as unikernel name / application name. it is not clear to me how to map this information to prometheus.
I might be worth taking a look at the successor of the prometheus format, which seems to be the de-facto format for metrics in the cloud: https://github.com/OpenObservability/OpenMetrics/blob/master/specification/OpenMetrics.md I would need a new implementation but it shouldn't be hard to verify as conformance tests seem to be available in the repository.