| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This example demonstrates how to use the OpenTelemetry SDK to instrument a simple application using Prometheus as the metric exporter and expose the metrics via HTTP.
These metrics are collected by a Prometheus instance which is configured to scrape metrics via HTTP.
../gradlew shadowJarStart the application and Prometheus via Docker Compose:
docker compose upTo view metrics in Prometheus (e.g. 90th percentile), navigate to:
To fetch application metrics in prometheus format, run:
curl localhost:19090/metricsTo fetch application metrics in OpenMetrics format, which includes exemplars, run:
curl -H 'Accept: application/openmetrics-text; version=1.0.0; charset=utf-8' localhost:19090/metrics| Back | FazBrowse Home | New Git URL |