The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
1Plugin
The IBM Instana collection provides the ability for Instana event data to be consumed by Event Driven Ansible (EDA). In EDA, rulebooks are defined with 'If-This-Then-That' conditions. The condition uses parsed Instana event data to trigger automation. This enables you to build existing operational knowledge into automated decision-making and actions, so that you can efficiently perform repetitive tasks and deliver services faster, with far less effort while reducing Mean-Time-To-Resolution (MTTR).
The IBM Instana collection provides the ability for Instana event data to be consumed by Event Driven Ansible (EDA). In EDA, rulebooks are defined with 'If-This-Then-That' conditions. The condition uses parsed Instana event data to trigger automation. This enables you to build existing operational knowledge into automated decision-making and actions, so that you can efficiently perform repetitive tasks and deliver services faster, with far less effort while reducing Mean-Time-To-Resolution (MTTR).
ansible-galaxy collection install ansible.eda
Install the collection: ansible-galaxy collection install ibm.instana
Once installed, define the instana_webhook in the source of the rulebook.
Then, define rules with conditions based on the event payload coming from Instana.
- name: Listen for events on a webhook
hosts: all
## Define our source for events
sources:
- instana_webhook:
host: 0.0.0.0
port: 5000
## Define the conditions we are looking for
rules:
- name: Test
condition: event.payload.message == "Node failed"
action:
run_playbook:
name: launch_controller_job.yml
- name: Event
condition: event.payload.problem.problemText == "Erroneous call rate is too high"
action:
run_playbook:
name: launch_controller_job.yml
Next, in Instana use the action framework to create an action which will invoke the rulebook webhook above, and
pass in the event payload to trigger the condition defined.
Here is an action example that was defined in Instana:
# The @@eda_server@@ is parameter which points to the webhook host and port above.
# The ${INSTANA_EVENT} is the content of event associated to the action below.
#!/bin/bash
# Verify Instana event metadata exists
if [ -z "${INSTANA_EVENT}" ]; then
# Action running in test mode
curl -H 'Content-Type: application/json' -d "{\"message\": \"Node failed\"}" @@eda_server@@/instana
else
# Action run from event
curl -H 'Content-Type: application/json' -d "${INSTANA_EVENT}" @@eda_server@@/instana
fi
ansible >= 2.15.0
python >= 3.9
aiohttp >= 3.8.4
Product |
---|
Red Hat Ansible Automation Platform 2.4 |