Creating Playbook
How do Playbooks work?
Playbooks is a sequence of investigation steps defined to enable accelerated diagnosis incase the same strategy needs to be executed again.
Every playbook has the following fields:
- Playbook Title: Name of the playbook.
- Global Variables: Variables that can be defined for usage across the playbook.
- Time Range: A global time range for usage across all queries in your playbook.
- Investigation steps: An investigation step is a component that defines what is to be checked.
A step can further be broken down into the following fields:
-
Title: Name of the Step
-
Query: Definition of a metric/log/db query that needs to be run on a specific integration. The permitted outputs currently include:
- Line graph with one or multiple series.
- Tabular information.
- Strings.
-
Notes: Description of why that step is being taken, how to interpret data from that step or any additional information to assist the user.
-
External Links: Any 3rd party links that can be relevant in context of the step.
-
Output: The result of execution of "Query".
-
Step Variables: In case you are using Grafana+Prometheus integration, any variable defined in your metric_query using $var_name will be accessible in the step with a dropdown.
A query can further be broken down into the following fields basis different tools:
- AWS Log Insights Query:
- source: Cloudwatch Logs
Dropdown
- region: AWS region
Dropdown
- log_group: Relevant log group to search
Dropdown
- query: Log Insights syntax compatible query to be passed
string
- source: Cloudwatch Logs
- AWS Cloudwatch Metrics Query:
- source: Cloudwatch Metrics
Dropdown
- Namespace: AWS offering who's metric needs to be checked
Dropdown
- Region: AWS region
Dropdown
- Dimension: Combination of Dimension-Name: Dimension-Value that a user wants to check metric against
Dropdown
- Metric: Metric to be queries for the dimensions within the namespace
Dropdown
- source: Cloudwatch Metrics
- Grafana + PromQL:
- source: Grafana Promql
Dropdown
- Dashboard name: Name of Dashboard from Grafana
Dropdown
- Panel name: Name of panel from Grafana
Dropdown
- Query: Query from within the panel that is to be plotted
Dropdown
- Variables: List of possible variable values for var_name in case $var_name exists within the Query.
Dropdown
[Optional] - Custom Query: String access to the query in case user wants to make minor tweak (Cannot add $var_name)
String
- source: Grafana Promql
- ClickhouseDB:
- source: Database Clickhouse
- DB name: default
- Query: Define query to run on CH Database
String
- Datadog:
- source: Datadog Service
- Select a service in Datadog
- Select a group of metrics related to that service
- Select final metric to be run
Updated 2 days ago