Creating blueprint definitions
You can create a blueprint in one of the following ways:
- By using the available nodes and their relationships: Use this method if you have limited knowledge of the nodes in the infrastructure for which you create the blueprint.
- By using available nodes and establishing relationships between them: Use this method if you have complete knowledge of the nodes in the infrastructure for which you create the blueprint.
Before you begin
Before you start creating a blueprint, perform the following tasks:
- Discover the relevant infrastructure.
- Understand the nodes and their relationships that are present in the infrastructure for which you want to create a blueprint. For example, if you want to create a blueprint for a Kubernetes-based application, understand the namespaces, clusters, deployments, and their relationships.
- Identify the starting node for a blueprint.
Sample blueprint for the Kubernetes applications
The following figure illustrates a sample blueprint, Kubernetes Infrastructure Blueprint, which represents the Kubernetes infrastructure. You can use the blueprint to create business services to monitor Kubernetes applications, for example, a Train Ticket Management System., an application that might be used to manage train reservations.
The sample blueprint for the Kubernetes applications contains the following information:
- Start node: This is a Namespace node.
- Default rule on the start node: Contains the following information:
- Default filter criteria set on the start node: Indicates that the name of the namespace is added as a variable. This variable provides you the flexibility to specify the namespace name while creating an application or service by using the blueprint. The model is populated according to the specified name.
- The content of the namespace is required and must be included while creating an application or service by using this blueprint.
- Link rules: Indicate the relationship rules between different nodes. For example, the Collection rule between the Namespace and Deployment nodes indicates that only those deployments that are members of the namespace are considered when an application or service is created by using the blueprint.
- Traversal path and connected nodes: Associated clusters, deployments, software pods, and hosts.
Use the steps described in the following procedure to create this blueprint.
To create a blueprint by using the available nodes and their relationships
- On the Manage Blueprint Definitions page, click Create Blueprint.
- Specify the name, description (optional), and provider (domain) details for the blueprint.
For example, Kubernetes Infrastructure Blueprint, v1, itbiz.com. - In the Select Nodes section, perform the following steps:
- Click + Add Nodes.
The Add Nodes page displays a list of all available nodes for selection. - Filter and add the required nodes by performing one of the following steps:
- Type the name of the nodes (minimum three characters) that you are want to add.
- Select another category and subcategory.
For example, to add a namespace node, select the Cloud & Container Orchestration category and the Namespace subcategory.
- Scroll down to see the Include Related CIs check box.
- Select one or more nodes. Select Include related Nodes and Add to add the node with all the related elements or click Add to add only the selected node or nodes.
When you select only one node, the check box is selected by default, which indicates that all the related CIs of the selected CI will also be added. - Click Close to close the Add Nodes page.
- (Optional) To undo the selected nodes and start over, click Clear Content and perform steps 3 a to 3 c again.
- (Optional) Set the service topology display option as either Organic or Hierarchic (default).
- Click + Add Nodes.
Click Next Step.
The blueprint is created with a default filter with the Name attribute added to the start node.- Click Next Step.
Based on the selected node (cattle-fleet-system) in the previous step, its node kind (Namespace) is displayed as the start node. Because you have selected the Include Related CIs check box in a previous step, its relationship with other nodes, is also displayed.
In addition, a default rule is added to the start node and link rules are added between different nodes.
- Default rule on the start node: Contains the following information:
- Default filter criteria set on the start node: Indicates that the name of the namespace is added as a variable. This variable provides you the flexibility to specify the namespace name while creating an applklication or service by using the blueprint. The model is populated according to the specified name.
- The content of the namespace is required and must be included while creating an application or service by using this blueprint.
- Link rules: Indicate the relationship rules between different nodes. For example, the Collection rule between the Namespace and Deployment nodes indicates that only those deployments that are members of the namespace are considered when an application or service is created by using the blueprint.
- Default rule on the start node: Contains the following information:
- (Optional) Edit the default rule, or add more node kinds, node rules, and link rules if this blueprint does not meet your blueprint requirements.
For information about adding kinds, node rules, and link rules, see To create a service blueprint from CI kinds.
- Click Next Step to preview the blueprint.
- Select the name of the namespace (for example, cattle-fleet-system) in the right pane.
The left pane shows the blueprint preview according to the selected namespace. By default, nodes of the same kind are not grouped. To group nodes of the same kind, use Enable grouping by Node Kindor Disable grouping by Node Kind
.
Click Save to save the blueprint.
The blueprint is added to the list of blueprints available in BMC Discovery. By default, the newly created blueprint is not displayed on the Manage Blueprint Definitions page.
When you create a service by using the Kubernetes Infrastructure Blueprint, the service topology is populated according to the namespace you provide as input. For example, the service topology of the Train Ticket Management System application looks like the following example when you provide the ticketing namespace as the input.
For more information about creating a service by using a blueprint, see Defining a service.
To modify a blueprint
When you have created and saved a blueprint, you can modify it. If you observe an error on any of the nodes, resolve it. For more information, see To resolve errors when selecting a node kind.
- Perform the following actions to make modifications to the blueprint:
- (Optional) Edit the default filter criterion or add more filter criteria:
- Select the start node.
- On the Define Node Rule page, from Actions, select Edit.
- On the Define Filter Criteria page, from Actions, select Edit.
- Click Set as variable and update the message in the Define user prompt message text box if needed.
- Select a named attribute.
- (Optional) Select an extended attribute:
- From the Actions menu
, select Use Extended Attributes.
- Select extended attributes from the displayed list.
- From the Actions menu
- Click Add New Filter Criteria to add more filter criteria.
- Click Save and close.
- Click Save and close on the Define Node Rule page.
- (Optional) To change the list view, from the Available Node Kinds section, select Tile view
or List view
.
- (Optional) To add an additional node to the blueprint, select a node kind from the Available Node Kinds section. You can also use the filter to choose the node kind by name.
- Click the selected node kind to define node rules.
- (Optional) Change the node kind from the list by selecting one or more kinds.
- (Optional) Select an unwanted node kind from the map and delete it.
- (Optional) Include (default) or exclude the content of a node kind. You have an option to exclude the content of a node kind and keep only the related nodes as part of a blueprint.
- (Optional) Add or edit the filter criteria and save the changes. For more information on resolving the node kind errors, see To resolve errors when selecting a node kind.
- (Optional) Edit the default filter criterion or add more filter criteria:
- (Optional) Click Next step to preview the blueprint model.
- In the right pane, select a node to use to preview the blueprint. Use the filter to find the required start node. The preview is displayed in the left pane.
- Click Save to save the blueprint.
For more information on viewing the list of blueprints, see To view the blueprints.
Sample blueprint for the AppDdynamics applications
The following figure illustrates a sample blueprint, AppDynamics Application Infrastructure, which represents the AppDynamics application infrastructure. You can use the blueprint to create business services to monitor AppDynamics applications, for example, Retail Outlet. This application is used to manage outlets in a retail chain of restaurants.
The sample blueprint for the AppDynamics applications contains the following information:
- Start node: Is a node of Software Cluster type.
- Default CI rule on the start node: Contains the following information:
- Default filter criteria set on the start node: Indicates that the name of the software cluster is added as a variable. This variable provides you the flexibility to specify the cluster name while creating a service by using the blueprint. According to the specified name, the entire service topology is populated.
- Content of the software cluster is required and must be included while creating a service by using this blueprint.
- Link rules: Indicate the relationship rules between different CI kind nodes.
- Traversal path and connected nodes: Are associated software clusters, software components, software instances, and so on.
Use the steps described in the following procedure to create this blueprint.
To create a blueprint from the available node kinds and establishing relationships between them
Use the node kinds and establish relationships between them to create a blueprint, AppDynamics Application Infrastructure, which is described in the previous section.
Task 1: Provide blueprint details
- On the Manage Blueprint Definitions page, click Create Blueprint..
- Specify the name, description, and provider (domain) details for the blueprint.
For example, AppDynamics Application Infrastructure, V1, itbiz.com.
Task 2: Add CI kinds and establish relationships between them
- Click Next Step to skip the Add Nodes step and start creating the blueprint by adding node kinds.
Add the node kinds by clicking them in the Available Node Kinds panel. Use the Filter to help find the node kind that you require.
Establish relationships between them by dragging one node kind towards another.
For example, add Software Cluster, Software Instance, and Software Component. For the list of CI kinds and relationships that you can add to a blueprint, see Supported CI Kinds and relationships.- After establishing relationships, make sure that there is only one start node.
Multiple start nodes are indicated by an error icon above the possible start nodes. - (Optional) Assign any other node as the start node.
For example, if you want to start with the Software Cluster node, you can assign it as the start node.- Select the node kind that you want to assign as the start node.
- On the Define Node Rule page, click Specify Blueprint Start Node Kind.
When you assign any other node kind as the start node, the blueprint is automatically re-computed.
- To change the list view, from the Available CI Kinds section, select view as icons
or view as type
.
- (Optional) Set the blueprint display option as either Organic or Hierarchic (default).
Task 3: Define CI rules for the start node and other nodes
- Define the node rules for the start node.
- Click the start node.
On the Define Node Rule page, the default filter criterion shows the Name attribute of a node added as a variable. When creating a service by using this blueprint, you need to provide this attribute as the input. In the sample blueprint, the name of a software cluster is set as a variable. - (Optional) Change the node kind from the list by selecting one or more node kinds.
- Include (default) or exclude the content of a node kind.
You can exclude the content of a node kind and keep only the related nodes as part of a blueprint. - Make sure that the Required Content check box is selected to indicate that content (nodes) must exist for the start node.
- (Optional) Edit the default filter criterion:
- On the Define Node Rule page, select Edit from Action.
- On the Define Filter page, select Edit from Action.
- Clear the Set as variable check box if you don't want to set the default attribute, Name, as a variable.
The filter criterion of a start node must have at least one attribute set as a variable. You can set up to three attributes as variables in a blueprint, including one mandatory variable for the start node. - Update the message in the Define user prompt message text box if needed.
For example, replace the existing message with the following message: Select the Cluster App name - Select any other CI attribute for the default filter criterion:
- Select a named CI attribute.
- Select an extended CI attribute.
To view extended CI attributes, from Actions , select Use Extended Attributes.
- (Optional) Add more filter criteria to the start node:
- On the Define Node Rule page, select Edit from Action.
- On the Define Filter page, select Edit from Action.
- Click Add New Filter Criteria.
- To set a node attribute as a variable, click Set as variable and update the message in the Define user prompt message text box if needed.
You can set up to three attributes as variables in a blueprint, including one mandatory variable for the start node. When creating a service by using this blueprint, you need to provide these attributes as inputs. - (Optional) If you don't want to set a node attribute as a variable, perform the following steps to select a node attribute and its value:
- Select a named CI attribute, for example, key.
To view extended CI attributes, from Actions , select Use Extended Attributes.
- Select a named CI attribute, for example, key.
- Click the start node.
- Select the CI attribute value from the right pane or enter a regular expression.
For example, enter APPDYNAMICS.* as the regular expression so that when you create a service by using the blueprint, the service topology contains only the clusters whose key starts with APPDYNAMICS.*.
- Select the CI attribute value from the right pane or enter a regular expression.
- Click Save and Close.
- Save and close the Define CI Rule page.
- Define the node rules for other nodes.
- Select the node kind (for example, Software Cluster) for which you want to define the node rules.
- (Optional) On the Define Node Rule page, change the node kind from the list by selecting one or more node kinds.
- Include (default) or exclude the content of a node kind.
You can exclude the content of a node kind and keep only the related nodes as part of a blueprint. - Select the Required Content check box to indicate that the content must exist for the node .
- To add a filter, click Add New Filter.
- On the Define Filter page, click Add New Filter Criteria.
- To set a node attribute as a variable, click Set as variable and update the message in the Define user prompt message text box if needed.
You can set up to three attributes as variables in a blueprint, including one mandatory variable for the start node. When creating a service by using this blueprint, you need to provide these attributes as inputs. - Optional) If you don't want to set a node attribute as a variable, perform the following steps to select a node attribute and its value:
- Select a named CI attribute, for example, key.
To view extended CI attributes, from Actions , select Use Extended Attributes. - Select the CI attribute value from the right pane or enter a regular expression.
For example, if you want to filter the AppDynamics applications only with the names Pricing and Inventory, enter Pricing and then Inventory in the Value field and select them.
- Select a named CI attribute, for example, key.
- Click Save and Close.
The Define Node Rule page shows the filter criterion. - Save and close the Define Node Rule page.
The node shows the filter icon. - (Optional) Define rules on the relationships between node kinds.
For example, add the Communication rule between Software Cluster and Software Component. This rule indicates that the software cluster must be communicating with the software component.- Click the link between the node kinds.
- On the Define link page, select Filter by Kind.
- From the relationship type list, select Communucation.
- Similarly, add the Hosted Software rule between Virtual Machine and Host, as shown in the following image:
- If you observe any errors on any of the nodes kinds, resolve them.
For more information, see To resolve errors when selecting a node kind.
Task 4: Preview and save the blueprint
- Click Next step.
- Select the name of the cluster (for example, Retail-Outlet) in the right pane.
- If you have added attributes as variables in the filter criterion of other nodes, select the attribute values in each step in the right pane.
The left pane shows the blueprint preview according to the selected cluster name. By default, nodes of the same kind are grouped. - (Optional) Use Disable grouping by Node Kind to ungroup the nodes.
Click Save to save the blueprint.
The blueprint is added to the list of blueprints available in BMC Discovery. By default, the newly created blueprint is not displayed on the Service Blueprints page.For more information on viewing the list of blueprints, see To view the blueprints.
To resolve errors when selecting a node kind
While you are creating or editing a blueprint, you might encounter an error. The error icon is displayed above the node kind that you select.
Perform the following steps to resolve the error:
Hover over the node kind for the tips and based on the error tips, do one of the following actions:
- Ensure that there are no unconnected nodes. There must be only one starting node in the model.
- If there is only one starting node with an error icon, do the following steps:
- Click the node to view the Define Node Rule page.
- Either select Add New Filter > Add New Filter Criteria and add filter criteria or select Edit > Edit and edit filter criteria.
You can add only one filter to a root node and a maximum of three filters to a child node.- Click Set as variable and type a message in the Define user prompt message text box.
- Select a named attribute.
- (Optional) Select an extended attribute:
- From the Actions menu
, select Use Extended Attributes.
- Select extended attributes from the displayed list.
- From the Actions menu
- Click Save and close.
- Click Save and close on the Define Node Rule page. The error message on the node disappears.
Actions available on service blueprints
On the Service blueprints page, click the Action menu to perform actions based on your requirements.
Action | Notes |
---|---|
View |
|
Enable |
|
Disable |
|
Create new Blueprint from | A copy of the existing blueprint with the suffix, (copy) is created. |
Edit | Edit a blueprint. |
List related Services | The services that are currently using a blueprint are displayed. |
Export | The blueprint is exported to a JSON file in your default downloads folder. |
Import |
|
Delete | You can only delete blueprints that are not part of a service; the Delete option is disabled for a blueprint that is part of a service. |
Where to go from here
Once you have created blueprints, you can use them to model your services. For details, see Modeling services by using blueprints.