Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ipfs version info to prometheus metrics #6688

Merged
merged 1 commit into from
Sep 30, 2019

Commits on Sep 30, 2019

  1. 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>
    olizilla committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    bbe2f50 View commit details
    Browse the repository at this point in the history