Skip to content

Commit

Permalink
fix: updowncount is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Oct 22, 2024
1 parent c316987 commit 5a2bfc2
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 803 deletions.
15 changes: 3 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ require (
github.com/octohelm/storage v0.0.0-20241014040055-4f454a8d6947
github.com/octohelm/x v0.0.0-20241011014327-0fcf864c84d6
github.com/prometheus/client_golang v1.20.5
github.com/prometheus/prometheus v0.54.1
github.com/robfig/cron/v3 v3.0.1
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
Expand All @@ -40,20 +39,13 @@ require (
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cockroachdb/apd/v3 v3.2.1 // indirect
github.com/dennwc/varint v1.0.0 // indirect
github.com/edsrzf/mmap-go v1.2.0 // indirect
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/juju/ansiterm v1.0.0 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/lunixbochs/vtclean v1.0.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
Expand All @@ -63,13 +55,12 @@ require (
github.com/prometheus/common v0.60.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
go.uber.org/atomic v1.11.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/tools v0.26.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241015192408-796eee8c2d53 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
114 changes: 10 additions & 104 deletions go.sum

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/http/middleware/metrichttp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
}),
)

ServerActiveRequest = metric.NewInt64UpDownCounter(
ServerActiveRequest = metric.NewInt64Counter(
"http.server.active_requests",
metric.WithDescription("Measures the number of concurrent HTTP requests that are currently in-flight"),
)
Expand All @@ -36,6 +36,5 @@ var (
metric.WithAggregation(sdkmetric.AggregationExplicitBucketHistogram{
Boundaries: SizeHistogramBoundaries,
}),
//metric.WithAggregationFunc("increase", 1*time.Minute),
)
)
247 changes: 0 additions & 247 deletions pkg/otel/metric/aggregation/aggregation.go

This file was deleted.

Loading

0 comments on commit 5a2bfc2

Please sign in to comment.