This commit is contained in:
parent
0887112c44
commit
96121f3487
3 changed files with 9 additions and 4 deletions
|
@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
|
||||||
|
## [0.2.0] - 2024-04-19
|
||||||
### Added
|
### Added
|
||||||
- added in-memory cache to reduce API strain (#4)
|
- added in-memory cache to reduce API strain (#4)
|
||||||
|
|
||||||
|
@ -30,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- MAINTAINERS file
|
- MAINTAINERS file
|
||||||
- minimal implementation of the exporter
|
- minimal implementation of the exporter
|
||||||
|
|
||||||
[unreleased]: https://gitlab.com/adoralaura/ntppool-exporter/compare/0.1.1...HEAD
|
[unreleased]: https://gitlab.com/adoralaura/ntppool-exporter/compare/0.2.0...HEAD
|
||||||
|
[0.2.0]: https://gitlab.com/adoralaura/ntppool-exporter/compare/0.1.1...0.2.0
|
||||||
[0.1.1]: https://gitlab.com/adoralaura/ntppool-exporter/compare/0.1.0...0.1.1
|
[0.1.1]: https://gitlab.com/adoralaura/ntppool-exporter/compare/0.1.0...0.1.1
|
||||||
[0.1.0]: https://gitlab.com/adoralaura/ntppool-exporter/releases/tag/0.1.0
|
[0.1.0]: https://gitlab.com/adoralaura/ntppool-exporter/releases/tag/0.1.0
|
||||||
|
|
1
VERSION
1
VERSION
|
@ -1 +0,0 @@
|
||||||
0.1.1
|
|
6
main.go
6
main.go
|
@ -38,7 +38,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
namespace = "ntppool"
|
namespace = "ntppool"
|
||||||
|
appVersion = "0.2.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -89,6 +90,7 @@ func handler(w http.ResponseWriter, r *http.Request, logger log.Logger, exporter
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
version.Version = appVersion
|
||||||
promlogConfig := &promlog.Config{}
|
promlogConfig := &promlog.Config{}
|
||||||
flag.AddFlags(kingpin.CommandLine, promlogConfig)
|
flag.AddFlags(kingpin.CommandLine, promlogConfig)
|
||||||
kingpin.Version(version.Print("ntppool_exporter"))
|
kingpin.Version(version.Print("ntppool_exporter"))
|
||||||
|
@ -98,7 +100,7 @@ func main() {
|
||||||
|
|
||||||
cache.GlobalScoreCache = cache.NewScoreCache()
|
cache.GlobalScoreCache = cache.NewScoreCache()
|
||||||
|
|
||||||
level.Info(logger).Log("msg", "Starting ntppool_exporter", "version", version.Info())
|
level.Info(logger).Log("msg", "Starting ntppool_exporter", "version", appVersion)
|
||||||
level.Info(logger).Log("build_context", version.BuildContext())
|
level.Info(logger).Log("build_context", version.BuildContext())
|
||||||
|
|
||||||
exporterMetrics := collector.Metrics{
|
exporterMetrics := collector.Metrics{
|
||||||
|
|
Loading…
Reference in a new issue