Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
24 changed files
with
268 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!--- | ||
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
# Instrumentation | ||
|
||
The instrumentation endpoints are running on a separate port (default `3339`) | ||
defined in `application.conf` under the key: `app.instrumentaion-server-config.port` | ||
and can also be set through the environment variable: `KNORA_INSTRUMENTATION_SERVER_PORT`. | ||
|
||
The exposed endpoints are: | ||
- `/metrics` - a metrics endpoint, backed by the ZIO metrics backend exposing metrics in the prometheus format | ||
- `/health` - provides information about the health state, see [Health Endpoint](./health.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!--- | ||
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
# Metrics Endpoint | ||
|
||
The metrics endpoint exposes metrics gathered through the ZIO metrics frontend in the Prometheus | ||
format. Additionally, ZIO runtime and JVM metrics are also exposed. | ||
|
||
## Configuration | ||
|
||
The refresh interval is configured in `application.conf` under the key: `app.instrumentaion-server-config.interval` | ||
which es per default set to `5 seconds`. | ||
|
||
|
||
## Example request | ||
|
||
`GET /metrics` | ||
|
||
|
||
## Example response | ||
|
||
```text | ||
# TYPE jvm_memory_pool_allocated_bytes_total counter | ||
# HELP jvm_memory_pool_allocated_bytes_total Some help | ||
jvm_memory_pool_allocated_bytes_total{pool="G1 Survivor Space"} 4828024.0 1671021037947 | ||
# TYPE jvm_memory_pool_allocated_bytes_total counter | ||
# HELP jvm_memory_pool_allocated_bytes_total Some help | ||
jvm_memory_pool_allocated_bytes_total{pool="G1 Eden Space"} 3.3554432E7 1671021037947 | ||
# TYPE zio_fiber_successes counter | ||
# HELP zio_fiber_successes Some help | ||
zio_fiber_successes 17.0 1671021037947 | ||
# TYPE zio_fiber_lifetimes histogram | ||
# HELP zio_fiber_lifetimes Some help | ||
zio_fiber_lifetimes_bucket{le="1.0"} 17.0 1671021037947 | ||
zio_fiber_lifetimes_bucket{le="2.0"} 17.0 1671021037947 | ||
... | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.