From f711a84d7df8aea5e239298aaae071a5f8c9f8c4 Mon Sep 17 00:00:00 2001 From: Bartlomiej Plotka Date: Mon, 14 Oct 2024 17:50:05 +0200 Subject: [PATCH] Cut 0.6.0 (#101) Signed-off-by: bwplotka --- CHANGELOG.md | 9 ++++++++- VERSION | 2 +- cmd/avalanche/avalanche.go | 2 +- metrics/serve.go | 9 +++++---- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index daa173a..ba2aa63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ ## unreleased -* [FEATURE] add support for all metric types; deprecated --metric-count flag; --*-interval flags set to 0 means no change; added OpenMetrics support. +## 0.6.0 / 2024-10-14 + +* [CHANGE] (breaking) `--metric-interval` default value is now zero (not 120) #99 +* [CHANGE] (breaking) change `out-of-order` to `--remote-out-of-order` for consistency. #101 +* [CHANGE] Install command for `avalanche` moved to `cmd/avalanche/` from `cmd/` #97 +* [FEATURE] Added `mtypes` binary for metric type calculation against targets #97 +* [FEATURE] `--remote-requests-count` value -1 now makes remote-write send requests indefinitely #90 +* [FEATURE] add support for all metric types; deprecated --metric-count flag; --*-interval flags set to 0 means no change; added OpenMetrics support #80 #101 ## 0.5.0 / 2024-09-15 diff --git a/VERSION b/VERSION index 1d0ba9e..a918a2a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.0 +0.6.0 diff --git a/cmd/avalanche/avalanche.go b/cmd/avalanche/avalanche.go index d669905..84bd593 100644 --- a/cmd/avalanche/avalanche.go +++ b/cmd/avalanche/avalanche.go @@ -78,7 +78,7 @@ func main() { tlsClientInsecure := kingpin.Flag("tls-client-insecure", "Skip certificate check on tls connection").Default("false").Bool() remoteTenantHeader := kingpin.Flag("remote-tenant-header", "Tenant ID to include in remote_write send. The default, is the default tenant header expected by Cortex.").Default("X-Scope-OrgID").String() // TODO(bwplotka): Make this a non-bool flag (e.g. out-of-order-min-time). - outOfOrder := kingpin.Flag("out-of-order", "Enable out-of-order timestamps in remote write requests").Default("true").Bool() + outOfOrder := kingpin.Flag("remote-out-of-order", "Enable out-of-order timestamps in remote write requests").Default("true").Bool() kingpin.Parse() if err := cfg.Validate(); err != nil { diff --git a/metrics/serve.go b/metrics/serve.go index 5731918..6f3a3d6 100644 --- a/metrics/serve.go +++ b/metrics/serve.go @@ -99,12 +99,13 @@ func NewConfigFromFlags(flagReg func(name, help string) *kingpin.FlagClause) *Co cfg := &Config{} flagReg("metric-count", "Number of gauge metrics to serve. DEPRECATED use --gauge-metric-count instead").Default("0"). IntVar(&cfg.MetricCount) - // 500 in total by default, just a healthy distribution of types. - flagReg("gauge-metric-count", "Number of gauge metrics to serve.").Default("200"). + // NOTE: By default avalanche creates 500 gauges, to keep old behaviour. We could break compatibility, + // but it's less surprising to ask users to adjust and add more types themselves. + flagReg("gauge-metric-count", "Number of gauge metrics to serve.").Default("500"). IntVar(&cfg.GaugeMetricCount) - flagReg("counter-metric-count", "Number of counter metrics to serve.").Default("200"). + flagReg("counter-metric-count", "Number of counter metrics to serve.").Default("0"). IntVar(&cfg.CounterMetricCount) - flagReg("histogram-metric-count", "Number of explicit (classic) histogram metrics to serve. Use -histogram-metric-bucket-count to control number of buckets. Note that the overall number of series for a single classic histogram metric is equal to 2 (count and sum) + + 1 (+Inf bucket).").Default("10"). + flagReg("histogram-metric-count", "Number of explicit (classic) histogram metrics to serve. Use -histogram-metric-bucket-count to control number of buckets. Note that the overall number of series for a single classic histogram metric is equal to 2 (count and sum) + + 1 (+Inf bucket).").Default("0"). IntVar(&cfg.HistogramMetricCount) flagReg("histogram-metric-bucket-count", "Number of explicit buckets (classic) histogram metrics, excluding +Inf bucket.").Default("7"). IntVar(&cfg.HistogramBuckets)