nlewo / comin

GitOps For NixOS Machines
MIT License
487 stars 17 forks source link

Expose a Prometheus `/metrics` HTTP endpoint #9

Open nlewo opened 8 months ago

nlewo commented 8 months ago

Do not hesitate to propose comin metrics you would like to see exposed.

nlewo commented 8 months ago

Users would like to get the last deployed commit id and the last deployment status.

Maybe you could start to expose such kind of metrics:

comin_deployment_info{revision="git-commit-hash", status="succeeded|failed"} = 1

Note, i'm not sure this metric follows Prometheus good practices...

jpds commented 8 months ago

Would be good to have the epoch timestamps of when the remotes were last fetched and when the last config update was applied.

charlot-shaw commented 4 months ago

How long the update took, maybe how much memory it consumed as well. I've had builds fail on low memory environments because they tried to build a large package.