-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from DrDroidLab/playbooks_templates
adding playbooks-templates for users to directly import
- Loading branch information
Showing
3 changed files
with
101 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# playbooks-templates | ||
Ready to use playbooks for common use-cases | Doctor Droid | ||
|
||
|
||
1. Post-deployment monitoring playbook. | ||
|
||
2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"name": "Deployment Stability Tracker", | ||
"steps": [ | ||
{ | ||
"description": "service_metric_deviation", | ||
"tasks": [ | ||
{ | ||
"description": "service_metric_deviation", | ||
"notes": "", | ||
"type": "METRIC", | ||
"metric_task": { | ||
"source": "DATADOG", | ||
"datadog_task": { | ||
"type": "SERVICE_METRIC_EXECUTION", | ||
"service_metric_execution_task": { | ||
"service_name": "{ingest}", | ||
"environment_name": "{prod}", | ||
"metric_family": "{trace}", | ||
"metric": "{trace.django.request.duration.by_http_status}", | ||
"process_function": "timeseries" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "Pod health", | ||
"tasks": [ | ||
{ | ||
"description": "Pod health", | ||
"notes": "", | ||
"type": "DATA_FETCH", | ||
"data_fetch_task": { | ||
"source": "EKS", | ||
"eks_data_fetch_task": { | ||
"command_type": "GET_PODS", | ||
"description": "Get Pod Details", | ||
"region": "{us-west-2}", | ||
"cluster": "{prod}", | ||
"namespace": "{deployment}" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "deviation in critical new alerts", | ||
"tasks": [ | ||
{ | ||
"description": "deviation in critical new alerts", | ||
"notes": "", | ||
"type": "METRIC", | ||
"metric_task": { | ||
"source": "DATADOG", | ||
"datadog_task": { | ||
"type": "SERVICE_METRIC_EXECUTION", | ||
"service_metric_execution_task": { | ||
"service_name": "{prototype}", | ||
"environment_name": "{prod}", | ||
"metric_family": "{trace}", | ||
"metric": "{trace.django.request.duration}", | ||
"process_function": "timeseries" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "Cloudwatch error counts", | ||
"tasks": [ | ||
{ | ||
"description": "Cloudwatch error counts", | ||
"notes": "", | ||
"type": "METRIC", | ||
"metric_task": { | ||
"source": "CLOUDWATCH", | ||
"cloudwatch_task": { | ||
"type": "FILTER_LOG_EVENTS", | ||
"filter_log_events_task": { | ||
"region": "{us-west-2}", | ||
"log_group_name": "{/aws/containerinsights/prod/application}", | ||
"filter_query": "{fields @timestamp, @message\\n| filter @message like /error/\\n| stats count() as ErrorCount by bin(1m)}" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |