Commit Graph

52 Commits

Author SHA1 Message Date
mziolekda
8e0b71bb15
clean up test common (#17846)
* move stuff around inside test-common

* move timeout stuff to lapitt, where it is used

* move logging stuff to ledger/error

* move StreamConsumer to libs-scala/grpc-test-utils

* remove dead usages of test-common

* move SimpleHttpServer to a dedicated lib

* format

* final cleanup of the test-common

* add new libraries to maven
2023-11-15 22:36:03 +00:00
mziolekda
b81ee69abe
disentangle ledger api (#17831)
* make testing-utils independent of ledger-api

* remove dead files

* move non ledger-api stuff to libs-scala
2023-11-14 22:44:10 +01:00
Marton Nagy
6933514df5
Switch from Akka to Pekko (#17814)
* Automated renames by bash script

This commit is exclusively contains changes by the bash script.
For the bash script is present at the pull request.

* Manual pekko migration changes

* adapt fully qualified name references
* adapt pekko package declarations
* adapt bazel files with dependency changes
* adapt canton pekko lib shade_rule
* adapt logger configuration declarations
* pin maven dependencies
* revert incorrect changes by script to compatibility module

Workarounds for further TODOs:
* disable http-json-perf and libs-scala/gatling-utils modules to maintain clean pekko dependencies (without akka)
* disable GraphQLSchemaSpec test (sangria library needs to be upgraded)

* Formatting
2023-11-13 23:22:22 +00:00
Thibault Jeandet
7b6b97abe6
Update default histogram buckets for gRPC server latency measurements (#17777)
* Update default histogram buckets for gRPC server latency measurements
2023-11-13 15:34:27 +01:00
Marton Nagy
78cc750714
Scala upgrade to 2.13.11 (#17803) 2023-11-13 09:05:39 +01:00
Remy
6ef062dac9
Revert "Nmarton/pekko rebased (#17789)" (#17796)
This reverts commit d310692d1b.

@remyhaemmerle-da messed up and merged the PR too fast.
2023-11-09 21:23:18 +00:00
Marton Nagy
d310692d1b
Nmarton/pekko rebased (#17789)
* Scala upgrade to 2.13.11
* Switch from akka to pekko
* Also disable gatling based libs to start from a clean stage
2023-11-09 18:17:33 +01:00
Thibault Jeandet
a01e862be5
Remove creation of unnecessary Attributes objects in open telemetry i… (#17526)
* Remove creation of unnecessary Attributes objects in open telemetry instrumentation
2023-10-06 13:09:10 +02:00
Andreas Triantafyllos
96dcb0357e
DatabaseMetrics remove private constructor. (#17502) 2023-09-28 10:06:26 +02:00
Nicu Reut
ad7feaf6a6
Use the cache metrics labels (#17181) 2023-07-27 07:07:10 +00:00
Nicu Reut
209e6ec947
Deprecate non-labeled metrics factories [PLEN-183] (#16441) 2023-03-15 11:09:16 +01:00
Nicu Reut
7246a21520
Use labeled metrics for the CacheMetrics [PLEN-163][PLEN-167] (#16406) 2023-03-02 11:55:37 +01:00
Nicu Reut
196d0b5f75
Add ability to document async gauges [PLEN-176] (#16402) 2023-02-28 14:38:15 +00:00
Nicu Reut
7e87912cd5
Add ability to configure histograms through the config files [PLEN-159] (#16387) 2023-02-28 10:50:26 +00:00
Nicu Reut
80d5425a88
Migrate DatabaseMetrics to use a labeled metrics factory [PLEN-164] (#16396) 2023-02-28 07:15:45 +00:00
Nicu Reut
af4445253f
Instrument the executor services using OpenTelemetry [PLEN-105] (#16328) 2023-02-17 18:14:57 +01:00
mziolekda
1a3980bf89
Separate test-common from the rest of the ledger code (#16307)
* move files

* format

* wrong file

* fix conformance tests

* add readme

* fix compatibility tests

* fix haskell tests
2023-02-14 15:29:13 +00:00
Nicu Reut
a50379179e
Add label support to the metrics tag [PLEN-102] (#16309) 2023-02-14 10:40:10 +01:00
mziolekda
d9974984fd
Remove circular dependency on the //ledger project caused by ledger-resources [DPP-1410] (#16295)
* remove circular dependency on the //ledger project caused by ledger-resources

* format
2023-02-13 08:38:44 +00:00
Nicu Reut
f79da73a28
Handle the removal of registered gauges for the executor service [PLEN-133] (#16246) 2023-02-09 18:29:24 +00:00
Nicu Reut
50701da79b
Use OpenTelemetry metrics for the non-repudiation modules [PLEN-106] (#16271) 2023-02-09 15:20:19 +00:00
Nicu Reut
70c51d6cbe
Safe multi-threaded histograms [PLEN-98] (#16245) 2023-02-07 08:49:09 +01:00
Nicu Reut
a9ff1376f4
Use in-memory metrics for indexer benchmark banner [PLEN-99] (#16218) 2023-02-03 16:16:12 +00:00
Luc Bourlier
313aaad4a6
Common metrics reporter config format [PLEN-91] (#16213)
* Common metrics reporter config format

Fixed the config for metrics reporter for trigger service and oauth
middleware.
They are using a common config definition, as well as the JSON API
service.
The format matches the one used in canton configs.

CHANGELOG_BEGIN
CHANGELOG_END
2023-02-03 09:10:10 +01:00
Nicu Reut
234e7a1fad
[metrics] Improve the gauges API to allow closing a gauge [PLEN-107] (#16208) 2023-02-02 11:51:44 +00:00
Nicu Reut
dca7da1fd8
In memory metrics: Keep track of created metrics [PLEN-98] (#16199) 2023-02-01 16:26:01 +00:00
Nicu Reut
9da7d910b9
[metrics] Allow extension of no-op metrics factory (#16209) 2023-02-01 13:53:19 +00:00
Nicu Reut
b331572aef
Save initial gauge value for the in memory metrics [PLEN-67] (#16198) 2023-02-01 08:53:12 +01:00
Nicu Reut
a87412b68c
Introduce LabeledMetricsFactory trait to mark metrics factories that support labels [PLEN-98] (#16159) 2023-01-26 16:01:37 +00:00
Luc Bourlier
e809344c00
Metrics for node status [PLEN-63] (#16052)
* Metrics for node status [PLEN-63]

CHANGELOG_BEGIN

* Node status metric: daml_health_status

CHANGELOG_END
2023-01-26 12:01:14 +01:00
Nicu Reut
fee45895d8
[metrics] Remove the API allowing us to read the state of a counter [PLEN-97] (#16141) 2023-01-26 09:05:56 +01:00
atriantafyllos-da
4d026f02a1
TraceId in LAPI [DPP-1372]. (#15995)
changelog_begin
changelog_end
2023-01-24 23:10:51 +00:00
Nicu Reut
17596abd1b
Expose opentelemetry jvm metrics alongside dropwizard metrics [PLEN-67] (#16133) 2023-01-24 19:58:20 +01:00
Nicu Reut
85eff2930f
Configure OpenTelemetry using the sdk [PLEN-68] (#16083) 2023-01-24 08:53:25 +01:00
Nicu Reut
f370124518
Rename telemetry to tracing [PLEN-70] (#16073) 2023-01-17 09:22:31 +01:00
Luc Bourlier
8f5b25fc1f
Adds metric around pruning in the participant [PLEN-32] (#15883)
* Move track functions to Tracked

* Adds metric around pruning in the participant [PLEN-32]

CHANGELOG_BEGIN

* Pruning metric: daml_services_pruning_prune

CHANGELOG_END

Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>

Co-authored-by: Luc Bourlier <lb@skyluc.org>
Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>
2023-01-13 16:47:52 +01:00
Nicu Reut
bce74e171e
[metrics] Add application id label to the received events counter [PLEN-70] (#16038)
Co-authored-by: Luc Bourlier <luc.bourlier@digitalasset.com>
2023-01-12 10:54:54 +01:00
Nicu Reut
758deffc4e
Decouple the metrics from the internals of the metrics libraries [PLEN-87] (#15954) 2023-01-10 12:15:19 +01:00
Nicu Reut
a7b7a9af1f
Fix race condition in gauge update [PLEN-86] (#16009) 2023-01-09 09:06:26 +01:00
Nicu Reut
90786f6180
Add no-op metrics factory (#15990) 2023-01-05 19:07:51 +00:00
Gary Verhaegen
151e12b81a
bump copyright (#16002)
This is the result of:

- Updating `./COPY` to say `2023`.
- Running `./dev-env/bin/dade-copyright-headers update .`
2023-01-04 18:21:15 +01:00
atriantafyllos-da
642049616c
Generate doc instances for metrics groupable by name [DPP-1355]. (#15908) 2022-12-16 13:26:11 +00:00
Nicu Reut
c8c5eaa11f
Add metrics to execution services [PLEN-64] (#15861) 2022-12-15 15:34:25 +00:00
Luc Bourlier
9279f610ca
Use counters for non-monotonic metric values (#15870)
Meters should never decrease. Counter can increase and decrease [PLEN-49]

CHANGELOG_BEGIN
CHANGELOG_END
2022-12-14 09:31:05 +01:00
Nicu Reut
25f1254120
Move the metrics API to the observability module [PLEN-35] (#15831) 2022-12-12 09:35:55 +00:00
Luc Bourlier
2e98f29189
Adds description to the HTTP and gRPC endpoint metrics [PLEN-40] (#15711)
* Adds description to the HTTP and gRPC endpoint metrics

CHANGELOG_BEGIN
CHANGELOG_END

* Apply suggestions from code review

* added missing descriptions for gRPC metrics

Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>
2022-11-30 14:04:53 +01:00
Luc Bourlier
ffc31ce371
Tweak on HTTP metrics (#15641)
Alignment with the gRPC metrics.

CHANGELOG_BEGIN
CHANGELOG_END
2022-11-23 09:37:41 +01:00
Luc Bourlier
3728919b66
Enables metrics for trigger-service [PLEN-13] (#15577)
* Adds the standard metrics to the HTTP endpoint

Refactors akka http metrics support to be used by both json-api and trigger-service

CHANGELOG_BEGIN

* Trigger Service - basic and HTTP endpoint metrics

CHANGELOG_END
2022-11-22 16:09:57 +01:00
Luc Bourlier
e24ce7ab4f
Adds labels to the Akka HTTP metrics [PLEN-12] (#15436)
* Adds labels to the Akka HTTP metrics

CHANGELOG_BEGIN
CHANGELOG_END

* code improvements

* A bit of headroom for the latency tests
2022-11-16 11:08:45 +01:00
Nicu Reut
5b958ae9b7
Use the testing metrics instead of opentelemetry testing sdk [PLEN-43] (#15555) 2022-11-14 13:15:21 +00:00