kubo/cmd
Oli Evans bbe2f5077e
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>
2019-09-30 15:41:29 +01:00
..
ipfs feat: add ipfs version info to prometheus metrics 2019-09-30 15:41:29 +01:00
ipfswatch chore: fix a bunch of issues caught by golangci-lint 2019-03-29 11:57:45 +00:00
seccat use 2048 keys everywhere else 2019-08-23 14:36:42 -07:00