<style>p { margin: 0; }span.fr-emoticon.fr-emoticon-img { background-repeat: no-repeat !important; font-size: inherit; height: 1em; width: 1em; min-height: 20px; min-width: 20px; display: inline-block; margin: -0.1em 0.1em 0.1em; line-height: 1; vertical-align: middle; } span.fr-emoticon { font-weight: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; display: inline; line-height: 0; } blockquote { border-left: solid 2px #5e35b1; color: #5e35b1; margin-left:0; padding-left:5px;}blockquote blockquote{ border-color: #00bcd4; color: #00bcd4;}blockquote blockquote blockquote{ border-color: #43a047; color: #43a047;} table.grid{ border-collapse: collapse;} table.grid td, table.grid th { border: 1px solid #ddd;} .fr-fic.fr-dib{ display: block; margin: 5px auto;}.fr-fic.fr-dib.fr-fir{ text-align: right; margin: 5px 0 5px auto;}.fr-fic.fr-dib.fr-fil{ text-align: left; margin: 5px auto 5px 0;}.fr-fic.fr-dii{ float: none; margin: 5px auto;}.fr-fic.fr-dii.fr-fil{ float: left; margin: 5px auto;}.fr-fic.fr-dii.fr-fir{ float: right; margin: 5px auto;}img.fr-dib.fr-fir { margin-right: 0; text-align: right;}img.fr-dib.fr-fil { margin-left: 0; text-align: left;}img.fr-dib { margin: 5px auto; display: block; float: none;}img.fr-bordered { box-sizing: content-box; border: solid 5px #CCC;}img.fr-shadow { box-shadow: 10px 10px 5px 0px #cccccc;}img.fr-rounded { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;}</style><p><strong>In this guide we will cover:</strong></p><p><strong>- What is the Prometheus Integration?</strong></p><p><strong>- Connecting to Prometheus</strong></p><p id="isPasted"><strong>- Configuring Asset Imports</strong></p><p><strong>- Automatically import/update Assets on a schedule</strong></p><p><strong>- Alerting</strong></p><p><strong>- Have assets create instantly in Halo when created in Prometheus</strong></p><p id="isPasted"><br></p><p><br></p><p><strong><span style="font-size: 14pt;">What is the Prometheus Integration?</span></strong></p><p>The Prometheus integration can be used to import targets from Prometheus as assets into Halo. Once imported assets can be synced automatically on a schedule. Webhooks can also be used to have assets in Halo create automatically as soon as a new target is detected in Prometheus. </p><p><br></p><p>Alerts from Prometheus can also be synced to Halo, with new alerts creating a ticket in Halo. When the alert is resolved in halo this will resolve the ticket automatically in Halo. Allowing agents to monitor Prometheus alerts from within Halo. </p><p><br></p><p><strong><span style="font-size: 14pt;">Connecting to Prometheus</span></strong></p><p>First you will need to enable the module for this integration. Head to Configuration > Integrations and enable the Prometheus module using the '+' icon. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjRkYzYzOWI3LTI2MTAtNDE0OS05NGEyLWZmYjZmNDdjNDA2ZCJ9.SVYKbAqqxz7S3wWrBqomOBJ527IzdPPFmsSAElcXoCI" class="fr-fic fr-fil fr-dib" width="264" style="width: 266px; height: 121.839px;" height="122"><strong><span style="font-size: 10pt;">Fig 1. Enable integration module.</span></strong></p><p><br></p><p>Once enabled click into the integration module to begin configuration. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU0YzQ4ZjY3LTQ3YWEtNGY0ZC04OWI2LTZlYWZhZjExZGU0MiJ9.SATj-2z4pzoNSGPmxoYnZrHZ9h8d2eZZG-JYysrTO78" class="fr-fic fr-fil fr-dib" width="1217" style="width: 1219px; height: 595.611px;" height="596"></p><p><strong><span style="font-size: 10pt;">Fig 2. Prometheus setup page</span></strong></p><p><br></p><p>In order to connect you will need to enter your API URL in the 'API URL' field. </p><p><br></p><p>To obtain this you will need to check your Prometheus configuration file to see the server address and port Prometheus is running on. </p><p><br></p><p>If Prometheus is running on your local machine or server, the URL is usually:<strong> http://<server-ip>:9090/ </strong></p><p><br></p><p>Where '<server-ip>' is your server’s IP address. Use 'localhost' if it's running on your local machine.</p><p><br></p><p>Multiple API URLs can be connected to by entering each URL in the field here. This allows you to import targets/manage alerts from targets on different servers. </p><p><br></p><p>Once entered use the 'Test Configuration' button to ensure you have connected successfully. </p><p><br></p><p><strong><span style="font-size: 14pt;">Configuring Asset Imports</span></strong></p><p>Targets (assets), along with their fields can be imported from Prometheus into Halo. You will need to configure how assets are created and matched to targets in Prometheus.</p><p><br></p><p>First set the Asset matching field, this field is used to match assets to existing records. If matched, the record will be updated, otherwise a new asset will be created. The field chosen here should contain the unique identifier of the asset. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNiNDgxMDE3LTNjZmEtNDRjMy05MDkzLWZiM2U1ZWZjODM5ZCJ9.FHEBQww29bduoMwWt3-zDQ0njrW4TffOUwD6ERuY2NA" class="fr-fic fr-fil fr-dib" width="478" height="137"></p><p><strong><span style="font-size: 10pt;">Fig 3. Asset matching field.</span></strong></p><p><br></p><p><strong>Asset Matching Value Exclusions</strong> - Here you can set assets to not be matched using the matching field if the matching field contains a certain value. For example, if two assets have the matching field set to be 'None' they would match even though they are separate assets. By adding the value 'none' to the matching value exclusions list you can ensure the assets are matched using their Promethus ID instead. </p><p><br></p><p>Now you will need to map Halo asset fields to a Prometheus field. Both system and custom Prometheus field types can be mapped. Create a mapping by adding to the 'Field Mappings' table. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk4NTk3OWI2LWI0YTEtNDU0YS1iNmQ2LTI2MjQ0ZGNjZTVhNSJ9.eyaaciJLAPgvc006MRXh6hMvcDVwaVvWDdyNcWXcTeo" class="fr-fic fr-fil fr-dib" width="1225" style="width: 1227px; height: 176.886px;" height="177"></p><p><strong><span style="font-size: 10pt;">Fig 4. Asset field mappings.</span></strong></p><p><br></p><p>If you would like a new field to be created in Halo for the Prometheus field select '*Create a new Field during the next import*'. </p><p><br></p><p>Use the 'Default Site' field to determine the site that assets/targets from Prometheus are assigned to in Halo. All assets will be assigned to this site on import. </p><p><br></p><p>As Prometheus does not have the same concept of asset types as Halo, you will need to choose how the type of the asset is determined using the field 'Determining an Asset's type'.</p><p><br></p><p><strong><span style="font-size: 12pt;">Determining an Asset's type </span></strong></p><p id="isPasted"><strong>Use the same type for all Assets</strong></p><p>If you would like all imported assets to have the same asset type when imported set the 'Determining an Asset's type' field to be 'use the same type for all Assets' then set the 'Asset Type' field to be the asset type you would like assets from Prometheus to be.</p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZkYmY5ODI4LTEzMmItNGQ0Zi04YzZhLTI2YWVkMWNlMTg2MCJ9.pbzwayd0UOITwWJsWNcWEv_gsXrLvv-fZ-l39SqFVbo" class="fr-fic fr-fil fr-dib" width="355" height="182"></p><p><strong><span style="font-size: 10pt;">Fig 5. Use the same type for all assets.</span></strong></p><p><br></p><p id="isPasted"><strong>Use a field to determine each Asset's type</strong></p><p>This setting is used if you have a field in Prometheus that already determines an asset's type and you would like the types to be consistent between Halo and Prometheus.</p><p><br></p><p>Set the 'Determining an Asset's type' field to be 'Use a field to determine each Asset's type'. Then in 'Field for determining an Asset's type' choose the field you would like the type to depend on. The field you choose must contain the name of the desired asset type, if this name can be matched to an existing asset type in Halo, it will be assigned this asset type. If this field is not populated, the asset will be created under the default asset type set instead. Note that the names must be identical in order to match.</p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI3MDQ0ZjRiLWQ3YzMtNDYzZi05NGU2LWY2ZmQxZmRlZWUzZCJ9.akzXyMTBfzByfxOz9nB3jutZGi482WcyoYkC5lZ6I-A" class="fr-fic fr-fil fr-dib" width="1221" height="204"></p><p><strong><span style="font-size: 10pt;">Fig 6. Use field for determining asset's type.</span></strong></p><p><br></p><p>In the <strong>Fig 6</strong> example new assets will be assigned to an asset type in Halo based on their 'scrapePool' field. If the data in this field matches the name of an asset type in Halo this asset will be created under the matched asset type. If a match cannot be made a new asset type will be created, under the asset group 'Configuration Items'. </p><p><br></p><p id="isPasted"><strong>Determine Asset type using rules</strong></p><p>This option is used when you would like assets to be created as different types but you do not have a single field in Prometheus that represents the desired type. </p><p><br></p><p>Set the set the 'Determining an Asset's type' field to be 'Determine asset type using rules'. Now you will be able to set asset's types based on rules. These rules are based on field values, and if matched will assign an asset to the chosen asset type. When creating a rule first add criteria for the rule, select the Halo field that you would like to base the criteria on, then set the rule type and the outcome needed in the field to match the rule. If an asset matches this rule it will be imported as this asset type.</p><p><br></p><p>When using this method you will need to complete the 'Default asset Type' field. If an asset is imported that does not match any of these rules, it will be created under the set default asset type.</p><p><br></p><p>When you are happy with your asset import settings hit 'Import Assets' to complete a manual import. </p><p><br></p><p><strong><span style="font-size: 14pt;">Automatically import/update Assets on a schedule</span></strong></p><p>To have assets be imported on a regular basis automatically, and any updates made to assets imported from Prometheus sync regularly enable the Halo integrator for the integration. Enable this using the setting shown in <strong>Fig 7</strong>. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjFhOTBhYTY1LTI5YjEtNGZhMS05N2EyLWY5ZDJkZjkzOGMwZiJ9.OM5UcE6Mr6Xws8DtVFemBaomsnMcylTAxHSAExHqNj8" class="fr-fic fr-fil fr-dib" width="709" style="width: 711px; height: 188.338px;" height="188"></p><p><strong><span style="font-size: 10pt;">Fig 7. Enable Halo integrator for integration.</span></strong></p><p><br></p><p>Once enabled assets will be imported and updated on a daily basis. </p><p><br></p><p><strong>Deactivate Assets in Halo when they are not returned from Prometheus (Halo Integrator only)</strong> - When enabled assets will be deactivated in Halo when they cannot be found (have been removed from) Promethus. This only applied to imports completed using the Halo integrator, not manual or webhook imports. </p><p><br></p><p><strong><span style="font-size: 14pt;">Alerting</span></strong></p><p>Alerts from Prometheus can be synced to Halo, creating a ticket each time an alert is raised. Then when the alert is resolved in Prometheus this will close the ticket off in Halo. </p><p><br></p><p>The alerting functionality uses the Prometheus alertmanager tool in conjunction with webhooks to sync alerts between instances. </p><p><br></p><p><br></p><p>To set this functionality up enable 'Enable alert processing via webhooks' found on the Prometheus setup page in Halo.</p><p><br></p><p><img data-fr-image-pasted="true" src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjQ2NmNiYzQ0LWUxYmUtNGVjZi1hMWNiLTc0NmI5ZGQ1OTQwOSJ9.A-v7nk9uc5DZZvV1u-JJGCavogv90SkzQ8TxrB4gvHI" width="1221" style="box-sizing: inherit; border-style: none; cursor: pointer; padding: 0px 1px; user-select: none; text-align: left; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; width: 1223px; height: 187.036px; max-width: none !important;" id="isPasted" class="fr-fil fr-dib" height="187"></p><p><strong><span style="font-size: 10pt;">Fig 8. Enable alert processing.</span></strong></p><p><br></p><p>Once enable you will see some setup steps on the configuration page but we will run through these steps in more detail on this guide. </p><p><br></p><p><strong>Step 1 - Download Alert manager</strong></p><p>To set this functionality up first download the Prometheus Alertmanager tool, a link to download this can be found on the integration setup page. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImJmZDIyNmNhLTRjZjAtNDQ4My1hMmZlLTg0ZjZkNTRiNTkzNiJ9.XTl0FvG4BUrNTUJigmZxa1ePZUYU29TIhfrhDVBZO0I" class="fr-fic fr-fil fr-dib" width="1213" style="width: 1215px; height: 209.58px;" height="210"></p><p><strong><span style="font-size: 10pt;">Fig 9. Download alert manager.</span></strong></p><p><br></p><p><strong>Step 2- Add the Alertmanager server to the Prometheus configuration file</strong></p><p><br><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImVjZjE4N2MyLWM3NDYtNDI5ZC04YzE2LTAwNmI4MWI4YjA5YSJ9.4sx5AiL1aLw2s3svatx3QyCUucqWlTlTb86PB6Fw-w0" class="fr-fic fr-fil fr-dib" style="width: 1018px; height: 204.494px;" width="909" height="183"><strong><span style="font-size: 10pt;">Fig 10. Add alertmanager server to Prometheus configuration file</span></strong></p><p><br></p><p>Open up your Prometheus configuration file and navigate to the alerting section. Here add your alertmanager (just downloaded) as a target. This will follow the format: YOUR_ALERTMANAGE_SERVER:9093 (as 9093 is the default port).</p><p><br></p><p><strong>Step 3 - Add a Webhook Receiver in the Alertmanager configuration file</strong></p><p><br><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRhZThiYmQ5LWIwZjQtNDVmNC05NDVlLWYxODhmZDQzOWUzNiJ9.VUskXsxoPAHWW8ndQkKUzsLNRGaDD8U9SdqGXbOH2Nk" class="fr-fic fr-fil fr-dib" width="738" style="width: 740px; height: 285.381px;" height="285"></p><p><strong><span style="font-size: 10pt;">Fig 11. Add Webhook Receiver in the Alertmanager configuration file.</span></strong></p><p><br></p><p>Open up your alert manager configuration file and add a new receiver. The receiver will follow the format shown in figure 11 using your Halo URL with the /api/notify/prometheus endpoint as the URL to post the webhook to. </p><p><br></p><p>The username and password can be obtained from your Prometheus setup page in Halo, scroll past the alerting setup steps. You will need to generate a password before you can copy/paste this. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjM3NjRlN2JhLWE2MTYtNGM0Ni1iOWQxLWI3M2Y0NjUyMDMxYyJ9.3KA-puPvXxv2PuOwE_3zfyMtqNuA5wSMl_UV1qtZXp4" class="fr-fic fr-fil fr-dib" width="1209" height="304"></p><p><strong><span style="font-size: 10pt;">Fig 12. Username and password for webhook</span></strong></p><p><br></p><p><strong>Step 4 - Create Rules</strong></p><p><br><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEwYmMxYzljLTJjNjgtNGNmYi1hNGEwLTg1Yzk5ZWEyYjkwZSJ9.Jt-vUiZvkdu6cPHF8OEwUHHGwUm0gtlSeTp-QqHat9E" class="fr-fic fr-fil fr-dib" width="1220" style="width: 1222px; height: 375.167px;" height="375"></p><p><strong><span style="font-size: 10pt;">Fig 13. Example rule configuration.</span></strong></p><p><br></p><p>Create a rules.yml file containing criteria that need to be met for an alert to be triggered, along with labels for data that will be synced to Halo when an alert is triggered. For example:</p><p><br></p><p id="isPasted"><em> - name: example-alert-rules</em></p><p><em> rules:</em></p><p><em> - alert: HighCpuUsage</em></p><p><em> expr: avg(rate(cpu_usage_seconds_total[1m])) by (instance) > 0.9</em></p><p><em> for: 5m</em></p><p><em> labels:</em></p><p><em> severity: critical</em></p><p style="margin-left: 40px;"><em>job: '{{$labels.job}}'</em></p><p style="margin-left: 20px;"><em> instance: '{{$labels.instance}}'</em></p><p><em> annotations:</em></p><p><em> summary: "CPU usage on instance {{ $labels.instance }} is above 90%."</em></p><p><em> description : "CPU usage has been above 90% for the last 5 minutes.</em></p><p><br></p><p>In the above example I have created an alert that will be triggered when CPU usage exceeds 5 minutes. The 'alert' line defines the name of the alert. The 'expr' line defines criteria for the alert, in this example average CPU usage over 1 minute exceeds 90%. The 'for' line defines how long the criteria need to be met for. </p><p><br></p><p>The following labels will need to be included in the rule:</p><ul><li>job (used to match an asset to the alert)</li><li>instance (used to match an asset to the alert)</li></ul><p>The following annotations will need to be included in the rule:</p><ul><li>summary (populates the ticket summary field in Halo)</li><li>description (populates the ticket description field in Halo)</li></ul><p>Variables can be used in the summary and description annotations to pull data from Prometheus into the ticket in Halo. </p><p><br></p><p>Once you have created your rules.yml file you will need to add/specify this to your Prometheus configuration file, like so:</p><p id="isPasted"><em> rule_files:</em></p><p><em> - rules.yml</em></p><p><br></p><p><strong>Step 5 - Choose ticket type and user for alert tickets</strong></p><p>Now head back to the setup page in Halo, under the 'Alerts' section here choose the ticket type that is used for alerts from Prometheus as well as the default user tickets will be assigned to. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjBjNzE0MzM0LTY3NWYtNDY1NC1iYWYxLTk5ODY5MDE3MGE1NCJ9.oojh5y8KhTwwfcvIJHfMxtOhto9l82pUInE0fVVZCqg" class="fr-fic fr-fil fr-dib" width="904" style="width: 906px; height: 269.258px;" height="269"></p><p><strong><span style="font-size: 10pt;">Fig 14. Alert and user ticket type.</span></strong></p><p><br></p><p>All alerts from Prometheus will be created using this ticket type, if you are using multiple alerting tools you may want to create a ticket type specific to 'Prometheus alerts' otherwise you can use our out-of-the-box ticket type 'Alerts'. </p><p><br></p><p>When an alert logs a ticket in Prometheus the ticket will be assigned to the user assigned to the asset the alert is for. If there is no user assigned to the asset the ticket will be assigned to the general user of the customer the alert is for. If neither of these can be associated with the alert the ticket will be assigned to the default end user set here. </p><p><br></p><p>We recommend creating a new user dedicated to Prometheus alert tickets, this user can be marked as a service user to exclude them from user counts (for billing). </p><p><br></p><p><strong><span style="font-size: 14pt;">Have assets create instantly in Halo when created in Prometheus</span></strong></p><p><strong><em>Note: If you have not set up the alerting functionality prior to this ensure you have downloaded the Prometheus alert manager tool and added this to your Prometheus configuration file.</em></strong></p><p><br></p><p>The Halo integrator will ensure any newly created assets in Prometheus will be created in Halo on a daily basis. But if you would like assets to be created in Halo as soon as they are created in Prometheus you will need to enable the setting 'Allow creation of Assets from webhooks received' found on the integration setup page in Halo. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhjNGE5OWMyLTNhNDEtNDQyYy1hYWE3LWI1MzJiOTIzZTgwYyJ9.VL7QXxKhVyo_l359itUv4QfV_Jr8ddZfumqxSQKzy3E" class="fr-fic fr-fil fr-dib" width="858" height="227"><strong><span style="font-size: 10pt;">Fig 15. Allow creation of Assets from webhooks received.</span></strong></p><p><br></p><p>Once enabled you will need to create a webhook in Prometheus that is triggered each time an asset is created in Prometheus. </p><p><br></p><p>You will need to create rules.yml file containing criteria that need to be met for an asset creation webhook to be triggered, similarly to the alert rule created previously for alerting. Essentially you will need to create an alert that is triggered each time an asset/target is created, but instead of the webhook being posted to the notify endpoint in Halo, it will be posted to the asset creation endpoint. </p><p><br></p><p>As Prometheus do not have set 'asset creation' criteria you could create a rule containing "expr: up == 1" which checks if the target is up and reachable (availability changed from 0 to 1). </p><p><br></p><p>Once you have created you rules.yml file you will need to add/specify this to your Prometheus configuration file. </p><p><br></p><p>Now you will need to configure the webhook that is send when this alert is triggered in the alertmanager configuration file. For example:</p><p><br></p><p><em>route:</em></p><p><em> group_by: ['alertname']</em></p><p><em> group_wait: 30s</em></p><p><em> group_interval: 5m</em></p><p><em> repeat_interval: 1h</em></p><p><em> receiver: 'webhook_receiver2'</em></p><p><em><br></em></p><p><em>receivers:</em></p><p><em> - name: 'webhook_receiver2'</em></p><p><em> webhook_configs:</em></p><p><em> - url: </em><em>'<a data-fr-linked="true" href="https://joelydavid.psa.haloqa.co.uk/api/notify/prometheus" id="isPasted">https://YOURHALODOMAIN/api/</a>asset'</em></p><p><em> send_resolved: true</em></p><p id="isPasted" style="margin-left: 20px;"><em> http_config:</em></p><p><em> basic_auth:</em></p><p><em> username: 'USERNAME FROM SETUP PAGE'</em></p><p><em> password: 'YOUR_GENERATED_PASSWORD'</em></p><p><br></p><p>In the above example you will need to replace 'alertname' with the name you gave to your asset creation alert. This will ensure this webhook is only used when this alert is triggered. </p><p><br></p><p>Now each time a new target is detected by Prometheus, a webhook will trigger to create a new asset in Halo. </p><p><br></p><p>As we have not specified any fields to be pulled across/mapped here when the asset is created it will not contain any field values from Prometheus. However, when the Halo integrator next runs for the integration, this information synced and the fields populated in Halo. </p>