-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Gathering metrics at development time
* Adds prometheus to existing compose file * Avoids conflicts with current custom metrics configs * Moved otel dev docs to docs/otel.md * Renamed tracing.rs to otel.rs as now it contains metrics signal
- Loading branch information
1 parent
2298076
commit 9f2764d
Showing
14 changed files
with
190 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# OpenTelemetry | ||
|
||
## Sending traces to OpenTelemetry Collector at development time | ||
|
||
Jaeger and OTEL Collector: | ||
|
||
```shell | ||
podman compose -f etc/telemetry/compose.yaml up | ||
``` | ||
|
||
Database: | ||
|
||
```shell | ||
podman compose -f etc/deploy/compose/compose.yaml up | ||
``` | ||
|
||
Trustify with traces: | ||
|
||
```shell | ||
OTEL_TRACES_SAMPLER_ARG=1 OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" cargo run --bin trustd api --db-password trustify --auth-disabled --tracing enabled | ||
``` | ||
|
||
Access Trustify at [localhost:8080](http://localhost:8080) and analyze the traces using the [Jaeger UI](http://localhost:16686/) | ||
|
||
## Gathering metrics at development time | ||
|
||
Prometheus and OTEL Collector: | ||
|
||
```shell | ||
podman compose -f etc/telemetry/compose.yaml up | ||
``` | ||
|
||
Database: | ||
|
||
```shell | ||
podman compose -f etc/deploy/compose/compose.yaml up | ||
``` | ||
|
||
Trustify with metrics: | ||
|
||
```shell | ||
cargo run --bin trustd api --db-password trustify --auth-disabled --metrics enabled | ||
``` | ||
|
||
Access Trustify at [localhost:8080](http://localhost:8080) and analyze the metrics using the [Prometheus UI](http://localhost:9090/) |
Oops, something went wrong.