Skip to content

Commit 63bfe1b

Browse files
authored
Merge pull request #2517 from keboola/devin/PSGO-57-1769164125-remove-redundant-otel-http-metrics
fix(telemetry): remove redundant OpenTelemetry HTTP server metrics
2 parents 7ae90f0 + 891d766 commit 63bfe1b

10 files changed

Lines changed: 98 additions & 1293 deletions

File tree

docs/telemetry.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -43,38 +43,6 @@ the [prometheus.ServeMetrics](../internal/pkg/telemetry/metric/prometheus/promet
4343
|-----------------------|--------------------------------------------------------------------------------------------------|
4444
| `http.server.request` | HTTP request. Attributes `keboola.*` contain info about stack, project and token, if applicable. |
4545

46-
### Metrics
47-
48-
| Span | Description |
49-
|----------------------------------------------|---------------------------|
50-
| `keboola.go.http.server.duration` | Duration of HTTP request. |
51-
| `keboola.go.http.server.request.size.count` | Request content length. |
52-
| `keboola.go.http.server.response.size.count` | Response content length. |
53-
54-
#### Apdex
55-
56-
[Apdex](https://en.wikipedia.org/wiki/Apdex) metric measure user satisfaction as a value `0.0-1.0`:
57-
58-
- Parameter `T` defines threshold for `satisfied` request duration in `ms`.
59-
- `4T` is threshold for `tolerating` request duration.
60-
- Longer durations are considered as `frustrated`, as well as requests with a status code `>= 500` (server errors).
61-
62-
Apdex is reported cumulatively from [Go code](../internal/pkg/service/common/httpserver/middleware/otel_apdex.go).
63-
The following metrics are generated:
64-
65-
| Span | Description |
66-
|-----------------------------------------------|---------------------------------------|
67-
| `keboola_go_http_server_apdex_count.count` | Apdex - total count of requests. |
68-
| `keboola_go_http_server_apdex_500_sum.count` | Apdex sum for: T=`500ms` 4T=`2000ms` |
69-
| `keboola_go_http_server_apdex_1000_sum.count` | Apdex sum for: T=`1000ms` 4T=`4000ms` |
70-
| `keboola_go_http_server_apdex_2000_sum.count` | Apdex sum for: T=`2000ms` 4T=`8000ms` |
71-
72-
Final Apdex value is calculated as follows:
73-
74-
```
75-
keboola_go_http_server_apdex_<T>_sum.count / keboola_go_http_server_apdex_count.count
76-
```
77-
7846
## HTTP Client
7947

8048
Client telemetry is implemented in the [keboola-sdk-go](https://github.com/keboola/keboola-sdk-go) repository, in

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ require (
7070
github.com/spf13/viper v1.21.0
7171
github.com/stretchr/testify v1.11.1
7272
github.com/umisama/go-regexpcache v0.0.0-20150417035358-2444a542492f
73-
github.com/urfave/negroni/v3 v3.1.1
7473
github.com/valyala/fasthttp v1.68.0
7574
github.com/valyala/fastjson v1.6.4
7675
github.com/writeas/go-strip-markdown/v2 v2.1.1

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,6 @@ github.com/umisama/go-regexpcache v0.0.0-20150417035358-2444a542492f h1:haUDHoDE
901901
github.com/umisama/go-regexpcache v0.0.0-20150417035358-2444a542492f/go.mod h1:YTm0hcnGJEKJOLVM4x0PvO8p43r7DANkXRNiONPfWIM=
902902
github.com/urfave/cli/v2 v2.27.7 h1:bH59vdhbjLv3LAvIu6gd0usJHgoTTPhCFib8qqOwXYU=
903903
github.com/urfave/cli/v2 v2.27.7/go.mod h1:CyNAG/xg+iAOg0N4MPGZqVmv2rCoP267496AOXUZjA4=
904-
github.com/urfave/negroni/v3 v3.1.1 h1:6MS4nG9Jk/UuCACaUlNXCbiKa0ywF9LXz5dGu09v8hw=
905-
github.com/urfave/negroni/v3 v3.1.1/go.mod h1:jWvnX03kcSjDBl/ShB0iHvx5uOs7mAzZXW+JvJ5XYAs=
906904
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
907905
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
908906
github.com/valyala/fasthttp v1.68.0 h1:v12Nx16iepr8r9ySOwqI+5RBJ/DqTxhOy1HrHoDFnok=

0 commit comments

Comments
 (0)