-
Notifications
You must be signed in to change notification settings - Fork 2
Metrics
LinuxChata edited this page Sep 5, 2025
·
1 revision
The Shark.Fido2.Sample application exposes metrics at the /metrics endpoint.
-
Create a
prometheus.ymlfile with the following content:global: scrape_interval: 5s scrape_configs: - job_name: "shark_fido2_sample" scheme: https tls_config: insecure_skip_verify: true static_configs: - targets: ["host.docker.internal:8082"] -
Start the Prometheus server in Docker
docker run -p 9090:9090 -v ./prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus. -
Start the sample application.
-
Open the application at
https://localhost:8082/. -
Interact with the application (e.g., create public key credentials).
-
Open the Prometheus server UI at
http://localhost:9090/ -
Run the following sample query and switch to the Graph tab to view requests per second (RPS) across all endpoints:
sum(rate(http_requests_received_total[1m]))
FIDO® and FIDO2® are trademarks of FIDO Alliance, Inc.