Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ipfs version info to prometheus metrics
Adds `ipfs_info` prometheus metric with version and commit info ```prometheus ipfs_info{commit="9ea7c6a11-dirty",version="0.5.0-dev"} 1 ``` This follows the same pattern as go and other systems, adding a gauge metric that is set to 1, with the version info addeds as labels. This is a common pattern for prometheus. It lets operators merge version info into other prometheus metrics by multiplying it with the other stat, as described in https://www.robustperception.io/exposing-the-software-version-to-prometheus For example, we already expose the go version info as ```prometheus go_info{version="go1.12.9"} 1 ``` License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
- Loading branch information