Skip to content

Commit

Permalink
Merge pull request #32 from DrDroidLab/playbooks_templates
Browse files Browse the repository at this point in the history
adding playbooks-templates for users to directly import
  • Loading branch information
dimittal authored Apr 24, 2024
2 parents 89d5e12 + 91d63db commit 1b5e3c9
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<center>

[Docs](https://docs.drdroid.io) | [Sandbox](https://sandbox.drdroid.io) | [Installation](https://docs.drdroid.io/docs/installation) | [Quick Start Guide](https://docs.drdroid.io/docs/quick-start-guide) | [Changelog](https://docs.drdroid.io/changelog) | [Community](https://join.slack.com/t/doctor-droid-demo/shared_invite/zt-2h6eap61w-Bmz76OEU6IykmDy673R1qQ)
[Docs](https://docs.drdroid.io) | [Sandbox](https://sandbox.drdroid.io) | [Templates](https://github.com/DrDroidLab/PlayBooks/playbooks-templates/README.md) | [Changelog](https://docs.drdroid.io/changelog) | [Community](https://join.slack.com/t/doctor-droid-demo/shared_invite/zt-2h6eap61w-Bmz76OEU6IykmDy673R1qQ)

</center>

Expand All @@ -22,10 +22,10 @@
- [ ] Add support for PagerDuty / OpsGenie / Datadog.
- Sequence: Create sequence of multiple metrics / logs to be fetched in one-go from different tools.
- Auto-investigation: Receive response after a playbook run in your Slack channel or your alerting tool with the investigation data published.
- [ ] Interpretation layer: Add a layer of interpretation to the data fetched using Outlier detection models & Vision AI.
- [ ] Saving past executions.
- [ ] Enable conditional trees to be created within playbooks
- [ ] Add support for custom API call from playbook.
- [ ] Add templates.

Explore [sandbox](https://sandbox.drdroid.io/).

Expand Down
7 changes: 7 additions & 0 deletions playbooks-templates/README.md
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.
92 changes: 92 additions & 0 deletions playbooks-templates/deployment-tracker.json
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)}"
}
}
}
}
]
}
]
}

0 comments on commit 1b5e3c9

Please sign in to comment.