-
Notifications
You must be signed in to change notification settings - Fork 927
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: - Want to check Armeria version with Grafana FYI: In Prometheus best practices, this kind of metric is described as follows. https://prometheus.io/docs/practices/naming/ > foobar_build_info (for a pseudo-metric that provides metadata about the running binary) e.g. ``` # HELP node_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which node_exporter was built. # TYPE node_exporter_build_info gauge node_exporter_build_info{branch="master",goversion="go1.7.5",revision="840ba5dcc71a084a3bc63cb6063003c1f94435a6",version="0.14.0"} 1 ``` Modifications: - Add Armeria version metric Result: It's exported as follows: Labels: - `commit` - `version` - `repoStatus` ``` # HELP armeria_build_info A metric with a constant '1' value labeled by version and commit hash from which Armeria was built. # TYPE armeria_build_info gauge armeria_build_info{commit="74700d402178e00045b1ca23006f7f6131b2a92d",version="0.94.1-SNAPSHOT",repoStatus="clean"} 1.0 ```
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters