Modeling services by using blueprints


You can model your services by using blueprints. BMC Discovery provides default blueprints, which you can use to create your own services. You can also create blueprints from scratch. 

The service models that you can create by using blueprints in BMC Discovery allow you to model the structure of your service. If you need to monitor the health and availability of a service, you might need to add: 

  • health indicators: metrics (for example, Network Utilization or CPU usage) for each service that indicate the service availability.
  • balancing profiles: to set a threshold for the resources that are part of a cluster, thus ensuring optimal service performance.

or add labels and event rules. You can add these by using BMC Discovery. To so so, you can either create your service model in BMC Discovery and add the metrics to the model by using

BMC Helix AIOps

, or simply create the model in

BMC Helix AIOps

. See the

BMC Helix AIOps

documentation on Building service models.

Regular expressions in Blueprints

Defining a service enables you to efficiently manage the underlying applications and infrastructure that is relevant to your business needs. Blueprints are templates that give you complete control of the service that you are modeling. You can use both static and dynamic content to control the model composition. 

Blueprints

Blueprints are predefined service templates or building blocks to be used by organizations for defining services when creating service models. Blueprints visually map out the steps that make up a service process, and make it simpler to design a new service, or improve an existing service. Blueprints play a significant role in managing service operations, service design, and service positioning.

Blueprints in BMC Discovery include nodes that can be defined to have static or dynamic rules. Each blueprint contains one or more nodes of the same kind, interconnected to define a relationship.

Blueprints in BMC Discovery

Global flags in Python are meant to be placed at the start of regular expressions. Earlier versions of Python issued warnings for misplaced flags. BMC Discovery now uses Python 3.11, in which misplaced flags are an error. TKU patterns have been updated for this change, and the TPL compiler now warns if flags are misplaced in your custom patterns. However, regex searches with misplaced flags fail silently. In Blueprints, the searches fail to match and, without notification, your Blueprints will be empty, or will not contain what you expect.

A simple example of a misplaced flag is: '^(?i)Linux' which can be corrected to '(?i)^Linux'

Similarly: '/Common/(?i)((FV|dl)515sy):2121' can be corrected to '(?i)/Common/((FV|dl)515sy):2121'

An example from the EMC ControlCenter StorageScope pattern is: '^(?i)EMC ControlCenter \d(?:\.\d)*' which has been corrected in the TKU to '(?i)^EMC ControlCenter \d(?:\.\d)*'

Nodes and node kinds 

  • A node is an object that represents an entity in the environment discovered by BMC Discovery and stored in the datastore. Nodes can be connected to other nodes by using relationships.
  • A node kind is the type of a node, such as a Host or Software Instance. The default set of nodes and their named attributes and relationships are defined in the BMC Discovery taxonomy. 

To create a service model by using a blueprint

You create a service model on the Blueprint Service Editor page. 

  1. Perform the following steps to access the Blueprint Service Editor page:
    1. Click Model > Services & Applications.
    2. On the Services & Applications page, click Create/Import.
    3. Select the Create With Blueprints tab.
    4. Click Blueprint Service Editor.
      The Blueprint Service Editor page is displayed.
      BlueprintServiceEditorBlank.png

  2. Click New Business Service and add the following details:
    1. Specify the service name.
    2. By default, a service is created as a Business Service.
      You can also choose to create a Technical Service, or a Business Application by using the Kind dropdown. 
      ChooseKind.png
      For more information about service kinds, see Service-and-application-modeling.
    3. (Optional) Click Add Dynamic content to add dynamic service components such as blueprints to the service. 
    4. (Optional) Click Add Static content to add static service components such as nodes to the service.
    5. (Optional) View content. 
    6. Save and close.
  3. (Optional) Click a service in the Add Existing Service section to add an existing service to the service model. You can repeat this step to add more new services.
  4. (Optional) Click + Add Service to add a new service to the service model. You can repeat this step to add more new services.
  5. (Optional) Flip the relationship (connecting arrow) direction if required.  Right-click, and select Flip direction. The arrow represents the impact direction. 
  6. (Optional) Remove an element from the hierarchy by using one of the following options: 
    • Hover over the service for which you want to remove child or parent services, and then right-click and select Remove element from hierarchy to delete the element.
    • Hover over the arrow between two elements, and then right-click, and select Remove element from hierarchy to delete the element.
  7. Click Save and close.

To add dynamic content to a service model 

Can I use the same blueprint multiple times?

  • The same blueprint cannot be used more than once in a service model.
  • You can use the same blueprint in different service models.
  • You can use a combination of blueprints in service models.
  1. Click Add Dynamic content.
  2. Select a Blueprint from the list.
  3. Select one or more node kinds in the Blueprint Configuration section, or any other custom-configuration. For more information on using regular expressions to search, see Logical and arithmetic expressions.

  4. Add the configuration and save.

For more information on service blueprints, see Managing-blueprint-definitions.

To add static content to a service model

  1. Click Add Static content.
  2. Click Add Nodes to Service to add nodes from the list.
  3. (Optional) Perform one of the following actions:
    • To include all related objects with the selected nodes, click Add (inc. related).
    • To add only the selected nodes without related objects, click Add.
  4. Click Close.
    The service model is displayed.
  5. (Optional) Change the display to Organic or Hierarchic view.
  6. Save the changes.

To view the service details 

Once you have saved the service model, it is available to view outside the Blueprint Service Editor page.

  1. Click Explore > Data.
  2. In the Services & Applications pane, select Business Services.
  3. Click the Business Service that you want to view.
    The Business Service is displayed in a visualization, and the Business Service details are displayed beneath the model view.
    BusinessServiceModelingWindow.png

To view the service in the Blueprint Service Editor page 

From the visualization, you can return to the Blueprint Service Editor page. You might, for example want to make revisions to the blueprint.

  1. Click Explore > Data.
  2. From the Services & Applications pane, select Business Services.
  3. Click the Business Service that you want to view.
    The Business Service is displayed in the modeling window.
    EditService.png
  4. Click Revise Model.
    The Business Service is now displayed in the Blueprint Service Editor page.
    EditServiceInEditor.png

To edit a service model


  1. Select the Business Service in the Blueprint Service Editor page. For more information, see To view the service in the Blueprint Service Editor page.
    The Define Service panel is displayed.
  2. In the Define Service panel, you can modify the service name, or:
    1. (Optional) Click Add Dynamic content to add more components to the service or click Edit EditDynamicButton.png to modify an existing dynamic service component
    2. (Optional) Click Add Static content to add or Edit Static content to modify the static service components such as nodes, to the service.

      Important

      Either a dynamic or static content is essential for defining a valid service model. You can define both in a model.

    3. Save and close.
  3. (Optional) Click a service in the Add Existing Service section to add an existing service to the service model. You can repeat this step to add more new services. 
    Drag from the new service to an existing service, or from an existing service to the new one to create a connection. The connection is directional, with impact flow coming from the first service to the second service. You can flip the direction of the connection.
  4. (Optional) Click + Add Service to add a new service as part of the service model and add dynamic or static content as described in step 3. You can repeat this step to add more new services.
    Drag from the new service to an existing service, or from an existing service to the new one to create a connection. The connection is directional, with impact flow coming from the first service to the second service. You can flip the direction of the connection.
  5. (Optional) Flip the relationship (connecting arrow) direction if required.  Right-click, and select Flip direction. The arrow represents the impact direction. 
  6. (Optional) Remove an element from hierarchy by using one of the following options: 
    • Hover over a service for which you want to remove child or parent services, right-click, and select Remove element from hierarchy to delete the element.
    • Hover over of the arrow between two elements, right-click, and select Remove element from hierarchy to delete the element.
  7. Save and close.

To edit the dynamic content of a service model

  1. Select the Business Service in the Blueprint Service Editor page.  For more information, see To view the service in the Blueprint Service Editor page.
    The Define Service panel is displayed.
  2. In the Define Service pane click Edit EditDynamicButton.pngand modify an existing dynamic service component.  
    • You can change the “Blueprint Configuration” to another node kind.
    • You cannot change the blueprint type, you must delete the existing blueprint and select a new one.
  3. Click Save to add the component.
  4. (Optional) Repeat the steps to add more parent or child services to the model.

To edit the static content of a service model

  1. Select the Business Service in the Blueprint Service Editor page. For more information, see To view the service in the Blueprint Service Editor page.
  2. Click the Business Service icon in the editor.
    The Define Service panel is displayed.
  3. In the Static Composition section, click Edit Static content (n Nodes). n is the number of nodes in the static content.
  4. To add nodes from the list, click Add Nodes to Service.
  5. Click Add (incl. related) if you want to include all the related objects with the selected nodes or click Add to add only the selected nodes without related objects.
  6. Click Close to close the editor view.
    The service model displayed.
  7. (Optional) Change the display to Organic or Hierarchic view.
  8. Save the changes.
  9. (Optional) Repeat the steps to add more parent or child services to the model.

To delete a service model

  1. Select the model that you want to delete in the modeling window.
  2. From the Actions menu, select Delete Model.
    You are prompted for confirmation.

To delete dynamic content from a service model

  1. Select the Business Service in the Blueprint Service Editor page. For more information, see To view the service in the Blueprint Service Editor page.
  2. Click the Business Service icon in the editor.
    The Define Service panel is displayed.
  3. In the Dynamic composition section, click delete_dynamic_model_icon.pngto delete dynamic content.
  4. (Optional) Repeat the deletion to remove additional dynamic content.
  5. Save the changes.
  6. (Optional) Repeat steps 1 to 3 to delete dynamic content from other services.

To delete nodes from static content in a service model

  1. Select the Business Service in the Blueprint Service Editor page. For more information, see To view the service in the Blueprint Service Editor page.
  2. Click the business service icon in the editor.
    The Define Service panel is displayed.
  3. In the Static composition section, click Edit Static content.
  4. Select a node from the hierarchy, right-click, and select Delete.
  5. (Optional) Repeat the deletion for any other nodes.
  6. Save the changes.

To add a child or parent service to a service model

  1. Select the Business Service in the Blueprint Service Editor page. For more information, see To view the service in the Blueprint Service Editor page.
  2. Hover over a service for which you want to add child or parent services, right-click, and select Add Child Service or Add Parent Service.
  3. (Optional) Repeat the steps for each service in the model to which you want to add a parent or child service.

To view a child or parent service of a service model

  1. Select the Business Service in the Blueprint Service Editor page. For more information, see To view the service in the Blueprint Service Editor page.
  2. Click the business service icon in the editor.
    The Define Service panel is displayed.
  3. In the Dependencies section , click one of the dependencies to view the service name and node kinds for the parent and child services.
    view_parent_child_service.png

To view the content of a service model

  1. Select the Business Service in the Blueprint Service Editor page. For more information, see To view the service in the Blueprint Service Editor page.
  2. Click the business service icon in the editor.
    The Define Service panel is displayed.
  3. At the bottom of the panel, click View Content, ViewContent.png, and then one of the options:
    • Direct Connections – shows the service model for the selected business service.
    • All content – where you have selected multiple business services, select the parent, and click All content to view the service model for all the selected business services.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*