Extending Advanced Monitoring

Solace provides PubSub+ Insights dashboards for Datadog, PubSub+ Insights monitors for Datadog, and metrics that are valuable for general use cases whether you're in an operations and integration, or applications support team. The PubSub+ Insights dashboards are based on core best practices from subject-matter-experts and feedback from the Solace community. You may want to extend the Insights Advanced Monitoring capabilities to adapt them to match your specific use cases or requirements.

If you have the Insights Advanced Manager or Insights Advanced Editor role, you can do one or more of following to accomplish this:

  • Create your own PubSub+ Insights dashboards for Datadog and then copy widgets from an existing dashboard to add to yours. For more information, see the New Dashboard in the Datadog documentation.
  • Clone any of the PubSub+ Insights dashboards to use as a starting point and then add and remove widgets to suite your monitoring requirements. For more information, see Cloning Existing PubSub+ Insights Dashboards for Datadog for Reuse
  • On a cloned board or one that you create, you can create custom views, add custom or existing PubSub+ Insights monitors, add custom widgets, customize existing widgets, and create filters. For more information, see the following sections:

    For example, you could clone all of the PubSub+ Insights dashboards and then add filters to the widgets on the dashboard to reflect the needs of your team. To make it easier to access, you could also ask users to add them as favorites in their Datadog account.

  • Create custom monitors and clone existing monitors to customize them. For more information, see Creating Custom Monitors
  • Mute monitors whose default thresholds don't meet your needs, or to limit the amount of notifications you receive from specific monitor types, see Muting PubSub+ Insights Monitors for Datadog.
  • Schedule downtime for monitors. This allows you to turn of notification from specific, or all monitors for a time a specified time, once or on a recurring schedule. This is useful feature to manage notification during maintenance, or upgrades. See Scheduling Downtime.

The creation of custom views, dashboards, and monitors requires that you understand how to perform Datadog customizations and how to best tune your customizations for your requirements. To help get creating custom dashboards, views, and filters as well get tuned to your requirements more quickly, you can contact Solace for professional services. For more information about how professional services can help you with monitoring, see Monitoring Services | Professional Services.

Cloning Existing PubSub+ Insights Dashboards for Datadog for Reuse

It is possible that your business has its own unique requirements, but you may find that a small modification to one of the PubSub+ Insights dashboards for Datadog may help optimize its use. The PubSub+ Insights dashboards provided by Solace cannot be modified. For your organization, if you need to modify a dashboard, we recommend that you clone one of the PubSub+ Insights dashboards and adapt it as required.

Do not put any cloned dashboards that you create into any lists that have Solace or Insights in the name. This could cause changes to occur to your dashboard during upgrades or content changes that are done by Solace.

Before you cloning PubSub+ Insights dashboards, it's a good idea to become familiar with how to create and modify dashboards in Datadog. In addition to cloning, you can also create your dashboards and then add metrics and monitors to your dashboard. In either case, here are some suggested topics to help you get started with dashboards in the Datadog documentation:

After you've cloned a dashboard, you might want to do further customizations that include:

Creating Custom Monitors

Solace provides predefined PubSub+ Insights monitors for Datadog that you can use on your dashboards; however, you may want to create a custom monitor of your own or clone and customize an existing monitor. If you want to create your own monitor, you can base it off any metric or log that is parsed already as a monitor in your account; cloning an existing monitor simply accelerates the process of creating your own custom monitor. An example of cloning and customizing a monitor can be found in Cloning and Customizing the Template Monitor below.

There are different types of monitors available that include status-based, log-based, and metric-based monitors. Solace also provides a sample template monitor which is not picked up (or used) by the PubSub+ Insights dashboards for Datadog, which you can use to create custom monitors. The template monitor has the solace_customizable_template tag to distinguish it from the other monitors provided with insights that are active. Custom monitors that you create are picked up in the PubSub+ Insights dashboards provided with PubSub+ Insights when they have the custom_insights tag. This aspect is particularly useful when you use the PubSub+ Insights dashboards to monitor your estate and you want custom monitors to appear on any PubSub+ Insights dashboards.

