Monitor YouTrack Performance
YouTrack Server 2026.3 runs Hub and YouTrack in one JVM. JVM metrics cover both applications. During startup, unavailable application routes return 503 with Retry-After. A listening port alone does not mean the applications are ready.
YouTrack provides performance metrics that help you monitor the load and health of your site. Continuous monitoring helps you spot changes in these metrics and investigate unusual behavior before it affects users. If a problem does occur, graphs that show metric history can help JetBrains Support troubleshoot the problem and identify when the behavior changed.
For YouTrack Server, you can collect Java Management Extensions (JMX) metrics with Prometheus and jmx_exporter, then visualize the collected data in a Grafana dashboard.

This solution lets you monitor the following data over time:
Application-level metrics for YouTrack activity, version information, and storage usage.
Database performance metrics for the Xodus environment, including transaction rates and disk usage.
JVM statistics for heap and off-heap memory, garbage collection, thread counts, loaded classes, and file descriptors.
Host resource metrics such as process CPU load relative to the host system.
Prometheus scrapes YouTrack metrics on a regular schedule and stores the collected values in your monitoring system.
You can also view metrics in the user interface when you need a current snapshot, or collect telemetry data programmatically with the REST API when you want to store metric values over time.
Before You Start
To collect metrics with Prometheus and
jmx_exporter, you need access to the server host or Docker container where YouTrack Server runs, permission to change JVM options, and the ability to restart YouTrack.Make sure the Prometheus server can reach the port that
jmx_exporteruses to expose metrics. Restrict access to this port so it is only available to trusted monitoring systems.
Collect Metrics with Prometheus and jmx_exporter
Prometheus can collect YouTrack Server metrics from the jmx_exporter Java agent. The Java agent runs in the YouTrack JVM, collects JMX MBean values, and exposes them in Prometheus format on an HTTP endpoint.
To expose YouTrack Server metrics with jmx_exporter:
Download the
jmx_prometheus_javaagentJAR file from the Prometheus JMX Exporter artifacts page.Save the JAR file and an exporter configuration file in a location that is readable by the YouTrack service.
For Docker installations, you can store both files in a host directory that is mapped to
/opt/youtrack/prometheusinside the container. The examples on this page assume the following paths inside the container:/opt/youtrack/prometheus/jmx_prometheus_javaagent.jar/opt/youtrack/prometheus/jmx_exporter.yml
Add the minimal configuration to the
jmx_exporter.ymlfile:--- startDelaySeconds: 10 lowercaseOutputName: false lowercaseOutputLabelNames: false whitelistObjectNames: # JVM - "java.lang:type=Runtime" - "java.lang:type=OperatingSystem" # Xodus - "jetbrains.exodus.env: type=EnvironmentConfig,*" - "jetbrains.exodus.env: type=EnvironmentStatistics,*" - "jetbrains.exodus.entitystore: type=EntityStoreStatistics,*" # YouTrack - "jetbrains.youtrack:type=*,name=UserSessions" - "jetbrains.youtrack:type=*,name=HubIntegration" - "jetbrains.youtrack:type=*,name=NotificationsSender" - "jetbrains.youtrack:type=*,name=JobProcessorsTelemetry" - "jetbrains.youtrack:type=*,name=ZendeskIntegration" - "jetbrains.youtrack:type=*,name=SemanticSearchMetrics" - "jetbrains.youtrack:type=*,name=GrazieIntegration" - "jetbrains.youtrack:type=*,name=Issues" - "jetbrains.youtrack:type=*,name=Articles" - "jetbrains.youtrack:type=JobProcessor,*" - "jetbrains.youtrack:type=JobThreadPool,*" - "jetbrains.youtrack:type=Workflow,*" - "jetbrains.youtrack:type=TextIndex,*" - "jetbrains.youtrack:type=Maintenance,name=Global" rules: - pattern: 'java.lang<type=Runtime><>Uptime:' name: process_uptime help: Total time elapsed since process start in milliseconds type: COUNTER - pattern: 'java.lang<type=OperatingSystem><>ProcessCpuLoad:' name: process_cpu_load help: Current process cpu usage share type: GAUGE - pattern: 'jetbrains.exodus.env<\s*type=EnvironmentConfig,\s*location=(.*)><>(EnvIsReadonly|GcEnabled|GcMinUtilization):' name: youtrack_$2 labels: path: $1 help: Xodus environment state - pattern: 'jetbrains.exodus.env<\s*type=EnvironmentStatistics,\s*location=(.*)><>(\w+):' name: youtrack_$2 labels: path: $1 help: Xodus environment metrics - pattern: 'jetbrains.exodus.entitystore<\s*type=EntityStoreStatistics,\s*location=(.*),\s*name=teamsysstore><>(\w+):' name: youtrack_$2 labels: path: $1 help: Xodus entity store metrics - pattern: 'jetbrains.youtrack<type=Maintenance,\s*name=Global><>(\w+):\s*([\.\w]+)' name: youtrack_version_info labels: $1: $2 value: 1.0 type: GAUGE help: Application version info # Background jobs metrics flatten out by type and attribute, name as label - pattern: 'jetbrains.youtrack<type=(JobProcessor|JobThreadPool),\s*name=(\w+)><>(\w+):' name: youtrack_$1_$3 labels: name: $2 - pattern: 'jetbrains.youtrack<type=Workflow,\s*name=(\w+),\s*script=([\w_\-\/@]+)><>(TotalDuration):\s*([0-9][0-9][0-9][0-9].*)' name: youtrack_Workflow_$1_$3 help: Workflow JS metrics labels: script: $2 value: $4 - pattern: 'jetbrains.youtrack<type=Workflow,\s*name=(\w+),\s*script=([\w_\-\/@]+)><>(TotalCount):\s*([0-9][0-9].*)' name: youtrack_Workflow_$1_$3 help: Workflow JS metrics labels: script: $2 value: $4 - pattern: 'jetbrains.youtrack<type=Workflow,\s*name=(\w+),\s*script=([\w_\-\/@]+)><>(FailedCount):\s*([1-9].*)' name: youtrack_Workflow_$1_$3 help: Workflow JS metrics labels: script: $2 value: $4 - pattern: 'jetbrains.youtrack<type=TextIndex,\s*name=\w+><>(\w+):' name: youtrack_TextIndex_$1 help: Text index metrics # Generic pattern - pattern: 'jetbrains.youtrack<type=\w+,\s*name=(\w+)><>(\w+):' name: youtrack_$1_$2You can later replace this configuration with a stricter rule set that only exports the metrics you want Prometheus to collect.
Stop YouTrack Server.
On Linux, allow sufficient time for shutdown. For Windows stop limits, see Stop a Docker Container.
docker stop -t 300 <containerId>Add the
jmx_exporterJava agent to the YouTrack JVM options.The following example exposes metrics on port
9404:-javaagent:/opt/youtrack/prometheus/jmx_prometheus_javaagent.jar=9404:/opt/youtrack/prometheus/jmx_exporter.ymlFor more information about setting JVM options, see Configure JVM Options.
Make the exporter port reachable from Prometheus.
For Docker installations, publish the exporter port when you run the YouTrack container. Mount the directory that contains the
jmx_prometheus_javaagentJAR file and thejmx_exporter.ymlfile to/opt/youtrack/prometheus. For example, add the following options to thedocker runcommand:-v <path to directory with prometheus files>:/opt/youtrack/prometheus \ -p 9404:9404If the existing container was created without this port mapping, recreate the container with the same data, configuration, logs, and backups volumes, then add the exporter port mapping. For more information about running YouTrack in Docker, see Start YouTrack with a Docker Container.
For non-Docker installations, allow incoming connections to the exporter port only from your Prometheus server or trusted monitoring network.
Start YouTrack Server.
Check that the metrics endpoint is available:
curl http://<youtrack-host>:9404/metricsIf YouTrack does not start or the endpoint is unavailable, check the YouTrack logs for errors related to the Java agent path, exporter port, or YAML configuration.
Docker Configuration Example
If you run YouTrack Server in Docker, mount the directory that contains the jmx_prometheus_javaagent JAR file and jmx_exporter.yml to /opt/youtrack/prometheus, then publish the metrics port.
Scrape Metrics with Prometheus
After jmx_exporter exposes metrics from YouTrack Server, add the endpoint to your Prometheus configuration.
If you plan to use a Grafana dashboard, configure labels that let the dashboard filter metrics by Prometheus server and YouTrack instance.
Then add a scrape configuration for the jmx_exporter endpoint:
If your installation has many workflow scripts, the metrics endpoint can return thousands of samples. Set sample_limit high enough for the number of samples returned by http://<youtrack-host>:9404/metrics. If the limit is too low, Prometheus cannot scrape the full response.
Reload or restart Prometheus after updating the configuration. Prometheus starts collecting metrics from the YouTrack Server JVM on the next scrape interval.
Connect Alertmanager to Prometheus
You can manage alerts for YouTrack Server metrics using Prometheus Alertmanager. To receive notifications about current issues displayed on the dashboard, configure the Prometheus Alertmanager endpoint:
Next, configure Prometheus to load alert rule files:
Choose the appropriate platform as a receiver of notifications in the Alertmanager configuration alertmanager.yml, for example Slack or email.
YouTrack Alert Rule Template
An alert rule is a predefined condition that checks system metrics and can trigger a notification when a threshold or event is detected. Use the following structure to adapt or create rules for metrics exported by the YouTrack JMX exporter.
If you run Prometheus in Docker, mount the directory that stores alert rule files to /etc/prometheus/rules in the Prometheus container. Prometheus loads every *.yml file that matches the rule_files pattern in its configuration.
Define alerts using the Prometheus alerting rule and recording rule formats. Link each alert rule to its runbook with the runbook_url annotation and to the corresponding Grafana dashboard panel with the dashboard_url annotation.
Alert Notification Pipeline
An alert rule only describes a condition. YouTrack itself does not send notifications. Notifications are the result of a pipeline of four independent components, and each component is configured in its own file.
The following files configure each stage of the alert notification pipeline:
Step | Component | Configuration file |
|---|---|---|
Metrics are exported | YouTrack JMX exporter |
|
Metrics are collected and rules are evaluated | Prometheus |
|
Conditions, severities, and message text are defined | Alert rules |
|
Routing, grouping, and who is notified are configured | Alertmanager |
|
YouTrack Runbook Template
A runbook is a detailed guide for resolving a system alert. Each runbook is assigned a title, linked to the relevant alert rule, and divided into four sections.
Create a new runbook as a <runbook_name>.md file in your runbooks directory, then link each alert rule to the relevant runbook with the runbook_url annotation.
Runbook section | Content |
|---|---|
Meaning | State what the metric measures, its unit, and the alert condition. Do not invent a threshold that is not defined in the repository. |
Impact | Describe the direct user or service impact. |
Diagnosis | Include only commands needed to distinguish the likely causes, with any permission requirements or production-impact warnings. |
Mitigation | List evidence-based recovery actions. Clearly identify temporary measures such as restarting the process. |
The following example shows how to structure a runbook for a memory-related alert.
Grafana JMX Exporter Dashboard Overview
The JMX Exporter dashboard gives administrators a centralized view of YouTrack Server health, performance, and resource usage. It is designed to help you monitor the internal state of the YouTrack application and identify bottlenecks, resource exhaustion, or unusual behavior patterns.

