• 0 Votes
    2 Posts
    407 Views
    F
    There are several ways to monitor your hosted FusionAuth deployment: Basic Health Monitoring You can use the System Status API to get basic information about your deployment, including whether it is healthy. For dedicated health checks (particularly useful for load balancers), there's also the Health API available since version 1.51.1. Detailed Metrics with Prometheus For more detailed performance monitoring, you can configure Prometheus to retrieve system metrics from FusionAuth. FusionAuth exposes: JVM-level gauges: memory usage, garbage collection stats, thread counts, class loading, buffer pools Request timers: endpoint latency and request counts (e.g., prime_mvc_* metrics) You can then set up Prometheus dashboards to visualize this data and track CPU, memory, and other performance metrics over time. See the FusionAuth Prometheus documentation for configuration details and the Prometheus Metrics API for endpoint information. Important Considerations for Hosted Deployments If your hosted FusionAuth deployment has multiple compute nodes, be aware that both the Status API and Prometheus metrics endpoints return data per-node. Since requests are round-robined across nodes, successive API calls may hit different nodes and return inconsistent data. This makes direct polling less reliable for multi-node deployments. Additional Monitoring Options Beyond Prometheus, FusionAuth can integrate with other monitoring tools: Datadog: Use the Datadog Agent with OpenMetrics integration CloudWatch: Monitor FusionAuth metrics in AWS environments Grafana: Visualize Prometheus data with pre-built dashboards You can also access: System logs: Available via API (exportable as ZIP files) Audit logs: Track administrative actions via API or webhook Event logs: Debug information for external integrations Login records: Successful login history with timestamps, IPs, and user details Webhooks: Get real-time notifications for specific events Related Documentation Monitoring FusionAuth Overview System Status API System Health API Prometheus Integration Guide Prometheus Metrics API Datadog Integration CloudWatch Integration
  • FusionAuth + datadog

    Moved Q&A datadog monitoring
    2
    0 Votes
    2 Posts
    2k Views
    danD
    Here was some feedback from other users: I have a k8s cron job that queries the FA eventLog API and sends them as DataDog events, then depending on severity a DataDog Event monitor will fire. Other than that, I feel rather blind. we havent been able to upgrade quite yet, but 1.26 added a prometheus endpoint right now we use the datadog jmx integration to get some stats, and we also do things like http monitoring Here's the prometheus endpoint docs: https://fusionauth.io/docs/v1/tech/tutorials/prometheus/
  • Status page to monitor?

    Moved Q&A monitoring status page
    2
    0 Votes
    2 Posts
    3k Views
    danD
    You can use https://yourservername.fusionauth.io/api/status if you like. That endpoint will optionally return JSON you can parse if you provide an API key, otherwise just an http status code. More details here: https://fusionauth.io/docs/v1/tech/apis/system/#retrieve-system-status
  • Alerting capability

    Moved Q&A alerting monitoring pagerduty opsgenie
    2
    0 Votes
    2 Posts
    2k Views
    danD
    There is not any way to push events from FusionAuth to a system like pagerduty, except those outlined by the webhook docs which are less system level and more app level. If you are monitoring using systems like opsgenie, you can pull data from several different sources: There's the system status endpoint, which can be polled. Before 1.19, it was binary (200 is good, anything else is bad) but now with 1.19 there are defined status codes: https://fusionauth.io/docs/v1/tech/apis/system#system-status This is the single best endpoint for a healthcheck. If you want to ingest system logs so they can be searched/scanned, you could set up a job to export the system logs: https://fusionauth.io/docs/v1/tech/apis/system#export-system-logs and process them (that that doesn't work for container based systems, see the docs for more). These logs are what you'd see if you were running fusionauth in docker and looking at STDOUT (so system level stuff). You can write your own scripts against the API to test for certain use cases ("Can this user login?", "Can this user register?") There's an event log which captures, well, system events, which can be accessed via the API: https://fusionauth.io/docs/v1/tech/apis/event-logs There is also the audit log, which is probably not what you are looking for, because that is less system level and more 'in app' events, with admin level actions being written (see also this issue). But it can be read via API: https://fusionauth.io/docs/v1/tech/apis/audit-logs If you are running in Fargate, k8s or another container based system, your best option is to write something to pump the logs through a stream which you can then process for interesting/problematic events.