kubo/cmd/ipfs
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
..
dist install.sh: Fix wrong destination path for ipfs binary 2019-06-08 19:21:59 +03:00
util chore: fix linter nits 2019-05-14 09:38:26 -07:00
.gitignore make: rework makefiles for non-recursive make and add sharness coverage 2017-02-12 01:18:40 +01:00
daemon.go feat: add ipfs version info to prometheus metrics 2019-09-30 15:41:29 +01:00
dnsresolve_test.go gx: unrewrite 2019-03-05 18:33:56 +01:00
init.go feat: add ability to use existing config during init 2019-08-25 21:15:17 -04:00
ipfs.go gx: unrewrite 2019-03-05 18:33:56 +01:00
main.go plugins: add support for plugin configs 2019-08-29 17:17:23 -07:00
Rules.mk mk: s/go-build/go-build-relative/ 2019-03-05 18:33:58 +01:00
runmain_test.go make: rework makefiles for non-recursive make and add sharness coverage 2017-02-12 01:18:40 +01:00