Skip to main content

Monitoring Identity Verification APIs with Prometheus & Grafana

Effectively monitoring your identity verification API integrations is crucial for maintaining system health, ensuring a smooth user experience, and preventing fraud.

Monitoring Identity Verification APIs with Prometheus & Grafana

Contents

In this guide

Jump to the part you need.

Optimize PerformanceMonitoring identity verification APIs with Prometheus and Grafana allows developers to track critical metrics like success rates, latency, and error rates, ensuring optimal performance and a seamless user experience.

Enhance Security & Fraud DetectionReal-time monitoring helps identify suspicious activity, such as spikes in failed verifications or unusual traffic patterns, aiding in proactive fraud prevention and security incident response.

Improve Compliance & User ExperienceBy observing key performance indicators, businesses can ensure their verification processes meet regulatory compliance standards and provide a frictionless onboarding journey for legitimate users.

Didit's Data-Driven ApproachDidit's AI-native platform provides rich, structured identity data and integrates seamlessly, offering the granular metrics necessary for effective monitoring with tools like Prometheus and Grafana, alongside its Core KYC and modular architecture.

The Criticality of Monitoring Identity Verification APIs

In today's digital landscape, identity verification is a cornerstone of trust, security, and compliance. Whether you're onboarding new users, preventing fraud, or adhering to regulatory requirements, your identity verification API plays a pivotal role. But simply integrating an API isn't enough; you need to know how it's performing. Without robust monitoring, you're operating in the dark, unable to detect issues like increased latency, declining success rates, or potential fraud attempts. This is where powerful open-source tools like Prometheus and Grafana come into play, offering a comprehensive solution for collecting, storing, and visualizing your API metrics.

For developers, understanding the health and efficiency of identity verification processes is paramount. Slow response times can lead to user abandonment, while high error rates can signal integration problems or even targeted attacks. Monitoring provides the visibility needed to proactively address these challenges, ensuring a reliable and secure identity verification experience. Didit, with its modular and developer-first approach, makes it easy to integrate and monitor, providing the structured identity data necessary for comprehensive oversight.

Key Metrics to Track for Identity Verification APIs

When monitoring identity verification APIs, certain metrics are more indicative of system health and performance than others. Focusing on these will give you the most actionable insights:

  • Success Rate: The percentage of verification attempts that pass successfully. A drop here could indicate issues with document processing (Didit's ID Verification), liveness detection (Didit's Passive & Active Liveness), or face match (Didit's 1:1 Face Match) algorithms, or even a change in user behavior.
  • Failure Rate: The inverse of the success rate, often broken down by specific error codes. High failure rates for particular reasons (e.g., document not legible, liveness check failed) can highlight areas for improvement or potential fraud.
  • Latency/Response Time: How long the API takes to return a result. High latency can severely impact user experience, especially during critical onboarding flows.
  • Throughput/Request Volume: The number of API calls processed over a period. Spikes or drops can indicate traffic changes or integration problems.
  • User Drop-off Rates: Where users abandon the verification flow. This can be critical for optimizing the user journey, especially for multi-step processes orchestrated by Didit's no-code engine.
  • Deepfake/Fraud Detection Metrics: For advanced fraud prevention, track metrics related to deepfake detection (Didit's Liveness) or suspicious activity flagged during AML Screening.
  • Compliance-related Metrics: For specific use cases like age verification, tracking the accuracy and performance of Didit's Age Estimation can be vital for regulatory adherence.

Implementing Prometheus for Metric Collection

Prometheus is an open-source monitoring system with a dimensional data model, flexible query language (PromQL), efficient time series database, and modern alerting approach. To monitor your identity verification API, you'll typically expose metrics from your application in a Prometheus-compatible format, or use an exporter if the API itself doesn't offer direct Prometheus integration.

Here's a simplified approach:

  1. Instrument Your Code: If you're calling the identity verification API directly from your backend, use a Prometheus client library (available for most languages) to instrument your code. For example, increment a counter for didit_verification_total_requests and didit_verification_successful_requests, and record histograms for didit_verification_latency_seconds.
  2. Create a Prometheus Exporter: If the identity verification API is an external service you don't control, you might need to write a custom exporter that periodically queries the API for its status or processes webhooks from the API provider (like Didit's webhooks) and exposes these as Prometheus metrics.
  3. Configure Prometheus: Set up your prometheus.yml to scrape your application's metrics endpoint. Prometheus will then periodically pull these metrics.
# prometheus.yml
scrape_configs:
  - job_name: 'identity-verification-app'
    static_configs:
      - targets: ['your-app-server:9090'] # Your application's /metrics endpoint

Visualizing Data with Grafana

Once Prometheus is collecting your metrics, Grafana steps in to provide beautiful and interactive dashboards. Grafana can query Prometheus directly, allowing you to build rich visualizations that make sense of your identity verification API data.

Steps to set up Grafana for identity verification monitoring:

  1. Install Grafana: Follow Grafana's official documentation to install it on your server.
  2. Add Prometheus as a Data Source: In Grafana, navigate to Configuration > Data Sources and add a new Prometheus data source, pointing it to your Prometheus server's address.
  3. Create Dashboards: Design dashboards with various panels (graphs, singlestats, tables) to display your key metrics. For example:
    • A graph showing rate(didit_verification_successful_requests[5m]) / rate(didit_verification_total_requests[5m]) to visualize the success rate over time.
    • A singlestat panel displaying the current average latency using histogram_quantile(0.95, sum by (le) (rate(didit_verification_latency_seconds_bucket[5m]))).
    • Tables breaking down failure reasons by didit_verification_failed_requests_total{reason="document_unreadable"}.
  4. Set Up Alerts: Grafana allows you to configure alerts based on Prometheus queries. For instance, you can trigger an alert if the success rate drops below a certain threshold for more than 5 minutes, or if latency exceeds an acceptable limit.

This setup provides a real-time, comprehensive view of your identity verification API's performance, enabling quick detection and resolution of issues.

How Didit Helps

Didit is engineered to be an AI-native, developer-first identity platform, making it exceptionally well-suited for integration with robust monitoring solutions like Prometheus and Grafana. Our modular architecture means that each component, from ID Verification (OCR, MRZ, barcodes) and Passive & Active Liveness to 1:1 Face Match & Face Search and AML Screening & Monitoring, can be monitored independently or as part of an orchestrated workflow. Didit's comprehensive API responses and webhook notifications provide the granular data points you need to instrument your system effectively.

With Didit, you gain access to structured identity data that is easily consumable, allowing you to feed precise metrics into your monitoring stack. Our commitment to Core KYC and to pay-per-use pricing with no setup fees means you can start building and monitoring without upfront investment. Whether you're tracking the efficacy of Age Estimation for compliance, the speed of Phone & Email Verification, or the success of NFC Verification, Didit provides the underlying data for informed decision-making. Our platform simplifies the collection of metrics, enabling you to focus on building value while maintaining peak operational visibility and security.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.