Skip to content

Commit

Permalink
Merge pull request #878 from iRevive/docs/metrics
Browse files Browse the repository at this point in the history
docs: add Grafana dashboard link
  • Loading branch information
iRevive authored Dec 31, 2024
2 parents f2d0850 + ab127e3 commit 26ff053
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Binary file added docs/instrumentation/grafana_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/instrumentation/metrics-cats-effect-io-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,13 @@ object Main extends IOApp.Simple {

@:@

## Grafana dashboard

You can use a Grafana [dashboard][grafana-dashboard] to visualize collected metrics.

@:image(grafana_dashboard.png) {
alt = Grafana Dashboard
}

## Customization

Expand Down Expand Up @@ -571,3 +578,5 @@ val config: IORuntimeMetrics.Config = {

IORuntimeMetrics.register[IO](runtime.metrics, config)
```

[grafana-dashboard]: https://grafana.com/grafana/dashboards/21487-cats-effect-runtime-metrics/
2 changes: 1 addition & 1 deletion docs/oteljava/tracing-context-propagation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import org.typelevel.otel4s.trace.Tracer
object Main extends IOApp.Simple {
def program(tracer: Tracer[IO]): IO[Unit] =
tracer.span("test").use { span => // start 'test' span using otel4s
println(s"jctx: ${JSpan.current().getSpanContext}") // get a span from a ThreadLocal var
println(s"jctx: ${JSpan.current().getSpanContext}") // get a span from a ThreadLocal
IO.println(s"otel4s: ${span.context}")
}

Expand Down

0 comments on commit 26ff053

Please sign in to comment.