To understand how to clone a monitor, see cloning monitors, see Manage Monitors in the Datadog documentation, but ensure that you follow the guidelines listed below in this section. Not adhering to the guidelines that we describe in this section can impair Solace's ability to properly manage your event broker services and cause inconsistencies in the monitoring data reported in the dashboards.

The provided template monitor contains a brief outline explaining how to clone and configuring your own monitor. To understand how to clone and configure a monitor, see Manage Monitors in the Datadog documentation. While you can also clone and configure based on other monitors, you must ensure that you follow the guidelines listed below in this section. Not adhering to the guidelines can impair Solace's ability to properly manage your event broker services and cause inconsistencies in the monitoring data reported in the dashboards.

  • You can clone any monitors that have been tagged with solace_insights, however, if a monitor has the tag solace_rmms, DO NOT clone it.

    There are risks and consequences to cloning the monitors that are tagged with solace_rmms. Incorrectly cloning these monitors in your account can impair Solace's ability to properly manage your event broker services, which may result in degradation of service. If you clone any monitors that clearly indicate not to copy, it can result in you temporarily losing access to your Datadog account and all changes in your Datadog account being reset.

  • After you have cloned a monitor, remove the Solace-specific tags (solace-*), such as solace-insights and solace_customizable _template, so that it prevents your cloned monitor from being modified or removed during upgrades or content refreshes.
    • The sample template monitor is meant for you to clone as a template and is not actively used (or picked up in the PubSub+ Insights dashboards). Only sample template monitors have the solace_customizable_template tag. If you clone a template monitor, ensure that you remove the solace_customizable_template from the cloned monitor.
  • If you want a custom monitor to be picked up in by the PubSub+ Insights dashboards, you must add the custom_insights tag to the monitor.
  • Using the provided sample template monitor is recommended, but if you clone an active monitor, there are a few caveats to consider:
    • you get the notifications from the original Solace-provided monitor as well as the notification from the cloned monitor that you created
    • if you add custom_insights to a cloned monitor, it can result in both monitors appearing in the PubSub+ Insights dashboards

For information about cloning monitors, see Manage Monitors in the Datadog documentation.

Cloning and Customizing the Template Monitor

Solace provides a sample template monitor that you can clone and customize to create your own custom monitors that log metrics that are of importance to your organization. With the custom template monitor you can define the event logs to monitor, the alert conditions, who is notified when those conditions are met, and what message they receive.

The template monitor is provided as is to enable you to create your own monitors. Solace does not offer or provide support for monitors created using the custom template monitor.

In the procedure below, we create a new monitor that notifies us when a client is having connectivity issues.

  1. In Datadog, on the Monitors page select the Manage Monitors tab, and enter solace_customizable_template in the search field to find the customizable template monitor.

    Image displaying an example of the sample template monitor

  2. Select the Sample template for broker event log monitors by clicking on its name in the Name column.
  3. To clone the template monitor click the icon in the top right corner and select Clone.

    The cloned template monitor opens in edit mode (indicated by the breadcrumb ending with configuration in the top left corner). You can now define your monitors new parameters.

    Image displaying an example of the cloned monitor open for editing

  4. In section 1, click in the field at the top to define your search query. For example, enter event:SYSTEM_CLIENT_CONNECT_FAIL as your search query.
  5. Next you can define the criteria that triggers the monitor. For example, you can define the Count. To do this, click on the field to the right of the group by and select service_name(service_name) and client_username(@client_username) from the drop-down list. Whenever this unique combination appears in our selected logs, a notification is triggered.

    Image displaying the Defint the search query section

  6. In section 2, you set the conditions that cause an alert to trigger: You can use the fields in this section to set the thresholds that trigger alerts and warnings. Note that the default values for both the Alert and Warning thresholds are set to unrealistically high values to prevent the monitor from triggering. This prevents Datadog from sending you unnecessary alerts. You should define different thresholds for each which are meaningful for your organization. When defining your thresholds, Solace recommends using 1 as a starting point.

    Image displaying the options in the Set alert conditions section

  7. In section 3, customize the email that is sent and define tags for the monitor. For the email, you must enter a title. You can also customize the contents of the email, and you can use markdown formatting and variables as required. For more information, see Notifications in the Datadog documentation for more information.

  8. Continuing in section 3, use the field directly below the notification field to enter the email addresses of the people who need to be notified when alert or warning levels are reached. You can use the remaining fields to define when they are notified.

  9. Optional: Continuing in section 3, you can enable the Renotification toggle to define a second message that is sent if the warning or alarm thresholds persist.

  10. Continuing in section 3, you must modify the Tags field located below the Renotification message field toggle. It is critical that you remove the following tags:
    • solace_insights
    • solace_customizable_templates
    • version:*.*.*

    You must then add the custom_insights tag. This prevents your custom monitor from being affected by future updates.

You have successfully configured a monitor that alerts you whenever a client has issues connecting to your services.

Muting PubSub+ Insights Monitors for Datadog

You can mute PubSub+ Insights monitors for Datadog. When a PubSub+ Insights monitors is muted, it continues to trigger on alerts and warnings, but it won't send out notifications. There are numerous reasons you may want to mute PubSub+ Insights monitors. Perhaps you want to be notified at different thresholds than those set by default. You clone one of the PubSub+ Insights monitors, set the thresholds you need, and then mute the original, ensuring you only receive notifications from your customized monitor.

Muting PubSub+ Insights dashboards does not affect Solace's ability to monitor the operation of your services. However, a muted PubSub+ Insights dashboards should be configured with caution to avoid missing notifications that are relevant to your monitoring needs. You should note that Solace provides some proprietary monitors that may not be mutable directly without having the correct roles and permissions. You can mute these monitors by scheduling downtime using their monitor tags. See Muting Locked PubSub+ Insights Monitors for Datadog Using Downtime for more details.

  1. In Datadog, go to MonitorsManage Monitors to access the list of monitors. You may have to toggle the False setting flag under the Active filter to the left of the table to see a full list of available downtimes.
  2. Select the monitor you want to mute by clicking it in the list.
  3. Click on the gear icon Gear icon in the top right corner and select Clone from the menu that opens.
  4. The monitor is cloned and opens in configuration mode, which should be familiar from Cloning Existing PubSub+ Insights Dashboards for Datadog for Reuse if you have previously cloned monitors.

  5. Scroll down to section 2- Set Alert Conditions and alter the conditions so that the monitor only triggers notifications according to your requirements. At least one condition must be configured differently than those existing in the original monitor or you won't be allowed to save the cloned monitor.

    Image displaying the Set alert conditions options in Datadog

  6. Once the thresholds are configured, click Save at the bottom of the screen.
  7. The cloned monitor closes and you are returned to the original monitor. A Mute button icon becomes available next to the Gear icon icon in the top right corner. Click Mute button to open the mute options. Note that some monitors can't be muted this way, see Muting Locked PubSub+ Insights Monitors for Datadog Using Downtime for more details.

    Image displaying the Mute options window

  8. Set your mute options. In most cases, you can set the mute to forever. This ensures you don't receive duplicate notifications from both monitors, and are only notified according to the thresholds you have configured for the monitor.

Quickly Mute and Unmute Monitors

You can quickly mute and unmute PubSub+ Insights monitors for Datadog directly from the list of Monitors using the quick mute icon quick mute icon.

Image disdplaying the location of the Quick Mute button

Muting a monitor this way does so for an indefinite time period. You should note that muting monitors this way generally won't work for proprietary [Insights] monitors, see Muting Locked PubSub+ Insights Monitors for Datadog Using Downtime for details.

Muting Locked PubSub+ Insights Monitors for Datadog Using Downtime

You may encounter some PubSub+ Insights monitors for Datadog that appear to be locked to even users with the Insights Advanced Manager or Insights Advanced Editor role. These locked PubSub+ Insights monitors are generally proprietary monitors provided by Solace. You can see if a monitor is locked by selecting it from the monitor list and scrolling to the Define permissions and audit notifications section of the monitor. A locked monitor displays a statement similar to 'This monitor is locked: only its create and admins can edit it.'

Image displaying an example of how a locked monitor appears in the Define permission and audit notifications section

If the monitor is locked, it can still be muted by scheduling a downtime using its tags, see Scheduling Downtime.

Scheduling Downtime

