nlewo / comin

GitOps For NixOS Machines
MIT License
241 stars 11 forks source link

Expose a Prometheus `/metrics` HTTP endpoint #9

Open nlewo opened 4 months ago

nlewo commented 4 months ago

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

nlewo commented 4 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 3 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.