Benefits
Measures and pivots
Create a KPI for a query
Deployment and configuration
SQL Query-Based Insights
SQL Query-Based Insights enable GermainUX to periodically execute a customer-defined SQL query and turn the returned data into real-time business or technical KPIs. Use this capability when the insight you need is stored in a database but is not available through another GermainUX data source.Overview
For example, GermainUX can query a database to monitor:Benefits
SQL Query-Based Insights help organizations:- Convert database records into actionable real-time insights.
- Monitor business conditions that are not exposed through application telemetry.
- Detect failed, delayed, incomplete, or unusual transactions.
- Measure business-process volume, performance, and backlog.
- Identify data-quality and operational issues.
- Analyze database-derived insights alongside user-experience, application, infrastructure, and integration data.
- Notify responsible teams when an important condition is detected.
- Initiate approved diagnostic or corrective actions.
How it works
The GermainUX Engine connects to an authorized database
It executes a configured SQL query at the defined interval
The returned data is mapped to a GermainUX KPI
GermainUX stores and analyzes the resulting facts
Rules, SLAs, dashboards, alerts, reports, or automation can use the insight
Examples


Query results and KPIs
Each query is associated with a GermainUX KPI that defines how its results are stored and analyzed. Depending on the use case, the KPI can represent:Measures and pivots
The columns returned by a query can provide values and dimensions for analyzing the resulting KPI. Measures can include:- Record count
- Transaction duration
- Processing delay
- Backlog size
- Transaction value
- Error count
- Completion rate
- Customer-specific numeric values
- Application
- Environment
- Database
- Business process
- Transaction type
- Status
Show all 11
Show all 11
- Error type
- Customer
- Product
- Region
- Assigned team
Overdue Service Request KPI could be measured by count and processing delay, then segmented by priority, assigned team, request type, and region.
Rules and SLAs
Apply GermainUX rules to categorize, enrich, filter, or correlate the facts generated by a query. Examples include:- Categorize failures using a returned error code.
- Assign a severity according to transaction value.
- Associate a database record with a business process.
- Detect when the result exceeds a defined threshold.
- Correlate the result with related application or integration activity.
- Number of matching records
- Transaction age
- Processing duration
- Backlog size
- Business value
- Time since the last successful update
Configure a Query Monitor
Prerequisites
Before configuring the monitor, ensure that:- A GermainUX Engine can connect to the database.
- The database type is supported and its driver is available.
- Authorized database credentials are configured.
- Network and firewall access are available.
- The SQL query has been tested.
- The database account has access only to the required data.
- The corresponding GermainUX KPI exists or can be created.
Create a Query Monitor component
- Sign in to the GermainUX Workspace.
- Go to System > Component Types.
- Add a Database Query Monitor Component.

- Enter a name for the component.

- Select the database connection.
- Select the authorized database credentials.
- Enter a descriptive name for the query.
- Enter and validate the SQL query.
- Select the GermainUX KPI that will receive the results.
- Configure a custom rule when returned values require mapping or transformation.
- Configure the execution interval and other available settings.
- Add an SLA when the result must be evaluated against a threshold.
- Save the component.
- Confirm that the Engine executes the query and that the resulting facts appear under the selected KPI.
Add a query to an existing component
- Go to System > Component Types.
- Open the existing Database Query Monitor component.
- In the Queries section, select Add.

- Select the database connection and credentials.
- Enter a name for the query.
- Enter and validate the SQL statement.
- Select the destination KPI.
- Configure a custom rule when required.
- Save the query.
Create a KPI for a query
Go to Analytics > KPIs
Select Add
Enter a clear KPI name
Select the appropriate fact class, such as Generic Event or Generic Transaction
Enter a unique fact category, such as Query: Overdue Service Requests
Configure the relevant measures and pivots
Add an SLA when required
Configure relationships, rules, alerts, or automation as needed
Save the KPI
Select the KPI in the Query Monitor configuration
Analyze query-based insights
After data collection begins, use GermainUX to:- Measure the frequency and business impact of the detected condition.
- Analyze historical trends.
- Segment results using KPI pivots.
- Compare environments or periods.
- Identify abnormal volumes or durations.
- Correlate database findings with user, application, API, integration, or infrastructure activity.
- Drill down to individual database-derived facts.
- Apply alerts, Watches, reports, or approved automated actions.
Security and performance
Queries execute against customer databases and should follow the organization’s database-security and operational-governance requirements. Recommended practices include:- Use a dedicated database account.
- Grant only the permissions required by the configured queries.
- Prefer read-only access.
- Avoid collecting sensitive data unless it is required and authorized.
- Select only the columns needed for the insight.
- Filter results as narrowly as possible.
Show all 12
Show all 12
- Avoid unbounded or unnecessarily expensive queries.
- Use indexed columns when filtering large tables.
- Configure an execution interval appropriate for the business need.
- Test queries outside production before enabling them.
- Monitor the query’s execution time and database impact.
- Review retention and access requirements for the collected results.
Troubleshooting
If no facts are generated:Confirm that the GermainUX Engine is running
Verify network access from the Engine to the database
Validate the database connection and credentials
Execute the SQL query using an authorized database client
Confirm that the query returns the expected columns and values
Verify that the query is enabled
Confirm that the destination KPI and fact category are correct
Review Engine logs for connection, SQL, mapping, or processing errors
Confirm that the selected time range and filters include the generated facts
Deployment and configuration
- Deploy and configure the GermainUX Engine.
- Configure an authorized connection to the target database.
- Create or select a KPI for the query results.
- Configure rules through Rules: Advanced Automated Analytics when results require filtering, categorization, enrichment, or correlation.
- Configure SLAs when the resulting insight must be evaluated against a threshold.
- Add dashboards, alerts, Watches, reports, or approved actions according to the operational requirement.
Get Help
Contact GermainUX Support
Can't find what you need?
The content of this document is proprietary to GERMAIN SOFTWARE.

