Integration
...
Collectors
Azure Data Factory

Import ADF Circuit Breaker Agent

8min

Install the ADF agent

1. Navigate to the ADF studio to start importing the agent

2. We'll use the template loader which is located in the Factory Resources panel.

Click on this + button

Document image


3. Clickin on "Import from pipeline template" will open a File Selector, so you need the template file first.

Document image


4. This file can be downloaded from Kensu Nexus repository: https://public.usnek.com/n/repository/kensu-public/releases/adf_agent/kensu_cb_1_0_0.zip



5. Click "Import from pipeline template", and import the kensu_cb_1_0_0.zip file.

Document image


6. This page will show up after the file has been uploaded. Simply click on "Use this template"

Document image


7. Optional, you can annotate the template with the version for example.

Document image


8. Enter the current version.

Document image


Configure the ADF agent

  1. You need now to configure the link between this agent and Kensu Hub.
  2. Click "Variables"
Document image


3. Click the "Value" of field KENSU_HUB_URL to provide the URL of the Kensu Hub

Document image


4. Click the "Value" of field KENSU_HUB_USER to provide the username of the user that will trigger the circuit breaker on the Kensu Hub.

Document image


5. Click the "Value" of field KENSU_HUB_PASSWORD to provide its password

Document image


Use the ADF agent



1. We can now use the agent in a pipeline, let's create one.

Document image


2. Click "Pipeline"

Document image


3. We're going to add Copy Data activities.

Document image


4. Click "Copy data" and drag it to the main panel.

Document image


5. In the Data Factory Resources panel, under Pipeline, click on the agent we just imported and drag it to the main panel, next to the Copy Data activity

Document image


6. Link the first application to the circuit breaker, not that we use the blue arrow which means that kensu_cb will always be executed (useful to check for example if data was not touched, etc)

Document image


7. Let's add another "Copy data"

Document image


8. Now link the agent's green handle with this activity, that means that it won't run if the circuit breaker didn't succeeded.

Document image


9. And we can even add a second "kensu_cb" agent at then end by dragging the pipeline again.

Document image


10. We link it to the second Copy Data

Document image


11. Click "Collapse resources pane"

Document image


12. In fact the second Copy Data ( `[[Copy data2]]` ) is surrounded by 2 agent, acting as pre and post conditions for it.

Document image