Make generic databases queries to your Oracle, Postgres, MSSQL, MySQL, DB2, Informix or SAP HANA databases and send the metrics to Dynatrace.
This Activegate custom extension allows you to run queries against Oracle, MSSQL, MySQL, DB2, PostgreSQL, Informix or SAP HANA databases and send the results back to Dynatrace as metrics.
You can use this extension to bring in business data, job processing metrics, database and table statistics, anything that is stored in your Databases.
SELECT COUNT(*) FROM DAILY_PROCESSED_JOBS
SELECT DEPARTMENT, EMPLOYEE_COUNT FROM DEPARTMENTS
This extension utilizes JDBC to connect to the different databases, here are the versions of the JDBC drivers we utilize, please refer to the JDBC driver documentation regarding the database version they support.
There are two steps to install an Activegate extension:
Environment Activegate server - Extract the extension zip file to the plugin_deployment folder of the remote plugin module
unzip -o -d /opt/dynatrace/remotepluginmodule/plugin_deployment custom.remote.python.dbquery.zip
/opt/dynatrace
(Optional) For SAP HANA, place the ngdbc-2.14.7.jar file in the ../plugin_deployment/custom.remote.python.dbquery/jars/
directory.
Browser - Upload custom.remote.python.dbquery.zip
file to your tenant
Settings > Monitored technologies > Custom extensions > Upload extension
Create an Endpoint for every database you would like to query.
This is done in Settings > Monitored technologies > Custom extensions > Generic DB Query Plugin
You can run up to 10 queries at a time, to run more than 10 queries, create more endpoints for the same database.
The parameters are:
Dynatrace API Token
Api V2 - Metric Ingest
permissionsGroup Name
Custom device name
Log level
Send statistics
Database Type
Hostname
Port
Username
Password
Oracle listener type
Database
(Optional) JDBC - Connection String
jdbc:sqlserver://10.1.2.3:1433;databaseName=master;applicationIntent=ReadOnly
jdbc:db2://myserver:5055/my_db:sslConnection=true;
(Optional) Java path
(Optional) Java extra arguments
Queries Timeout
Query (1-10) - Name
Query (1-10) - Query string
SELECT COUNT(*) FROM JOBS
, where a single number is returnedSELECT JOB_ID, DURATION, STATUS FROM JOBS
. In this case, fill in the columns and values parameters below(Optional) Query (1-10) - Schedule
(Optional) Query (1-10) - Value columns
SELECT JOB_ID, DURATION, STATUS FROM JOBS
DURATION,STATUS
as a value. These columns need to be numbers(Optional) Query (1-10) - Dimension columns
SELECT JOB_ID, DURATION, STATUS FROM JOBS
JOB_ID
as a dimension, you would then have a metric for every job_id(Optional) Query (1-10) - Extra dimensions
key=Value
pairs to be added as extra hardcoded dimensionsenvironment=PROD,database=USERS
The data is sent using our Metric Ingest API, so you need to use the Data Explorer to create charts.
The metric name is always custom.db.query
, the different queries are accessed via the Query Name
dimension
If Send Statistics
was enabled, you can also monitor your queries by navigating to Technologies > Custom SQL > DBQuery Monitoring
Any errors running the queries will also be sent to this Custom Device as CUSTOM_INFO_EVENTS
Data management products, including database servers, developed by IBM.
Remotely monitor your Informix databases and get insight into crucial Informix metrics.
Automatically and intelligently observe, analyze and optimize how your the usage, health and performance of your database.
Automatically and intelligently observe, analyze and optimize the usage, health and performance of your Oracle database.