diff --git a/CHANGELOG.md b/CHANGELOG.md index 68a6cb0..ac29fdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). ## [Unreleased] + + +## [0.2.0] - 2024-04-19 ### Added - 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 - 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.0]: https://gitlab.com/adoralaura/ntppool-exporter/releases/tag/0.1.0 diff --git a/VERSION b/VERSION deleted file mode 100644 index 17e51c3..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.1.1 diff --git a/main.go b/main.go index 07b6f58..7a804bc 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,8 @@ import ( ) const ( - namespace = "ntppool" + namespace = "ntppool" + appVersion = "0.2.0" ) var ( @@ -89,6 +90,7 @@ func handler(w http.ResponseWriter, r *http.Request, logger log.Logger, exporter } func main() { + version.Version = appVersion promlogConfig := &promlog.Config{} flag.AddFlags(kingpin.CommandLine, promlogConfig) kingpin.Version(version.Print("ntppool_exporter")) @@ -98,7 +100,7 @@ func main() { 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()) exporterMetrics := collector.Metrics{