The dashboard combines several layers of monitoring data:
Application-level metrics for YouTrack activity, version information, and storage usage.
Database performance metrics for the Xodus environment, including transaction rates and disk usage.
JVM statistics for heap and off-heap memory, garbage collection, thread counts, loaded classes, and file descriptors.
Host resource metrics such as process CPU load relative to the host system.
The monitoring data follows the same flow as the Prometheus setup described in the section above. The jmx_prometheus_javaagent runs inside the YouTrack JVM, reads MBeans from the platform MBean server, and exposes the collected values as Prometheus-compatible metrics on the /metrics endpoint. Prometheus scrapes this endpoint on the configured schedule, and Grafana uses Prometheus as the data source for the dashboard.
The published dashboard is generated with the Grafana Foundation SDK.
Grafana Dashboard Key Metrics
The dashboard is organized into functional rows that group related YouTrack, Xodus, JVM, and host metrics.
Dashboard area | Key metrics |
|---|---|
App Overview | Uptime, active users, database and text index size, and YouTrack version information. |
Application Activity and Performance | User activity, live updates, disk usage history, Xodus transaction rates, cache hit-and-miss rates, cache job queue status, and Grazie integration performance. |
JVM Internals | Heap memory usage, garbage collection count and duration, off-heap and native memory usage, thread counts, loaded and unloaded classes, open file descriptors, and network sockets. |
Host Metrics | Process CPU load relative to the host system. |
Workflow Dashboards
Workflow dashboards give you a focused view of performance and reliability metrics for YouTrack workflows. They help you identify unusual workflow behavior, find the script that caused it, and inspect details for the selected script.
The workflow dashboards include:
Dashboard | Description |
|---|---|
Shows per-script performance and reliability metrics for YouTrack workflows, including total and average execution duration, total execution count, and failed execution count for each workflow script type. | |
Lets you drill down into a single workflow script. When you select a workflow script, each panel is filtered to show metrics for that script. | |
Aggregates the health of workflow script types across all scripts and compares current values with values from the same period one to three weeks earlier. |
Workflow dashboards report metrics for the following script types:
Script type | Description |
|---|---|
Rule | Actions that run when a workflow rule is triggered. |
Rule Guard | Conditions that determine whether a workflow rule runs. |
On Schedule Full | Complete executions of on-schedule rules that run in the background. |
When you investigate workflow performance, use the dashboards in the following order:
To investigate workflow performance:
Open Workflow Health to check whether anything unusual has happened.
Open Workflow Overview to identify the workflow script that caused the change.
Open Workflow Details to inspect metrics for the selected script.
You can click a script name in any table on the Workflow Overview dashboard to open the Workflow Details dashboard with the same time range and variable values.
Each workflow script type provides the following cumulative metrics per script:
Metric | Description |
|---|---|
Total Duration | Total execution time, in milliseconds. |
Total Count | Number of executions. |
Failed Count | Number of executions that failed because of unexpected errors. |
Configure the Grafana Data Source
Before you import the dashboards, make sure Grafana has a Prometheus data source that points to the Prometheus server that scrapes YouTrack metrics.
If you provision Grafana from files, create the data source configuration at grafana/provisioning/datasources/prometheus.yml:
If you add the data source in the Grafana user interface, set the data source type to Prometheus and use the URL for your Prometheus server.
Set the Grafana data source Scrape interval option to a value that matches your metrics storage. For Prometheus and Thanos, use a value that is two to three times the Prometheus scrape_interval, for example, 45s when Prometheus scrapes every 15s. For VictoriaMetrics, you can use the same value as the Prometheus scrape_interval.
YouTrack dashboards use the $__interval variable. If dashboard panels return sparse or incomplete data with Prometheus or Thanos, increase the data source scrape interval or use the $__rate_interval workaround where appropriate.
Import Dashboards into Grafana
After Prometheus starts collecting metrics from YouTrack Server, you can import the YouTrack dashboards into Grafana. These dashboards visualize the metrics that Prometheus collects from the jmx_exporter endpoint.
Dashboard | Dashboard ID |
|---|---|
| |
| |
| |
|
To import a YouTrack dashboard into Grafana:
Open Grafana.
In the main menu, select Dashboards.
Click New, then select Import dashboard.
In the import field, enter the dashboard ID or paste the dashboard URL.
Click Load.
Select the Prometheus data source that scrapes the YouTrack metrics endpoint.
Click Import.
If a dashboard opens without data, check that Prometheus can scrape http://<youtrack-host>:9404/metrics, then make sure the dashboard uses the same Prometheus data source.
To manage Grafana dashboards as code, use the Grafana Foundation SDK to define dashboards and generate the JSON files that Grafana imports. This approach lets you keep dashboards in version control and automate updates. For more information, see the Grafana Foundation SDK documentation.
Collect Metrics with the REST API
Use the REST API when you want a monitoring tool or script to poll YouTrack and save metric values over time. The telemetry endpoint returns JSON and only includes the fields you request.
The resource path is /api/admin/telemetry. The list of returned attributes depends on whether you use YouTrack Server or YouTrack Cloud. For attributes that are not supported in your edition, YouTrack returns null.
To collect performance metrics with the REST API:
Generate a permanent token for a user account that has the Low-level Admin Read permission.
Choose the telemetry fields that you want to collect. Common fields for performance monitoring include
databaseSize,fullDatabaseSize,textIndexSize,requestsPerSecond,transactionsPerSecond,pendingAsyncJobs,onlineUsers(users),uptime, andstartedTime.Send a
GETrequest to<youtrack-base-url>/api/admin/telemetrywith the selected fields in thefieldsquery parameter and the token in theAuthorizationheader.Configure your monitoring tool to repeat the request on the schedule that matches your monitoring needs.
Replace youtrack.example.com with the base URL for your installation.
A successful request returns a JSON object with the requested fields.
For the complete list of telemetry fields and their data types, see the REST API reference for telemetry data.
Collect Metrics from the User Interface
Use the Server Metrics page when you need to review the current values manually, for example, while troubleshooting a slow site or collecting information for a support request.
To view performance metrics in YouTrack:
Open the
Administration menu and select .
Scroll to the bottom of the Server Configuration tab.
In the Server Metrics section, click View server metrics.
Review the values on the Server Metrics page and record the metrics that are relevant to your investigation.
For detailed descriptions of the metrics shown on this page, see Server Metrics.