update version
All checks were successful
ci/woodpecker/push/golang-test Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2024-04-19 12:11:31 +02:00
parent 0887112c44
commit 96121f3487
Signed by: adoralaura
GPG key ID: E2E0F82107536C1B
3 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -1 +0,0 @@
0.1.1

View file

@ -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{