Downtime for Insights monitors can be scheduled in Datadog. A scheduled downtime allows monitors to be muted for a scheduled start time and duration. This is useful if you are planning upgrades or other work that may trigger notifications from the various Datadog monitors. Perhaps you have a datacenter that has a maintenance scheduled on a specific weekday every week, causing notifications to be sent whenever the maintenance is occurring, you can schedule a downtime for that period, muting notification for that time. Once scheduled downtimes have been created, you can later edit, clone, or cancel them, see Edit, Clone, or Cancel a Scheduled Downtime.

Scheduling downtime does not affect the ability of Solace to monitor your services.

  1. In Datadog, go to MonitorsManage Downtimes to access the list of currently scheduled downtimes.

    Image showing location of Schedule Downtime button on Manage Downtimes tab of Monitor screen in Datadog

  2. Click schedule downtime icon to open the Schedule Downtime window.
  3. In step 1, choose the monitor to silence. You can select to schedule downtime for monitors by their Monitor Name or Monitor Tags using the Example of the By Monitor Name, By Monitor Tags toggle button toggle in the top of the section:
    • Selecting By Monitor Name displays the Monitor field where monitors can be selected from a list, or entered if the monitor name is known.
    • Selecting By Monitor Tags displays the Monitor Tag field where tags can be selected from a list, or entered if the tag name is known. Tags are attached to monitors and can be viewed by selecting a monitor and viewing its TAGS section.

      Image displaying the location of TAGS for a selected monitor

    • You can also mute by scope such as service_id:some_id or queue_name:some_queue_name using the Group Scope fields.
    • Select Preview Affected Monitors to see a preview of the monitors that are affected by your selections
  4. In step 2, configure the schedule for the downtime. Downtimes can be one time events, or reoccurring. You can also specify the day, start time, and end time for the downtime.
  5. In step 3, define a message that is sent to notify people about the scheduled downtime when it occurs. You can enter emails of the people to notify using @handle notation or select them from the menu in step 4.

Edit, Clone, or Cancel a Scheduled Downtime

Once you have created scheduled downtimes, you can edit, clone, or cancel them as required.

  1. In Datadog, go to MonitorsManage Downtimes to access the list of currently scheduled downtimes.
  2. Hover the cursor over the schedule you want to change. A menu appears from the right side of the monitor.

    Image displaying the location of the Edit, Clone, and Cancel menu on the Monitors list

  3. Click the icon related to the task you want to do:
    • edit icon - Edit - Opens the Edit Downtime screen. This screen is identical to the Schedule Downtime screen detailed above (Scheduling Downtime) but with the fields already populated. You can change the fields as needed then click Save. You are returned to the list of scheduled downtimes with your edited downtime open.
    • clone icon - Clone - Opens the Clown Downtime screen. This screen is identical to the Schedule Downtime screen detailed above (Scheduling Downtime) but with the fields already populated. You can change the fields as needed and click Clone. You are returned to the list of scheduled downtimes with your cloned downtime open.
    • Cancel downtime icon - Cancel - Opens a confirmation window. Click Confirm to remove the scheduled downtime from the list.

Creating Custom Views

The default view for a dashboard shows everything in a predefined time interval without an filters applied. You may want to create different views to give you different contexts for the information on your dashboard, which can be useful for troubleshooting or analyzing your estate.

When you apply data or time filters to a view, that filtering isn't saved. If you want to save the view based on your filtering choices, click the Saved Views drop-down list and enter a new name for your view. You'll notice an URL is created. That URL can be used to return to the view with your filters applied. The saved view is also now accessible from the Saved Views drop-down list.

For more information about managing custom views, see Saved Views in the Datadog documentation.

Creating Filters

In addition to the some of predefined filters that are provided on the PubSub+ Insights dashboards for Datadog, you can also create your own filters. To do this, you create a Template Variable to create additional filters. These template variables can give you different views the data to help you better understand different aspects of your estate. Here's a quick overview of how to do this:

  1. On the dashboard, click the Edit beside the $service_name.
  2. Click Add Variable.
  3. In the Name field, enter a name for your variable.
  4. In the next Tag or Attribute field for you new variable, select the tag or attribute to use as a filter.
  5. (Optional) Select a value for the Default Value field. The default is to use * (all).
  6. Click Done or repeat steps 2 to 5 until you have created all your variables.

For more information, see the Template Variables in the Datadog documentation.