The community for performance and observability professionals to learn, to share ideas, and to connect with others.
This blog provides sample code and utilities to send OpenTelemetry (OTel) data to IBM Instana, specifically focusing on IBM Cognos TM1 metrics. It covers steps to deploy the Instana agent, collect data from Cognos TM1, transform data into OTel format, and send it to Instana programmatically for comprehensive observability.Here is the repository link: https://github.ibm.com/Ankit-Guria/InstanaOnTM1?tab=readme-ov-file
The project workflow includes:
For more information on how to programmatically use OpenTelemetry with Instana, refer to this Article on how to send Opentelemetry Data to IBM Instana .
For Instana agent installation instructions, refer to the official IBM Instana documentation.
sendOtelInstana.py: Contains the main code for converting JSON data from Cognos TM1 to OTel gauge and histogram metrics and sending these to Instana.
sendOtelInstana.py
usersOnInstana.py: Demonstrates how to programmatically send active user and session information to Instana.
usersOnInstana.py
syntaxToSendInstana.py: Contains various syntax examples and utilities for sending data to Instana, useful as a reference for other metric types.
syntaxToSendInstana.py
sampleThreadDataToInstana.py: Collects and sends thread data metrics to Instana, adding insights on server performance and application health.
sampleThreadDataToInstana.py
scheduler.py: Configured to execute the Python scripts every 5 minutes, ensuring continuous data flow to Instana. The scheduler is currently running in an active state.
scheduler.py
Install and Configure the Instana Agent
Collect Data from TM1
Convert Data to OpenTelemetry Metrics
Send Data to Instana
Automate with Scheduler
Create Instana Dashboard
Run the code:
python <name of file.py>
And do install all the required libraries in the code, check the command line and the code for the import statements in the code
Copy