# AGENTS.md Source: https://docs.ewake.ai/agents Context file for AI agents and coding assistants integrating with ewake. Read this before issuing tool calls. This page is the [AGENTS.md](https://agents.md/) for ewake, a context file written for AI coding assistants and external agents (Cursor, Claude Code, Codex) that connect to ewake. If you are an AI agent, read this page in full before issuing tool calls. It tells you what ewake is, what you can ask, what you cannot, and how to query it well. *** ## What ewake is Ewake maintains a live knowledge map of a customer's production environment by ingesting data from observability tools (Datadog, Grafana, Prometheus), source control (GitHub, GitLab), incident management (Incident.io, Rootly, FireHydrant), and Slack. Ewake is an **on-call agent that takes the page first**. It investigates alerts, deploys and scheduled tasks, produces ranked root-cause hypotheses with supporting evidence, and takes action on the customer's behalf, such as restarting a pod or opening a pull request, while keeping their team in the loop. Only issues that need a human decision are escalated. For the conceptual model, see [Concepts](/concepts). *** ## How to interact with ewake There are two stable interaction surfaces for agents: | Surface | When to use it | | - | - | | **MCP server** | The primary surface for coding assistants. Ewake exposes a remote MCP server at `/mcp` with 16 tools. Ten read the service map, ownership graph, past investigations, deployments and integrations. Six read or change the skills and workflow prompts that ewake follows. See [MCP Server](/interfaces/mcp) to connect. | | **REST API** | For backend integrations and CI/CD events. See [Deployment Tracking](/integrations/deployment/deployment-tracking) for an example. | You should **never scrape the Web App or Slack interface**. Use one of the two surfaces above. *** ## Authentication All access requires an ewake credential, scoped to a single customer workspace: an OAuth sign-in for the MCP server, or an ewake API key. ``` Authorization: Bearer YOUR_API_KEY ``` API keys are generated in the ewake dashboard under **API Keys** in the sidebar. A key is scoped to one customer workspace and cannot reach another customer's data. Within that workspace it is **not** scoped further: the same key authenticates deployment events and the MCP server. On the MCP server, the key acts for the user who created it. Treat it as a full workspace credential. *** ## Capabilities, what you can ask Ewake answers questions about a customer's production environment. Common patterns: * **Service health**, current state, error rates, latency for any named service * **Recent activity**, deployments, alerts, incidents within a time window * **Correlation**, link an alert or anomaly to recent changes (deploys, commits, infrastructure) * **Historical context**, has this issue happened before? What resolved it? * **Dependency reasoning**, upstream/downstream impact of a change * **Investigation**, given an alert or symptom, produce ranked hypotheses with evidence For ready-made example queries, see [What can I ask ewake?](/working-with-ewake/prompt-library). *** ## Limitations, what you cannot do These are hard limits on what you can obtain through this API. Do not attempt them. * **No actions through this API**, ewake takes actions (such as restarting a pod or opening a pull request) as part of its own on-call work for the customer's team. You cannot trigger, request, or change an action through the MCP server or REST API. The only writes the MCP server offers are changes to the instructions that ewake follows: skills, workflow prompts and, for a user with the Root role, ewake.md. Make one only when the user asks for it. * **No cross-customer queries**, your API key is workspace-scoped. Asking about another customer's data will not work. * **No model training on customer data**, ewake does not feed customer signals into foundation-model training. * **No raw telemetry retention**, logs and metrics are queried live; ewake cannot return data older than what the underlying source retains. * **No escalation through this API**, ewake escalates issues that need a human decision to the customer's team, through the channels they configured. You cannot page or notify anyone through this API. For the full security and access matrix, see [Permissions & Data Access](/security/permissions). *** ## Conventions Follow these conventions when querying ewake, they materially improve answer quality. * **Use the exact service name as it appears in Datadog (or your primary observability tool).** ewake correlates by service identifier; "checkout API" and "checkout-api" are not the same. * **Specify a time window for any historical question.** Default lookbacks vary; explicit windows ("past 2 hours", "since the deploy at 14:30 UTC") produce more precise answers. * **Ask one question per call.** Compound questions ("why is X slow AND who deployed Y") fragment ewake's reasoning. Issue them as separate tool calls. * **Treat output as hypotheses, not facts.** Every ewake answer includes a confidence indicator and supporting evidence. Surface both to the human user. *** ## Domain vocabulary When parsing ewake responses, these terms have specific meanings: | Term | Meaning | | - | - | | **Hypothesis** | A ranked candidate explanation for an observed signal. Each hypothesis carries a confidence score and supporting evidence. | | **knowledge map** | The persistent map of a customer's services, dependencies, deployments, and incident history. | | **Trigger** | An event that initiates an investigation, usually an alert in Slack or an explicit user question. | | **Correlation** | A relationship ewake has detected between two signals (e.g. a deploy on service A correlates with an error spike on service B). | | **Lookback window** | The time range ewake examines when answering a question. Default depends on the trigger type. | *** ## Example interaction patterns **Good, focused, specific, time-bounded:** ``` Show me the top errors on payments-api in the last 30 minutes, correlated with any deployment events on its dependencies. ``` **Avoid, vague, multi-question, no time window:** ``` What's wrong with the system? ``` **Good, asking for evidence-backed reasoning:** ``` Is the latency spike on checkout-service correlated with the deploy at 14:30? Include the diff if there's high confidence. ``` *** ## Versioning This page reflects ewake's current capabilities. Capabilities expand over time. If you cache this content, refresh at least every 30 days. For questions or to report incorrect behaviour, contact [support@ewake.ai](/support). # Bring Your Own Cloud Source: https://docs.ewake.ai/architecture/byoc How Ewake runs in your own AWS account: what the Terraform creates, where models run, what crosses the network, and who does what. With Bring Your Own Cloud (BYOC), Ewake runs in an AWS account you own. You deploy it with Ewake's open Terraform, and you can read every resource it creates before you apply it. Your data, your integration credentials and your Bedrock usage stay in your account. Ewake has no access to the account and receives no telemetry from it. *** ## Architecture Everything below runs in your account, in `eu-west-3` (Paris), the one supported region. ### Networking By default the Terraform creates a VPC (`10.10.0.0/16`) across two availability zones, with public and private subnets, a NAT gateway, and private endpoints for SSM, Secrets Manager, ECR and CloudWatch Logs. You can deploy into a VPC you already run instead. You then provide two private subnets in different availability zones and outbound access, through your own route or a NAT gateway the Terraform adds. ### Compute and storage The deployment uses these AWS services, all in your account: | Service | Used for | | - | - | | ECS on Fargate, behind an Application Load Balancer | The dashboard and API | | Lambda, SQS and EventBridge Scheduler | Investigations and scheduled agents | | RDS for PostgreSQL | The application database. It can be an instance you already run | | EC2 with an encrypted EBS volume | The knowledge graph | | Secrets Manager | Application secrets and integration credentials | Your security policies must allow these services in the account. ### AI models The agent calls Amazon Bedrock in your account, so prompts and model outputs never leave AWS, and Bedrock usage is billed to you. * Your account owner enables the models and accepts their Marketplace terms. Ewake gives you the current list. * You can choose the Bedrock model behind each of the agent's model tiers. * The default models are EU cross-region inference profiles, which Bedrock can serve from another EU region. ### Access control * **Users** sign in through your own OIDC identity provider: Okta, Entra ID, Google Workspace, Auth0, or any compliant provider. Until you connect one, the dashboard shows a username and password form, for an admin password the Terraform generates into your Secrets Manager. * **The first user** from your company's email domain to sign in becomes the administrator, and grants roles to the others. * **Ewake** has no access to your AWS account. Ewake staff can sign in to the dashboard only if your identity provider lets them. If you want Ewake to help operate the deployment, you grant that access yourself, with the permissions you choose, and you can remove it at any time. ### Telemetry Nothing is sent to Ewake. Application logs go to CloudWatch Logs in your account. ### Data security * The database and the knowledge graph are encrypted at rest, and backed up daily in your account. * The load balancer accepts TLS 1.2 and 1.3 only. * Terraform state holds credentials, including SSO client secrets. Keep it in an encrypted, access-restricted bucket. ### Network security #### Inbound Only these services call the deployment from the internet: * Slack * Datadog * incident.io * FireHydrant * Sentry * GitHub * Your CI * Any tool you connect with a generic webhook The dashboard can stay private. *** ## Deployment 1. Prepare a dedicated AWS account in `eu-west-3`: a delegated Route53 zone, Bedrock model access, and a Lambda memory quota of 10240 MB. 2. Send Ewake the account ID. Ewake grants it read access to the container images. 3. Copy `terraform.tfvars.example`, set your company, domain and version, and run `terraform apply`. The first apply takes 15 to 20 minutes. 4. Configure sign-in, then [create your Slack app](/get-started/connect-slack) and [your GitHub App](/integrations/code/github-app-self-hosted). The repository README has the full procedure. *** ## Operations Ewake publishes each version of the Terraform as a release of the repository. Each release states the application version it needs. You upgrade when you choose: set the new version and apply. The apply runs database migrations, then rolls the service. Ewake keeps a limited number of application versions in its registry, so a deployment that stays on an old version long enough can no longer pull it. *** ## Responsibility matrix | Area | Responsibility | Ewake | You | | - | - | :-: | :-: | | **Infrastructure** | Provide the AWS account and its quotas | | ✓ | | | Write and release the Terraform | ✓ | | | | Apply it, and own what it creates | | ✓ | | | Network: VPC choice, inbound access, outbound filtering | | ✓ | | **Security** | Encryption at rest and in transit, as the Terraform configures it | ✓ | ✓ | | | Application secrets, integration credentials and Terraform state | | ✓ | | | Identity provider and sign-in | | ✓ | | | Roles in the dashboard | | ✓ | | | Granting and revoking any access for Ewake | | ✓ | | | Read access to the container images | ✓ | | | **Monitoring** | AWS audit logs and account security monitoring | | ✓ | | | Watching the deployment and responding to failures | | ✓ | | | Support when something fails | ✓ | | | **Data** | Governance of your source systems and of Ewake's data | | ✓ | | | Backups, as the Terraform schedules them | ✓ | ✓ | | | Restores and recovery requirements | | ✓ | | **AI models** | Enabling models, accepting their terms, and their costs | | ✓ | | | Choosing the model behind each tier | | ✓ | | **Software** | Releasing application and Terraform versions | ✓ | | | | Applying them | | ✓ | | | Connecting integrations and configuring the agent | | ✓ | | **Costs** | AWS and Bedrock usage | | ✓ | # Deployment options Source: https://docs.ewake.ai/architecture/deployment-options Where Ewake runs, who operates it, and who is responsible for what: an instance hosted by Ewake, or Ewake deployed in your own AWS account. Ewake runs in one of two ways. Both run the same application, with the same agent, integrations and dashboard. > [card] [Hosted by Ewake](/architecture/hosted) > > A dedicated Ewake instance for your company, in Ewake's AWS account. Ewake runs and upgrades it. You sign in and connect your tools. > [card] [Bring Your Own Cloud](/architecture/byoc) > > Ewake deployed in an AWS account you own, from Ewake's open Terraform. Your data, your network and your Bedrock models stay in your account. In both, Ewake reads your systems with the credentials you connect, and queries logs, metrics and traces live at the moment of an investigation. See [Permissions & Data Access](/security/permissions) for what each integration can read. *** ## Compare the options | | Hosted by Ewake | Bring Your Own Cloud | | - | - | - | | **AWS account** | Ewake's | Yours, dedicated to Ewake | | **Region** | `eu-west-3` (Paris) | `eu-west-3` (Paris) | | **Your instance** | Its own dashboard service, database, knowledge graph, workers, queue and secrets | The same, plus its own network, load balancer, database server and cluster | | **Shared with other customers** | The AWS account, and the network, load balancer and database server your instance runs on | Nothing | | **Language models** | Amazon Bedrock in Ewake's account | Amazon Bedrock in your account, with the models you choose | | **Network exposure** | Public HTTPS at your instance's address | Public, or private behind your VPN or transit gateway | | **Sign-in** | The providers Ewake configures for your instance | Your own OIDC identity provider | | **Slack and GitHub** | Ewake's Slack app and GitHub App | A Slack app and a GitHub App that you own | | **Upgrades** | Continuous, by Ewake | When you choose, by applying a new version | | **Ewake's access to the infrastructure** | Full: Ewake operates it | None, unless you grant it | | **Telemetry to Ewake** | Application logs, agent traces and sign-in events | None | *** ## Responsibility matrix **Ewake** means Ewake does it. **You** means your team does it. **Shared** means both have a part, described in the row. | Area | Responsibility | Hosted by Ewake | Bring Your Own Cloud | | - | - | - | - | | **Infrastructure** | Provide the AWS account | Ewake | You | | | Create the network, compute and storage | Ewake | Shared: Ewake writes the Terraform, you apply it | | | Raise AWS quotas (Lambda memory, Bedrock) | Ewake | You | | | Decide who can reach the dashboard | Ewake | You | | | Allow outbound traffic | Ewake | You | | **Security** | Encrypt data at rest and in transit | Ewake | Shared: the Terraform enables it, in your account | | | Hold application secrets and integration credentials | Ewake | You: they live in your Secrets Manager | | | Run the identity provider used to sign in | Shared: your IdP, connected by Ewake | You | | | Grant roles in the dashboard | Ewake, on your request | You | | | Revoke a credential you gave an integration | You | You | | | Revoke Ewake's access | Not applicable: Ewake operates the instance | You: Ewake has none unless you grant it | | **Monitoring** | AWS audit logs and account security monitoring | Ewake | You | | | Watch the instance's health and respond to failures | Ewake | You, with Ewake's support | | **Data** | Govern the data in your source systems | You | You | | | Back up the database and knowledge graph | Ewake | Shared: the Terraform schedules it, in your account | | | Restore from a backup | Ewake | You, with Ewake's support | | **AI models** | Enable models and accept their terms | Ewake | You | | | Choose the model behind each tier | Ewake | You | | **Software** | Release new versions | Ewake | Ewake | | | Apply new versions | Ewake | You | | | Connect integrations and configure the agent | You | You | | **Costs** | AWS and Bedrock usage | Ewake | You | > [!NOTE] > > Both options store integration credentials in AWS Secrets Manager, and every query to your systems runs with the credentials you connected. Read-only credentials keep Ewake from writing to those systems. Some writes remain, such as pull requests through the GitHub App and messages in Slack: see [How ewake takes action](/security/permissions#how-ewake-takes-action). # Hosted by Ewake Source: https://docs.ewake.ai/architecture/hosted How a hosted Ewake instance is built: what is dedicated to your company, what is shared, where models run, what leaves the instance, and who does what. A hosted instance runs in Ewake's AWS account, in `eu-west-3` (Paris). Ewake provisions it, upgrades it and watches it. You sign in, connect your tools and work with the agent. Each company gets its own instance. It is reached at its own address and keeps its data in its own database and knowledge graph. *** ## Architecture ### Dedicated to your company * The application and the workers that run your investigations and scheduled agents, each with its own permissions. * Your own database and your own knowledge graph, on encrypted storage. * Your integration credentials, readable only by your instance. * Your own address, a subdomain of `ewake.ai`. ### Shared with other customers Hosted instances share Ewake's AWS account and part of its infrastructure: the network, the load balancer, the database server, and the service that routes incoming Slack and GitHub events to the right instance. Each instance has its own credentials and permissions, and cannot reach another instance's data. ### AI models Ewake calls Amazon Bedrock in its own AWS account, through EU cross-region inference profiles. Bedrock does not use your prompts or outputs to train models. Ewake chooses the models and can change them with a release. ### Access control * **Users** sign in through the providers configured for your instance: Google, Microsoft, GitHub or Slack. See [Sign In](/get-started/sign-in). * **Ewake staff** have administrative access to your instance, to operate and support it, and grant roles to your users. * **Ewake operators** reach the infrastructure through Ewake's AWS account. They do not need anything from you. ### Telemetry Ewake's monitoring and agent-evaluation tools receive: * **Application logs and traces**, to watch the instance's health. * **Agent traces**, the prompts and tool results of a run, to debug and evaluate the agent. * **Sign-in events**, to notice access problems. ### Data security * Your database and knowledge graph are encrypted at rest, and backed up daily. * Logs, metrics and traces from your systems are queried live during an investigation, not copied into Ewake. ### Network security * **Inbound:** HTTPS only, at your instance's address. Slack and GitHub events reach your instance through Ewake's event routing. * **Outbound:** to the systems you connect, to Amazon Bedrock, and to Ewake's monitoring tools. *** ## Operations Ewake deploys new versions continuously, runs database migrations, and responds to failures. A new version reaches your instance without action from you. To change a sign-in provider or anything else about the instance itself, contact [support@ewake.ai](/support). *** ## Responsibility matrix | Area | Responsibility | Ewake | You | | - | - | :-: | :-: | | **Infrastructure** | AWS account, network, compute and storage | ✓ | | | | AWS quotas and costs | ✓ | | | **Security** | Encryption at rest and in transit | ✓ | | | | Application secrets and stored integration credentials | ✓ | | | | The identity provider your users sign in with | | ✓ | | | Connecting that provider to your instance | ✓ | | | | Granting roles in the dashboard | ✓ | | | | Revoking a credential you gave an integration | | ✓ | | **Monitoring** | AWS audit logs and account security monitoring | ✓ | | | | Instance health and response to failures | ✓ | | | **Data** | Governance of the data in your source systems | | ✓ | | | Backups and restores | ✓ | | | **AI models** | Model access, choice and costs | ✓ | | | **Software** | Releasing and applying new versions | ✓ | | | | Connecting integrations and configuring the agent | | ✓ | # Concepts Source: https://docs.ewake.ai/concepts How ewake reasons over your production environment, the knowledge map, the cartographer, and how ewake acts on your behalf. Ewake is built on one core idea: **before you can resolve an incident, you need a complete picture of your production environment.** Most teams don't have that picture, every service exists, every signal is collected, but no human can hold all of it in their head. Ewake closes that gap. This page describes the concepts that drive how it works. *** ## The Production Cartographer Ewake's central role is to **draw the map of your production before it breaks**, then keep it up to date as your environment evolves. Concretely, this means a continuous live scan of every node in your stack, services, dependencies, deployments, alerts, ownership, recent changes, assembled into a single coherent view. When an alert fires or a question is asked, ewake doesn't start from zero: it already knows the topology of what's affected and what could be related. This is the difference between *"there's an error spike on payments-api"* and *"this looks like the same failure pattern as incident #47, caused by a deploy on the dependency `auth-service` two hours ago."* *** ## How ewake reasons Ewake operates on a continuous loop: **1. Signal ingestion** Reads from your connected sources, Datadog, GitHub, Incident.io, Slack, in real time. **2. Context lookup** When a trigger occurs (alert fires, question asked), ewake cross-references the signal against the knowledge map. **3. Hypothesis ranking** Produces a ranked list of probable root causes, each with supporting evidence, recent commits, log excerpts, metric correlations, similar past incidents. **4. Output delivery** Returns the structured investigation to where you already work, Slack thread or Web App. **5. Learning loop** Each resolved incident, confirmed hypothesis, and engineer correction feeds back into the knowledge map. *** ## Acts on your behalf, keeps you in the loop Ewake is **an on-call agent that takes the page first.** It doesn't stop at a diagnosis: it takes action on your behalf, such as restarting a pod or opening a pull request, and keeps your team in the loop. Only the issues that need a human decision are escalated. How that works in practice: * **You see why**, every hypothesis and every action links back to the evidence behind it * **You can override**, if ewake's top hypothesis is wrong, your correction is captured and improves the next investigation * **You stay in the loop**, ewake keeps your team informed of every action it takes * **Only what needs you is escalated**, issues that need a human decision go to your team The result: incidents handled before your engineers open their laptops, with human judgement reserved for the calls that need it. # Frequently asked questions Source: https://docs.ewake.ai/faq Answers to common questions about ewake: Slack and GitHub setup, observability tools, what ewake can change, data handling, SOC 2, EU hosting and pricing. ## Setup > [accordion] How do I add ewake to a Slack channel? > > Go to the channel → **channel settings** → **Integrations** → **Add apps** → search for ewake and click **Add**. > > > [card] [Full guide →](/get-started/connect-slack#add-ewake-to-a-channel) > [accordion] Can I add ewake to Slack before I have an ewake account? > > Yes. Any Slack workspace can install ewake, from Slack or from [ewake.ai/slack](https://ewake.ai/slack). Until your workspace is linked to an ewake account, ewake replies with how to get one. That reply is a fixed message, and nothing is sent to an LLM. > > > [card] [Connect Slack →](/get-started/connect-slack) > [accordion] My Slack admin won't let me install third-party apps — what do I do? > > Use the manifest install instead. You create your own internal Slack app from a manifest Ewake provides, then paste the bot token back into Ewake. Functionally identical to the standard OAuth install. > > > [card] [Manifest install guide →](/get-started/connect-slack#option-2-from-a-manifest-custom-app) > [accordion] Why can't I see my organisation repositories in GitHub? > > Ewake reads only the repositories that the Ewake GitHub App installation grants. To add repositories, change the App's repository access on its **Configure** page in your GitHub organisation settings. If the App is installed on a user account rather than the organisation, ewake refuses the connection: install it again on the organisation. > > > [card] [GitHub setup guide →](/integrations/code/github) > [accordion] What Datadog permissions does ewake need? > > Ewake requires an Application Key with nine read-only scopes: `apm_read`, `dashboards_read`, `logs_read_data`, `metrics_read`, `monitors_read`, `timeseries_query`, `events_read`, `slos_read` and `mcp_read`. The only write is optional: with `monitors_write`, a follow-up action can tune a Datadog monitor. > > > [card] [Full scope list →](/integrations/observability/datadog#scopes) > [accordion] Do I need Datadog, GitHub, and Slack to use ewake? > > Slack is required. An observability integration and a source control integration are strongly recommended, without both, investigations are less precise. Source control can be GitHub or GitLab, and can be added later. > [accordion] We don't use GitHub Actions. Can we still track deployments? > > Yes. Deployment tracking is a single authenticated `POST` to the ewake API, so any CI/CD system or deploy script that can make an HTTPS request works. The GitHub Action is a thin convenience wrapper around exactly the same request, not a requirement. > > > [card] [Add deployment tracking to your pipeline →](/integrations/deployment/deployment-tracking#add-it-to-your-pipeline) *** ## Features > [accordion] Which observability tools does ewake support? > > Datadog, Grafana, Prometheus, Thanos, VictoriaMetrics, Loki, Tempo, Jaeger, ClickHouse, Amazon CloudWatch, Elasticsearch, GCP Cloud Logging, Sentry, and LangSmith. You can also point ewake at your own tool surface with a [Custom MCP server](/integrations/custom/custom-mcp), or at any HTTP API with an [OpenAPI spec](/integrations/custom/openapi). > > > [card] [Browse all integrations →](/integrations/overview) > [accordion] Can I customise how ewake responds to alerts? > > Yes. Each flow in the **On-call** tab has its own **Prompt** (what ewake investigates and focuses on), **Report** (the report guidelines: format, length, tone) and **Follow-up actions** (what ewake does after the investigation). > > > [card] [Configure the On-Call Agent →](/working-with-ewake/on-call-agent) > [accordion] Ewake's responses are too long. How do I make them shorter? > > Open the **On-call** tab in your dashboard, open the flow for that channel, pick **Concise** under **Report**, or write in **Report guidelines** how concise to be, for example `Answer in two sentences.` or `Three bullet points at most, no headings.` Click **Save**. The next alert gets the shorter response. > > > [card] [More length examples →](/working-with-ewake/on-call-agent#report-format) *** ## Security > [accordion] Can ewake change anything in my systems? > > Yes. Ewake takes action on your behalf, such as restarting a pod or opening a pull request, and keeps your team in the loop on every action it takes. Only the issues that need a human decision are escalated to your team. > > > [card] [Permissions & data access →](/security/permissions) > [accordion] Does ewake train on my data? > > No. Ewake does not use customer data to train or fine-tune any model. > [accordion] What data does ewake access? Is my data stored? > > Ewake reads from your connected integrations via API: metrics, logs, traces, commits, and incident data. It does not install agents on your infrastructure. Raw telemetry is queried live and not retained. > > > [card] [Permissions overview →](/security/permissions) > [accordion] Does ewake have SOC 2? > > Yes. Ewake is SOC 2 Type II compliant. Contact us to request a copy of the report. > > > [card] [Contact support →](/support) > [accordion] Is ewake available in EU? > > Yes. Both a hosted instance and a deployment in your own AWS account run in `eu-west-3` (Paris), and the agent uses Amazon Bedrock through EU inference profiles by default. See [Deployment options](/architecture/deployment-options). > > > [card] [Contact support →](/support) *** ## Pricing > [accordion] How does ewake pricing work? > > Pricing is tailored to your team's size and usage. Contact us for details. > > > [card] [Contact support →](/support) *** ## Support > [accordion] How do I share feedback or report an issue? > > Email us at [support@ewake.ai](/support). Include the Slack channel, approximate time of the event, and what you observed vs. expected. > > > [card] [Contact support →](/support) # Connect Slack Source: https://docs.ewake.ai/get-started/connect-slack Connect Slack to enable @ewake mentions, alert routing, and proactive reports in your workspace. > [!NOTE] > > **What you'll get:** Once connected, your team can mention `@ewake` in any channel for on-demand investigation help. Ewake will also deliver On-Call Agent investigations and Scheduled Task reports directly in Slack. *** ## Two ways to connect | Option | When to use it | | - | - | | **From Ewake organisation** | Default. One-click OAuth — simplest. | | **From a manifest** | Slack admin blocks non–first-party / Marketplace apps; org requires internally-created apps. | On a self-hosted instance, **Connect Slack** opens the manifest steps directly: the manifest is the only way to connect. > [!NOTE] > > **Installing from Slack or [ewake.ai/slack](https://ewake.ai/slack)?** Any Slack workspace can add ewake. If the workspace isn't linked to an ewake account yet, ewake replies with how to get one. That reply is a fixed message: nothing is sent to an LLM until your workspace has an account. *** ## Option 1 — From Ewake organisation Recommended unless your Slack admin policy blocks third-party apps. **1. Open your Ewake dashboard** In your Ewake instance, go to **Integrations** → **Slack** → **Connect Slack**. **2. Choose From Ewake organisation** Select **From Ewake organisation**. You'll be redirected to Slack's OAuth authorization page. ![Connect Slack button in Ewake dashboard](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/slack/connect-modal.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=e9ec5fe740f5dd3ecaa6a4881e9a4cbf) **3. Review and authorize** Review the requested permissions and click **Allow**. Ewake requests the following Slack permissions: * Read messages in channels where Ewake is added * Post messages and replies in channels * Send direct messages to users * Read workspace member list See the [full scope list](/security/permissions#slack) for details. **4. Redirected back to Ewake** After authorizing, you'll be automatically redirected back to the Ewake dashboard. > [!TIP] > > Slack is connected. You can now mention `@ewake` in any channel where the bot is present. > [!NOTE] > > **The admin channel.** When an admin connects Slack, Ewake sets up `#ewake-admin`: it uses the channel if it exists, or creates it as a private channel and invites you. Ewake posts there when an integration needs an admin. If Ewake can't use the channel, the panel says why and offers **Retry**. *** ## Option 2 — From a manifest (custom app) Use this when your Slack admins only allow apps your own workspace owns (i.e. they block apps that aren't listed in the Slack Marketplace). Instead of installing Ewake's shared Slack app via OAuth, you create your own internal Slack app from a manifest Ewake provides and hand Ewake its bot token and signing secret. Functionally it's identical to the standard install — Ewake reads channels and posts messages using the bot token, and Slack's API doesn't care which app issued it. **1. Open Connect Slack in Ewake** In your Ewake dashboard, go to **Integrations** → **Slack** → **Connect Slack**, then choose **From a manifest**. **2. Copy the manifest** Copy the manifest shown in the panel (**Create app from manifest** step). It's pre-filled for your environment — don't use a manifest from another source. **3. Create the app in Slack** Open [api.slack.com/apps](https://api.slack.com/apps) → **Create New App** → **From a manifest**. Select your workspace, paste the manifest, and create the app. **4. Add the app icon** Manifests can't set the icon. Under **Basic Information** → **Display Information**, upload the Ewake icon (otherwise the app shows a blank icon). **5. Install to your workspace** Under **OAuth & Permissions**, click **Install to Workspace** and approve. **6. Copy the bot token and the signing secret** Copy the **Bot User OAuth Token** (starts with `xoxb-`) from **OAuth & Permissions**. Then copy the **Signing Secret** from **Basic Information** → **App Credentials**. A value that starts with `xapp-` is the App-Level Token, not the Signing Secret. **7. Paste them in Ewake** Back in the Ewake panel, click **Next** to reach the **Paste bot token** step. Paste the **Bot User OAuth Token** and the **Signing Secret**, then click **Install**. Both are required. > [!TIP] > > Ewake verifies the token, checks it has the required permissions, and activates the integration. Invite `@ewake` to the channels you want it to work in. ### What Ewake does with the token * Verifies the token and reads the workspace identity (`auth.test`) * Confirms the app was granted the required bot scopes. If any are missing, the install is rejected and the missing scopes are listed. * Stores the bot token and the signing secret securely, and binds Ewake to your workspace The bot only reads channels it's been added to — invite `@ewake` to the channels you want it to work in. ### Troubleshooting **"Your app is missing required scopes: …"** — add the listed scopes under **OAuth & Permissions**, click **Reinstall to Workspace**, then paste the new `xoxb-` token. **"Required — the app's Signing Secret, under Basic Information"** — paste the **Signing Secret** too. Ewake doesn't install without it. **"Invalid Slack token"** — make sure you copied the **Bot User OAuth Token** (`xoxb-…`), not an App-Level token (`xapp-…`) or user token (`xoxp-…`). **Ewake isn't responding in a channel** — invite `@ewake` to that channel; the bot only reads channels it's a member of. *** ## Add Ewake to a channel Ewake needs to be invited to each Slack channel where you want it to operate. **1. Open the channel** Go to the Slack channel where you want Ewake active (e.g. `#alerts`, `#incidents`). **2. Open channel settings** Click the **channel name** at the top to open settings. **3. Go to Integrations tab** Navigate to the **Integrations** tab → click **Add apps**. **4. Add Ewake** Search for **Ewake** and click **Add**. > [!TIP] > > Ewake is now in this channel. Mention `@ewake` to start a conversation. *** ## Next step > [card] [Connect Datadog →](/integrations/observability/datadog) > [card] [What does Ewake access in Slack? →](/security/permissions#slack) # Quickstart Source: https://docs.ewake.ai/get-started/quickstart Connect your stack and get your first ewake investigation in Slack in under 8 minutes. > [!NOTE] > > **What you'll have at the end:** ewake mapped to your production system, continuously building context across your services, and ready to investigate issues with ranked hypotheses and supporting signals, and to act on your behalf. *** **1. Sign in** Open your ewake instance URL and click your organisation's sign-in provider, for example **Sign in with Google**. ![ewake sign-in page, Continue with Google](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/signin/Continue_with_google.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=2ed93371651c9219054a5768efab1370) > [card] [Full sign-in guide →](/get-started/sign-in) **2. Connect your tools** Connect your telemetry, development, and productivity tools. This gives ewake access to alerts, production signals, and deploy history. After your first sign-in, ewake opens a **Setup** checklist with three steps: **Connect your logs and metrics**, **Connect your code**, and **Connect Slack**. You can skip a step and connect it later from the **Integrations** page. > [card] [Slack](/get-started/connect-slack) > > Required. Alerts, reports, and `@ewake` mentions all go through Slack. > [card] [Logs and metrics](/integrations/overview#observability) > > Required. Datadog, Grafana, Prometheus, CloudWatch, or another observability provider. Ewake queries your metrics, logs, and traces. > [card] [Source control](/integrations/overview#scm--code-review) > > Required. GitHub or GitLab. Ewake correlates alerts with deployments and code changes. ![ewake integrations, tools to connect](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/quickstart/quickstart_tools.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=3a0cb99181d3730cf289a6ab35a12d8c) **3. Your stack is connected** To confirm everything is working, mention `@ewake` in any Slack channel where the bot is present and ask a simple question: ``` @ewake What's the health of [my-service] right now? ``` ``` @ewake Any anomalies in the last 24 hours? ``` > [!TIP] > > If ewake responds with a structured investigation, your connection is working. > [!NOTE] > > With just your stack connected, ewake can already answer on-demand questions. These responses are useful, but limited, ewake hasn't been configured to watch for alerts or run scheduled analysis yet. The next step is where it becomes proactive. ![Try it now, @ewake in Slack](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/quickstart/tryit.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=d31a75b3fed81cff23738ecfeaa92be7) **4. Put ewake to work** Pick the use case that fits your team's first priority, each one configures in a few minutes from the Dashboard. In the sidebar, click **On-call** → **New on-call agent**, then pick what starts it: **An event**, **A schedule**, or **An incident**. > [card] [On-Call Agent](/working-with-ewake/on-call-agent) > > Investigate and act on every alert that fires in Slack, before your engineer opens a terminal. > [card] [Scheduled Tasks](/working-with-ewake/scheduled-tasks) > > Deliver proactive health reports and anomaly summaries on a schedule you define. > [card] [Incident Response](/working-with-ewake/incident-response) > > Investigate each incident your tracker declares, in the incident's own Slack channel, alongside your war room. Once you've set up one or more use cases, you'll find more relevant prompts tailored to your configuration here: > [card] [Prompt Library →](/working-with-ewake/prompt-library) Using a coding agent? The [setup skills for coding agents](/interfaces/setup-skills) let it connect to ewake, add deployment reporting to your pipeline, and map your services. *** Have feedback or questions? Reach the team at [support@ewake.ai](/support). # Sign In Source: https://docs.ewake.ai/get-started/sign-in Sign in to your ewake dashboard with Google, Microsoft, GitHub or Slack single sign-on, or with a password when your instance allows it. Each ewake customer gets a dedicated instance. Your access URL was shared with you during onboarding. If you don't have it, contact [support@ewake.ai](/support). *** ## Authentication Ewake signs you in through your organisation's identity provider. Which buttons you see on the login page depends on what was configured for your instance during onboarding. Each button shows the provider's logo, and its label appears when you hover it: | Provider | Button | | - | - | | Google | **Sign in with Google** | | Microsoft | **Sign in with Microsoft** | | GitHub | **Sign in with GitHub** | | Slack | **Sign in with Slack** | Instances configured with no SSO connector show an email and password form instead. An instance can also show the form under the SSO buttons, when it was set up that way. Most customers are set up with SSO, and we recommend it, sign-ins stay attributable to a person and access follows your existing identity provider when someone joins or leaves. > [!NOTE] > > To add or change a provider on your instance, contact [support@ewake.ai](/support). It's a configuration change on our side, not something you toggle in the dashboard. **1. Navigate to your instance** Open your ewake instance URL in your browser. **2. Choose your sign-in method** Click the provider your organisation uses, for example **Sign in with Google**. ![ewake sign-in page, Continue with Google](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/signin/Continue_with_google.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=2ed93371651c9219054a5768efab1370) **3. Select your account** Choose the account associated with your ewake workspace. You'll be redirected to the ewake dashboard automatically. While your logs and metrics, your code, or Slack are not connected yet, ewake opens a **Setup** checklist first. Connect or skip each step, then click **Go to dashboard**. A skipped step can be done later from the **Integrations** page. > [!TIP] > > You're in. Proceed to connect your integrations. *** ## No access yet? Reach out to your admin or contact [support@ewake.ai](/support) to get access. # About ewake Source: https://docs.ewake.ai/index Ewake is an AI on-call agent: it investigates alerts across your stack and posts ranked root-cause hypotheses with evidence in Slack. > ewake is an on-call agent who takes the page first. When an alert fires, a deploy goes out, or a scheduled task runs, ewake pulls data from across your stack, correlates signals in real time, and returns ranked root-cause hypotheses with supporting evidence, directly in Slack. ewake takes action on your behalf, such as restarting a pod or opening a pull request, and keeps you in the loop. Only the issues that need a human decision are escalated to your team. *** ## Technology, The Cartographer Agents Before ewake can investigate an issue, it needs to understand your production environment. That's why its first job is to draw the map. Ewake continuously scans your production environment and assembles it into a single, coherent live map, updated as your stack evolves. This is what turns a generic notification like *"error spike on payments-api"* into a precise diagnosis: *"This looks like the same failure pattern as incident #47, triggered by a deploy on the auth-service dependency two hours ago."* *** ## How It Works Ewake's investigation pipeline runs in five steps, from raw signal to actionable output. **1. Signal ingestion** Ewake continuously ingests from your connected sources in real time. **2. Production map construction** Ingested signals are mapped into a persistent knowledge map. This map is the foundation every investigation is built on. **3. Trigger and correlation** When a trigger fires, ewake pulls relevant context from the knowledge map and runs correlation across signals. **4. Hypothesis ranking** Ewake produces a ranked list of probable root causes, each backed by direct evidence. **5. Output and feedback loop** Results are delivered to your Slack thread or Dashboard. Every resolved incident feeds back into the knowledge map. > **Acts on your behalf, keeps you in the loop**, ewake doesn't stop at a diagnosis. It takes action, such as restarting a pod or opening a pull request, and tells you what it did and why. > > * **You see why**, every hypothesis and every action links back to the evidence behind it > * **You can override**, corrections are captured and improve future investigations > * **You stay in the loop**, ewake keeps your team informed of every action it takes > * **Only what needs you is escalated**, issues that need a human decision go to your team *** ## A first look at ewake > [accordion] On-Call Agent, alert fires at 3am > > A Datadog alert fires on `payments-api`. Before your on-call engineer opens their laptop, ewake has already posted in the alert thread: > > * **Probable cause:** error spike on `payments-api` correlates with a deploy on `auth-service` 12 minutes ago > * **Evidence:** 3 relevant log lines, latency chart showing degradation from deploy time, link to the commit > * **Action ready:** a PR reverting the token validation change in `auth-service`, opened with one click from the thread > > Your engineer arrives to the cause and a fix one click away, not a blank terminal. > [accordion] Scheduled Tasks, morning health brief > > Every day at 8am, before standup, ewake posts a structured report to `#monitoring`: > > * **System health:** all services green except `checkout-service` (error rate +12% vs yesterday) > * **Anomalies:** latency spike on `inventory-api` between 02:00–03:30 UTC, self-resolved > * **Notable changes:** 2 deploys overnight on `pricing-service`, no correlated degradation > * **Risk signal:** `checkout-service` has shown this pattern 3 times in the past 30 days, each time preceded by a full incident > > Your team walks into standup already informed. > [accordion] Incident Response, war room, P0 in progress > > A P0 is ongoing. The team is in a war room channel, debating what's causing a cascade. Someone mentions `@ewake`: > > > *@ewake what's causing the latency spike on checkout-service? Correlate with recent deploys.* > > Ewake responds in seconds with a ranked breakdown, most likely cause first, each hypothesis linked to concrete evidence from Datadog, GitHub, and past incidents. The team stops guessing and starts acting. *** ## Questions? Have a question or want to learn more about ewake? Reach out directly at [support@ewake.ai](/support). # Alertmanager & Grafana alerts Source: https://docs.ewake.ai/integrations/alerting/alertmanager Point Alertmanager or a Grafana contact point at ewake. Each alert starts an investigation, with no Slack channel in between. > [!NOTE] > > **What you'll get:** Alertmanager or Grafana sends its alerts straight to ewake. Ewake picks up each alert, starts investigating, and posts an alert card that shows its live plan while it works. No alert bot and no Slack channel in between. *** ## How it works Alertmanager and a Grafana contact point send the same webhook payload, so one flow takes either sender. * **One investigation per alert.** A notification can group several alerts. Ewake starts one investigation for each alert in the group. * **No repeat runs.** Alertmanager sends an open alert again on `group_interval` and `repeat_interval`. Ewake ignores these reminders while the alert stays open. * **Resolves close the loop.** When the alert resolves, its card turns from red to green. * **Labels are fields.** Every label and annotation of the alert becomes an attribute that you can filter and route on, for example `attributes.severity` or `attributes.namespace`. The `summary` annotation becomes the title, and `description` becomes the body. This is different from the [Grafana](/integrations/observability/grafana) and [Grafana datasources](/integrations/observability/grafana-datasources) integrations. Those let ewake **read** your metrics and dashboards during an investigation. This page is about how alerts **reach** ewake. Connect both for the best results. *** ## Prerequisites * **Slack connected**, and ewake invited to the channels where it posts its answers. See [Add Ewake to a channel](/get-started/connect-slack#add-ewake-to-a-channel). * Access to `alertmanager.yml`, or permission to edit **Contact points** in Grafana. * A network path from Alertmanager or Grafana to ewake. See [Which URL to use](#which-url-to-use). *** ## Create the flow in ewake **1. Start a new event flow** In your ewake dashboard, click **On-call** in the sidebar, then **New on-call agent**, then **An event**. **2. Choose how ewake answers** Pick **Post in an on-call channel**. An alert pushed from Alertmanager or Grafana has no Slack message to reply under, so ewake posts one card per alert in the channels you pick. **3. Choose Alertmanager / Grafana** Under **Where do the events come from?**, pick **Alertmanager / Grafana**. **4. Finish the flow** Pick what ewake investigates and where it answers, then the report and the follow-ups. See [Create a flow](/working-with-ewake/on-call-agent#create-a-flow) for each step. Click **Create the flow**. **5. Copy the endpoint and the token** The last step shows the endpoint, the token and the connect steps for both senders. > [!WARNING] > > The token shows once. Copy it before you leave the step. You can rotate it later from the flow's page, and the old token stops working at once. Then connect the sender: [Alertmanager](#connect-alertmanager) or [Grafana](#connect-grafana). *** ## Connect Alertmanager **1. Add the receiver** In `alertmanager.yml`, add this entry to the `receivers` list. Ewake fills in the URL and the token for you. ```yaml theme={null} - name: ewake- webhook_configs: - url: send_resolved: true http_config: authorization: credentials: ``` Keep `send_resolved: true`. Without it, ewake never learns that the alert resolved, and the card stays red. > [!TIP] > > If `alertmanager.yml` is in git, for example in Helm values, do not commit the token. Mount it from a secret, and replace `credentials` with `credentials_file` and the path of that file. **2. Add the route** Add this entry **first** in the `route.routes` list: ```yaml theme={null} - receiver: ewake- matchers: - severity="critical" continue: true ``` Change the `matchers` so that they select only the alerts ewake should investigate. `continue: true` lets the routes after it match the same alert, so your existing receivers still get it. > [!WARNING] > > Do not remove the `matchers`. A route with no matchers takes every alert away from your default receiver. **3. Reload Alertmanager** Reload or restart Alertmanager. > [!TIP] > > Alertmanager is connected. The next alert that matches the route starts an investigation, and its card appears in the channels of the flow. *** ## Connect Grafana **1. Add a contact point** In Grafana, go to **Alerting** → **Contact points** and click **Add contact point**. Pick the **Webhook** integration and paste the webhook URL from ewake as the **URL**. **2. Set the authorization header** Under **Optional Webhook settings**, set: | Field | Value | | - | - | | **Authorization Header - Scheme** | `Bearer` | | **Authorization Header - Credentials** | the token from ewake | Leave **Title**, **Message** and **Custom Payload** empty. Ewake reads Grafana's default payload. **3. Send alerts to it** Save the contact point. Then send alerts to it from a **notification policy**, or select it on the alert rule itself. > [!TIP] > > Grafana is connected. The next alert routed to this contact point starts an investigation. *** ## Which URL to use Alertmanager and Grafana usually run inside your own network. So ewake gives this flow a **Webhook URL** on your dashboard host, which your network already reaches. When your dashboard host is not the public entry of ewake, as on some self-hosted installs, ewake also shows a **Public URL** below it. Use the public URL if your sender cannot reach the first one, and for **Grafana Cloud**, which runs outside your network. *** ## Troubleshooting > [accordion] No card appears after an alert fires > > * Check that ewake is invited to every channel the flow answers in. Ewake cannot post in a channel it is not a member of. > * Check that the flow is **On** on the **On-call** page. > * Check that the alert matches your Alertmanager route, or that your notification policy sends it to the contact point. > * Check the flow's filter and exclusions. Open the flow and look at **Recent events through this flow**: an alert that ewake received but skipped is counted there. > [accordion] The card stays red after the alert resolved > > Alertmanager sends the resolve only when `send_resolved: true` is set on the receiver. Grafana sends it by default. > [accordion] Alertmanager logs a 401 > > The token is wrong, or it was rotated. Rotate it again from the flow's page, then update `credentials` in the receiver, or the credentials of the contact point. > [accordion] Some alerts of a large group never reach ewake > > If you set `max_alerts` on the receiver, Alertmanager leaves the other alerts of the group out of the notification. Ewake never receives them. Remove `max_alerts`, or raise it. *** Need help setting this up? Contact [support@ewake.ai](/support). # FireHydrant integration Source: https://docs.ewake.ai/integrations/alerting/firehydrant Connect FireHydrant so ewake investigates your incidents and your Signals alerts, reads your incidents, and posts its investigation back on the alert. > [!NOTE] > > **What you'll get:** Four workflows, which you can use together or alone: > > * **Incident response.** FireHydrant pushes each new incident to ewake, and ewake investigates it in the incident's Slack channel. > * **Alert source.** FireHydrant Signals pushes alerts to ewake, and ewake investigates each one. > * **Incident details.** During an investigation, ewake reads a FireHydrant incident by its id, and finds the incident of a Slack channel it is invited to. > * **Write-back.** After an investigation, ewake finds the matching FireHydrant alert and posts the investigation on it as a comment. *** ## Which setup you need | Workflow | What to set up | | - | - | | **Incident response** | The FireHydrant integration, its [webhook](#set-up-the-firehydrant-webhook), and an incident flow. | | **Alert source** | An [On-Call flow](/working-with-ewake/on-call-agent) with the FireHydrant source. With the API key connected, the flow reads the [webhook of the integration](#set-up-the-firehydrant-webhook). Without it, the flow gets a URL of its own, for a webhook target or an org webhook. | | **Incident details** | The FireHydrant integration, with an API key. | | **Write-back** | The FireHydrant integration, with an API key, plus a [follow-up action](/working-with-ewake/on-call-agent#follow-up-actions) on a flow. | *** ## Connect the API key The API key lets ewake read incidents and alerts, page people from a follow-up action, and post comments for the write-back. ### Prerequisites * A FireHydrant account with permission to create API keys * At least **read access to incidents, severities and services** on the key. Ewake refuses a key that can't read all three. * For the write-back, a key whose role has the `respond_to_alerts` permission, so ewake can post comments on Signals alerts * To page people from a follow-up action, a key whose role has the `create_alerts` permission **1. Create an API key in FireHydrant** In FireHydrant, go to **Settings** → **API Keys** and create a key. Copy the key immediately. FireHydrant shows it once. **2. Open the FireHydrant integration in ewake** In your ewake dashboard, go to **Integrations** and click the **FireHydrant** tile under **Add more**. **3. Fill in the fields** | Field | Value | | - | - | | **Region** | **US** (`app.firehydrant.io`) or **EU** (`app.eu.firehydrant.io`). Pick the instance your FireHydrant account is on. | | **API Key** | The key created in Step 1 | **4. Test and save** Click **Test connection** to verify the credentials, then click **Save**. The test shows what the key can do. **Page people** and **Comment on alerts** are optional: ewake investigates without them. > [!TIP] > > FireHydrant is connected. Ewake can now read FireHydrant incidents during its investigations. > [!NOTE] > > An integration connected before the **Region** option existed uses the US instance. *** ## Set up the FireHydrant webhook The FireHydrant integration has one webhook. You set it up **once**, and every ewake flow that reads FireHydrant uses it: incidents go to your incident flows, and Signals alerts go to your On-Call flows of FireHydrant. Each flow takes the events that its own conditions match. ### Prerequisites * FireHydrant is [connected with an API key](#connect-the-api-key) * A FireHydrant account with access to **Settings** → **Webhooks** **1. Open the webhook of the integration in ewake** In your ewake dashboard, go to **Integrations** → **FireHydrant** and open the card. The **Webhook** section shows the **URL** and the steps below. **2. Create a webhook in FireHydrant** In FireHydrant, go to **Settings** → **Webhooks** and create a webhook. Paste the **URL** from the ewake Webhook section. **3. Subscribe to incidents and alerts** Under **Event Subscriptions**, tick **Incidents** and **Signals Alerts**. **4. Paste the secret in ewake** FireHydrant fills the **Secret** of a new webhook with a key of its own. Copy it, paste it in the **Secret** field of the ewake Webhook section, and click **Set up the webhook**. Then click **Create Webhook** in FireHydrant. Ewake confirms that the secret is saved. It checks the signature of each push from FireHydrant with it, and refuses a push with no valid signature. > [!NOTE] > > Ewake never shows the secret again. To change it, paste the new one and click **Replace the Secret**. *** ## Investigate each FireHydrant incident With the [webhook](#set-up-the-firehydrant-webhook) set up, ewake investigates each incident that FireHydrant declares. It joins the incident's Slack channel by itself, posts its first message there, and runs the investigation in that thread. **1. Create an incident flow** In your ewake dashboard, go to **On-call**, click **New on-call agent**, then **An incident**. Under **Where incidents start**, tick **FireHydrant** under **Incident trackers**. **2. Choose what ewake does** Under **What ewake does**, keep ewake's own incident instructions or write yours. Then keep the flow **On** and click **Create the flow**. > [!TIP] > > Ewake investigates the next FireHydrant incident in its Slack channel. ### When ewake starts FireHydrant creates the Slack channel of an incident a few seconds after it declares the incident, so its first pushes carry no channel. Ewake waits, and starts on the first push that carries the incident's Slack channel. FireHydrant sends a push when the incident changes, for example a new milestone, a note or a new severity. > [!NOTE] > > FireHydrant sends no push when it only adds the Slack channel. If nothing changes on the incident after its channel exists, ewake starts on the next change. To start ewake at once, change the incident, for example set its milestone to **Acknowledged**. Ewake starts one investigation for each incident. The later pushes of the same incident start nothing more, and neither do pushes of an incident that is already resolved. *** ## Send Signals alerts to ewake FireHydrant Signals can push alerts straight to ewake. Each alert starts an investigation, and ewake posts it in your on-call channels in Slack. > [!NOTE] > > With the FireHydrant integration connected, a new FireHydrant flow shows no URL and no signing key. It reads the [webhook of the integration](#set-up-the-firehydrant-webhook), which sends every Signals alert. Create the flow, set up that webhook once, and skip the two options below. ### Create the flow **1. Create a new flow** In your ewake dashboard, go to **On-call** → **New on-call agent** → **An event**. Pick **Post in an on-call channel**, then pick **FireHydrant** as the source. **2. Copy the URL and the signing key** When you save the flow, ewake shows its **Webhook URL** and a **signing key**. FireHydrant signs each push with this key, so ewake can trust it. > [!WARNING] > > Ewake shows the signing key once. Copy it before you close the dialog. To change the key later, create a new flow, then delete the old one. **3. Connect FireHydrant** Set up one of the two options below. Use one option per flow, not both: each one sends the same alert, so ewake would investigate it twice. ### Option 1, Signals webhook target (recommended) An escalation policy step pages ewake, as it pages a person. **1. Add a webhook target** In FireHydrant, go to **Signals** → **Webhook Targets** and click **Add Webhook Target**. **2. Paste the URL and the key** Give the target a name. Paste the **Webhook URL** into **URL**, and the signing key into **Signing Key**. Save. **3. Add the target to your escalation policies** Add the target as a step of each **escalation policy** whose alerts ewake must investigate. > [!TIP] > > Ewake starts one investigation for each page. ### Option 2, org webhook The org webhook sends every Signals alert of your organization. The [webhook of the integration](#set-up-the-firehydrant-webhook) is this org webhook, set up once for all your flows. If you set it up, every FireHydrant flow already receives the Signals alerts, and you do not need the steps below. To give one flow an org webhook of its own instead: **1. Add a webhook** In FireHydrant, go to **Settings** → **Webhooks** and add a webhook. Paste the flow's **Webhook URL** into the URL field, and replace the **Secret** with the flow's signing key. **2. Subscribe to Signals** Subscribe the webhook to **Signals Alerts**. > [!TIP] > > Ewake investigates each new alert. When the alert is resolved or ignored in FireHydrant, ewake marks its report resolved. ### What ewake reads from each option | | Webhook target | Org webhook | | - | - | - | | **When ewake investigates** | Each page of the target | Each new alert | | **Resolve** | A page with status `CLOSED` | The alert is resolved or ignored | | **Fields the flow rules can match** | Title, `service`, `environment`, `level`, `priority` | Title only | The webhook target reads `service` and `environment` from the alert tags, in the form `service:checkout-api` and `environment:production` (or `env:production`). Tag your alerts this way to filter them in [What ewake investigates](/working-with-ewake/on-call-agent). *** ## Post the investigation on the FireHydrant alert Ewake can write its investigation back to FireHydrant. It posts a comment on the Signals alert, and the people who follow the alert in FireHydrant see it. This is useful when your team works the alert in FireHydrant and not in Slack. > [!NOTE] > > The write-back is in early access. Contact [support@ewake.ai](/support) to turn it on for your workspace. ### Prerequisites * The [FireHydrant API key](#connect-the-api-key) is connected * An [On-Call flow](/working-with-ewake/on-call-agent), with any source. For example, a Datadog alert in Slack whose monitor also opens a FireHydrant alert. ### Set up the follow-up action **1. Open the follow-up actions of the flow** In your ewake dashboard, open the flow, then go to **Follow-up actions**. **2. Describe the action** In the **Action** field, ask ewake to find the alert in FireHydrant and post the investigation on it. Say in words that it must post on the FireHydrant alert. For example: ``` Find the FireHydrant alert of this alert and post the summary of the investigation on it as a comment. ``` **3. Parse and review** Click **Parse action**. Check that the parsed action uses these two tools: | Tool | What it does | | - | - | | **List FireHydrant alerts** | Finds the FireHydrant alerts that started in a time range, with their source alert text | | **Comment on FireHydrant alert** | Posts the comment on the alert | Save the flow. > [!TIP] > > After the next investigation, ewake finds the FireHydrant alert and posts its investigation on it. ### How ewake finds the alert Ewake lists the FireHydrant alerts around the time the alert fired. It then compares the ids in the source alert, such as a Datadog monitor id or event id, with the text of each FireHydrant alert. Name the ids to match in the action text to make the match reliable. ### What the write-back can do * It posts **one comment per alert** in each investigation. A retry in the same investigation does not post a second comment. * It **cannot** change, acknowledge or resolve the alert. * It never runs in the Playground, which only reads. *** ## What ewake reads and writes | Data | Access | Used for | | - | - | - | | Incident pushes of the webhook | Read | Starting an investigation for each new incident, in its Slack channel | | Incidents | Read | Reading an incident during an investigation, and finding the incident of a Slack channel ewake is invited to | | Signals alerts | Read | Finding the FireHydrant alert of an investigation | | Signals pages | Write, follow-up action only | Paging people through Signals, when a follow-up action asks in words to page | | Signals alert comments | Write, write-back only | Posting the investigation on the alert | > [!NOTE] > > Ewake never declares incidents, changes severity, edits timelines, or changes alerts. It writes to FireHydrant only through the follow-up actions you approve. *** ## Related > [card] [On-Call Agent](/working-with-ewake/on-call-agent) > > Set up flows, rules and follow-up actions. > [card] [Incident.io](/integrations/alerting/incident-io) > > The other incident-management integration, with the same investigation benefits. *** Need help connecting FireHydrant? Contact [support@ewake.ai](/support). # Incident.io integration Source: https://docs.ewake.ai/integrations/alerting/incident-io Connect Incident.io to let ewake auto-investigate new incidents and build a knowledge map from your incident history. > [!NOTE] > > **What you'll get:** Two complementary workflows, ewake can automatically investigate new incidents the moment they are declared, and build a [production knowledge map](/concepts) from your past incidents and postmortems to surface historical context during live investigations. *** ## Two ways to connect | Option | What it does | When to use it | | - | - | - | | **Webhook** | ewake automatically investigates new incidents as they are declared | You want ewake active in every incident from the first second | | **API Key** | ewake ingests past incidents and postmortems to build its knowledge map | You want ewake to have historical context during investigations | The webhook needs the integration to be connected first, so [connect the API key](#option-2-api-key-knowledge-map) before you set up the webhook. The webhook handles real-time response; the API key enriches the knowledge map over time. *** ## Option 1, Webhook (automatic investigation) When a new incident is declared in Incident.io, ewake receives the event on its Incident.io webhook and immediately begins investigating, before anyone has to manually trigger it. Ewake joins the incident's Slack channel by itself, posts its first message there, and runs the investigation in that thread. You set up the webhook **once**, on the Incident.io integration. Every ewake flow that reads Incident.io uses it: incidents go to your incident flows, and Incident.io alerts go to your On-Call flows of Incident.io. ### Prerequisites * Incident.io is [connected with an API key](#option-2-api-key-knowledge-map) * An Incident.io account with **admin access** to the Webhooks settings * Access to your ewake dashboard ### Configuration **1. Open the webhook of the integration in ewake** In your ewake dashboard, go to **Integrations** → **Incident.io** and open the card. The **Webhook** section shows the **Webhook URL** and the steps below. **2. Add an endpoint in Incident.io** In Incident.io, go to **Settings** → **Webhooks** and click **Add Endpoint**. | Field | Value | | - | - | | **Endpoint URL** | The **Webhook URL** from the ewake Webhook section | Under **Subscribe to events**, tick these events, then click **Create**: | Event | Why | | - | - | | `public_incident.incident_created_v2` | Starts ewake the moment an incident is declared. | | `public_alert.alert_created_v1` | Sends Incident.io alerts to your On-call flows of Incident.io. | | `public_alert.alert_resolved_v1` | Marks the report of an alert resolved when the alert resolves. | Ewake ignores every other event type, so do not subscribe to more. **3. Paste the signing secret in ewake** On the endpoint page in Incident.io, show the **Signing Secret**. It starts with `whsec_`. Copy it, paste it in the **Signing Secret** field of the ewake Webhook section, and click **Set up the webhook**. ![Incident.io webhook signing secret field in ewake](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/integrations/alerting/incident-io/webhook-signing-secret.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=1aa9e139a6fb64f13db8cdae7f6a9c63) Ewake confirms that the signing secret is saved. It checks the signature of each push from Incident.io with it, and refuses a push with no valid signature. > [!NOTE] > > Ewake never shows the signing secret again. To change it, paste the new one and click **Replace the Signing Secret**. **4. Create an incident flow** In your ewake dashboard, go to **On-call**, click **New on-call agent**, then **An incident**. Under **Where incidents start**, tick **incident.io** under **Incident trackers**. Under **What ewake does**, keep ewake's own incident instructions or write yours, and choose where the [postmortem draft](#put-the-postmortem-draft-in-incidentio) goes. Then keep the flow **On** and click **Create the flow**. > [!TIP] > > Webhook is active. Ewake will automatically start investigating the next time an incident is declared in Incident.io. > [!NOTE] > > Ewake starts one investigation for each incident. If ewake is also invited to the incident channel while its investigation runs, the invite starts nothing more. > > Ewake skips a private incident: incident.io sends only its id. *** ## Option 2, API Key (knowledge map) Connecting via API key gives ewake read access to your past incidents and postmortems. This enriches the knowledge map, so during a live investigation, ewake can surface patterns like *"this looks like incident #47 from three weeks ago, caused by a deploy on payments-api."* The webhook needs the API key: ewake shows the webhook only on a connected integration. > [!NOTE] > > Ewake reads closed incidents only. Close your resolved incidents in incident.io, so that ewake can learn from them. ### Prerequisites * An Incident.io account with **admin permissions** to create API keys * Access to your ewake dashboard ### Configuration **1. Open Settings in Incident.io** Click the **⚙️ gear icon** at the bottom left → **Settings**. **2. Go to API Keys** Under **Extend** → click **API Keys** → **Create New API Key**. **3. Set permissions** Grant the following permission groups: | Permission group | Scope | Required? | | - | - | - | | View data (public incidents + org settings) | 18 scopes | ✅ Required | | View on-call resources | — | Optional, lets ewake read incident.io alerts | | Read schedules | — | Optional, enables on-call reasoning | | Manage postmortems | — | Optional, lets ewake [write postmortem drafts](#put-the-postmortem-draft-in-incidentio) | | The permission that grants `escalations.create` | — | Optional, lets ewake page people from a follow-up action | | The permission that grants `incidents.create` | — | Optional, lets ewake open an incident, when it is turned on for your company | **Test connection** in ewake shows whether the key has View data, View on-call resources and Manage postmortems. **4. Copy the API key** Copy the key immediately, you won't be able to see it again. **5. Connect in ewake** Go to your ewake dashboard → **Integrations** → **Incident.io** → paste the API key → click **Save**. > [!TIP] > > Incident.io is connected. Ewake will begin ingesting your incident history. *** ## Put the postmortem draft in incident.io When an incident is over, ewake offers to write its postmortem draft in the incident's Slack channel. An incident flow that takes incident.io incidents can put that draft on the incident in incident.io, in place of the Slack thread. **1. Give the API key the permission** In incident.io, edit the API key and add the **Manage postmortems** permission. In ewake, **Test connection** then shows **Write postmortem drafts** as granted. **2. Choose incident.io in the flow** In the **What ewake does** step of a new incident flow, or under **Instructions** in the editor of an existing one, set **Postmortem draft** to **In incident.io, with a link in Slack**. A new flow starts on this choice. Pick **In the Slack thread** to keep the draft in Slack. The offer then reads **Generate postmortem in incident.io**. A click writes the draft on the incident in incident.io, and ewake answers in Slack with its link. The draft starts with the line *Drafted by ewake. Review it before you share it.* If the write fails, ewake answers with the full draft and the reason. > [!NOTE] > > The **Postmortem draft** field shows only while incident.io is connected, and only on a flow that takes incident.io incidents. A flow made before this field keeps its draft in Slack until you choose incident.io. If the key lacks **Manage postmortems**, the draft stays in Slack and the flow warns about it. *** ## Auto-invite ewake to incident channels With the webhook, ewake joins each incident channel by itself. An invite is the other way to start ewake on an incident: when it is invited to an incident channel, ewake reads the incident from Incident.io and starts its investigation. Use it if you do not set up the webhook. Configure Incident.io to automatically add ewake to every new incident channel the moment it is created: **1. Open Workflows** In Incident.io → **Settings** → **Workflows**. **2. Create or edit a workflow** Add a workflow that triggers when an incident is declared. **3. Add the Slack bot step** Add the **"Invite a Slack bot user to an incident channel"** step → select **ewake**. Ewake will be in every incident channel from the first message onward. # PagerDuty integration Source: https://docs.ewake.ai/integrations/alerting/pagerduty PagerDuty support in ewake is coming soon. Its tile shows in the dashboard but can't be connected yet. > [!NOTE] > > **Coming soon.** The PagerDuty integration is currently in development and will be available shortly. Once live, ewake will receive PagerDuty alerts and automatically investigate them in Slack, the same way it handles Datadog alerts. It will also access your incident history and on-call schedules to enrich investigations with team context. *** > [card] [Get notified when it's ready →](/support) > > Reach out and we'll let you know as soon as PagerDuty support is available. # Rootly integration Source: https://docs.ewake.ai/integrations/alerting/rootly Connect Rootly to give ewake read access to your incidents so it can pull live incident context into investigations. > [!NOTE] > > **What you'll get:** ewake can read your Rootly incidents and match the one tied to the Slack channel it's working in, surfacing severity, status, and summary directly in the investigation, without anyone pasting context by hand. *** ## Prerequisites * A Rootly account with permission to create API keys * An API key with **read access to incidents, severities and services**. Ewake refuses a key that can't read all three. * Access to your ewake dashboard *** ## Configuration **1. Generate an API key in Rootly** In Rootly, go to **Configuration** → **API Keys** → click **Generate New API Key**. Give it **observer** (read-only) permissions, ewake only needs read access to incidents. > [!NOTE] > > Copy the key now, you won't be able to see it again after closing the screen. **2. Open the Rootly integration in ewake** In your ewake dashboard, go to **Integrations** and click the **Rootly** tile under **Add more**. ![Connect to Rootly modal in ewake](https://mintcdn.com/ewakeai/RRnFF3HXBXV95pZ2/images/integrations/alerting/rootly/connect-modal.png?fit=max\&auto=format\&n=RRnFF3HXBXV95pZ2\&q=85\&s=2074d1f7cfa799ce720f8574e3561878) **3. Enter your API key** | Field | Value | | - | - | | **API Key** | The key generated in Step 1 | **4. Test and save** Click **Test connection** to verify the connection, then click **Save**. The test shows what the key can read: **Read incidents**, **Read severity levels** and **Read services**. > [!TIP] > > Rootly is connected. Ewake can now pull incident context during investigations. *** ## Investigate each Rootly incident Rootly sends nothing to ewake. Ewake takes a Rootly incident when it is invited to the incident's Slack channel: it finds the Rootly incident of that channel, and investigates it there. **1. Create an incident flow** In your ewake dashboard, go to **On-call**, click **New on-call agent**, then **An incident**. Under **Where incidents start**, tick **Rootly** under **Incident trackers**. **2. Choose what ewake does** Under **What ewake does**, keep ewake's own incident instructions or write yours. Then keep the flow **On** and click **Create the flow**. **3. Invite ewake to the incident channel** Invite `@ewake` to the Slack channel of each Rootly incident. > [!TIP] > > Ewake reads the incident from Rootly and starts its investigation in the channel. *** > [!NOTE] > > Ewake only requires **read-only** access to Rootly. It never declares, edits, or resolves incidents. # Gerrit integration Source: https://docs.ewake.ai/integrations/code/gerrit Gerrit support in ewake is coming soon. Its tile shows in the dashboard but can't be connected yet. > [!NOTE] > > **Coming soon.** The Gerrit integration is currently in development. Its tile appears under **Add more** on the **Integrations** page, tagged **SOON**, in the **SCM & Code Review** category, but cannot be connected yet. Once live, ewake will read submitted changes from Gerrit and correlate them with production behaviour, the same way it does with GitHub and GitLab, particularly useful in organisations that run Gerrit alongside a separate CI/CD system. > [!NOTE] > > In the meantime, [GitHub](/integrations/code/github) and [GitLab](/integrations/code/gitlab) are the two source-control integrations you can connect today. If neither is an option, [Deployment Tracking](/integrations/deployment/deployment-tracking) still gives ewake deploy context from any pipeline. *** > [card] [Get notified when it's ready →](/support) > > Reach out and we'll let you know as soon as Gerrit support is available. # GitHub integration Source: https://docs.ewake.ai/integrations/code/github Connect GitHub to let ewake correlate production issues with deployments and code changes. > [!NOTE] > > **What you'll get:** After connecting GitHub, ewake can correlate incidents with deployments, surface the diff that likely caused a regression, and explain code changes during an investigation. *** ## Prerequisites * An **owner** of your GitHub organisation. A member who is not an owner can only send GitHub an install request. Approving it on GitHub does not connect ewake: an owner then runs the install from the ewake dashboard. * Access to your ewake dashboard *** ## How GitHub is connected By installing the Ewake GitHub App on your organisation. That is the only route: there is no token form, and Ewake never stores a GitHub credential. Reads use installation tokens, minted on demand and valid for about an hour. > [!NOTE] > > Running Ewake in your own AWS account? You create the App yourself, in your own > organisation — see the [self-hosted setup guide](/integrations/code/github-app-self-hosted). > The install flow below is the same once it exists. ## Configuration **1. Click Install the Ewake GitHub app** In your ewake dashboard → **Integrations** → click the **GitHub** tile under **Add more**, then **Install the Ewake GitHub app**. ![GitHub integration modal in ewake](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/integrations/code/github/connect-modal.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=36b0d2729fddcaa378475569d700a71b) **2. Select your organisation** Choose the organisation where ewake should be installed, not your personal account. **3. Choose repository access** > [card] Select repositories > > **Recommended.** Grant access only to repos relevant to your production environment. More control, smaller footprint. > [card] All repositories > > Simpler to set up. ewake maps every repository it is granted into its knowledge map, and reads code during an investigation. If using **Select repositories**, use this as a guide: | Include | Exclude | | - | - | | Service code | Repos containing secrets or credentials | | Deployment configs (Helm, k8s manifests) | Customer data or PII repositories | | Infrastructure as code (Terraform, Pulumi) | Audit or compliance-only repos | | CI/CD pipeline definitions | Archived or unused repos | **4. Install** Click **Install**. You'll be redirected back to ewake. > [!TIP] > > GitHub is connected. Ewake can now access your repositories and deployment history. *** ## Pull requests from ewake The Ewake GitHub App reads your organisation. It also has write access to **Contents**, **Pull requests** and **Workflows**, which ewake uses only to open a pull request when someone asks it to: * It creates a branch named `ewake/…` and commits only to branches that start with `ewake/`. **Workflows** lets that branch change a file under `.github/workflows/`. * It opens the pull request. A person on your team reviews and merges it. Ewake never merges. * It follows the pull request it opened, unless you ask it not to. A review, a comment or a failed CI run on the pull request starts a new run, which answers in the pull request or commits a fix to its branch. Closing the pull request stops this. The App also sends ewake your GitHub Actions runs. To investigate failed builds, create a **GitHub Actions** flow on the **On-call** page and pick the repository, workflow and branch. See [Create a flow](/working-with-ewake/on-call-agent#create-a-flow). *** ## Can't see your org repositories? Ewake reads only the repositories the installation grants. To add some, change the App's repository access on GitHub, on its **Configure** page in your organisation settings. The change is saved on GitHub, and ewake reads the new repositories with its next installation token, within the hour. > [!NOTE] > > Start the first install from the ewake dashboard. An install started from the App's page on GitHub carries no state from your ewake session, so ewake refuses it and nothing is connected. If GitHub opens a configuration page instead of the install, the App is already installed on that organisation. Saving there does not connect ewake, because GitHub returns without your session's state: uninstall the App from the organisation, then install it again from the dashboard. If the App is installed on a **user account** rather than the organisation, the connection is refused: ewake reads an organisation, and a personal installation has none. Uninstall it and install again, choosing the organisation. If the GitHub card reports a missing App permission, the installation has not accepted the App's current permissions. Ask an organisation owner to approve the App's updated permissions on GitHub. *** > [card] [Track deployments from GitHub Actions →](/integrations/deployment/deployment-tracking) > > Send deployment events to ewake directly from your CI/CD pipeline. > [card] [What does ewake access in GitHub? →](/security/permissions#github) > > Full permission breakdown for the GitHub integration. # GitHub App (self-hosted) Source: https://docs.ewake.ai/integrations/code/github-app-self-hosted Create a GitHub App in your own organisation and let a self-hosted Ewake deployment act as it. This is how GitHub is connected on a self-hosted deployment. > [!NOTE] > > **Who this is for.** Operators running Ewake in their own AWS account (BYOC). If you're using Ewake's hosted service, connect the shared App from the [main GitHub integration page](/integrations/code/github) instead. A self-hosted deployment reads GitHub as a GitHub App you own. You create the App, you hold its private key, and the install callback completes on your own deployment — nothing routes through Ewake. This is the only way to connect GitHub here. There is no token form in the dashboard and no token field in the integration: reads are made with installation tokens, minted on demand and never stored. A deployment that does not read GitHub can skip this page entirely. > [!NOTE] > > The App path installs from `github.com` and reads `api.github.com`, which covers > GitHub Enterprise Cloud as well. A self-hosted GitHub Enterprise **Server** is a > different host and this flow does not reach it — talk to us before you start. *** ## Why an App An App is installed on the organisation by an owner, is granted a fixed set of permissions, and keeps working when that person leaves. Its tokens are minted per installation, live about an hour, and are never written down — so there is nothing to rotate, nothing to leak from the database, and no one person's rate limit shared across every read. That is the reason there is no token option to fall back to. *** ## Register it from the dashboard The quickest route, and the one that keeps the private key away from whoever runs Terraform. **1. Open the GitHub tile** You need the **Root** role on the deployment: the first person from your company domain to sign in has it. In **Integrations**, click the **GitHub** tile under **Add more**. Enter your organisation login in **GitHub organization** — the name that appears in your repository URLs — and click **Create the Ewake GitHub app**. **2. Review the App on GitHub** The dashboard sends you to GitHub with a prepared manifest. GitHub shows you what the App will be called and what it asks for before you agree to anything: | | | | - | - | | Name | `Ewake ()`, cut to GitHub's 34-character limit | | Repository permissions | Contents, Pull requests, Workflows — **read and write**. Issues, Actions, Deployments, Checks, Commit statuses — **read** | | Organisation permissions | Members — **read** | | Webhook | `/api/v1/github/events`, with the events `pull_request`, `pull_request_review`, `issue_comment` and `workflow_run` | | Visibility | private to your organisation | Ewake writes only to branches named `ewake/…` and to the pull requests it opens from them. See [Pull requests from ewake](/integrations/code/github#pull-requests-from-ewake). The public inbound URL is `public_inbound_base_url` when you set it, the gateway's URL when `public_inbound_gateway` is on with a private load balancer (`alb_internal = true`), and the dashboard URL otherwise. GitHub has to reach it for ewake to follow its pull requests and to run GitHub Actions flows. Without it the App still reads. The gateway routes `/api/v1/github/events`, with the Slack, alert and deployment paths. **3. Create it** GitHub creates the App and sends your browser back to the deployment with a one-time code. The deployment exchanges that code for the App's credentials and writes them to `ewake///github-app` in your own AWS account. Then it sends you straight on to install the App. > [!TIP] > > The App exists and the deployment holds its key. No Terraform, no apply, no > restart — the dashboard reads the secret on its next request. > [!NOTE] > > GitHub also returns a client secret during this exchange. Ewake does not read or > store it: nothing uses it, and keeping it would widen what a leak of that secret would > cost you. Ewake stores the webhook secret, which it checks every webhook delivery > against. > [!WARNING] > > Start this from the dashboard, not from GitHub. The dashboard sets a session-scoped > nonce before it sends you over, and the callback refuses a request that arrives > without one. *** ## Or seed it from Terraform Use this when you already have an App you want the deployment to act as, rather than creating a new one. Take these values off the App's settings page: | Value | Where | | - | - | | `client_id` | "Client ID" on the settings page | | `slug` | the last path segment of the App's URL, `github.com/settings/apps/` | | `private_key` | "Generate a private key" — downloads a `.pem` once, and GitHub never shows it again | | `webhook_secret` | optional: the "Webhook secret" field, when the App has a webhook | Then set the first three in `terraform.tfvars` and apply. If the App has a webhook, also set `github_app_webhook_secret`, so the deployment can check each delivery: ```hcl theme={null} github_app_client_id = "Iv23li..." github_app_slug = "ewake-acme" github_app_private_key = <<-EOT -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEA... -----END RSA PRIVATE KEY----- EOT # github_app_webhook_secret = "..." # optional: only when the App has a webhook ``` > [!WARNING] > > A `.tfvars` file takes literal values only. `file("your-app.private-key.pem")` looks > natural there and is rejected outright: > > ``` > Error: Function calls not allowed > ``` > > Paste the PEM as the heredoc above, or keep it in its own file and pass it through > the environment, where `cat` is available: > > ```bash theme={null} > export TF_VAR_github_app_private_key="$(cat ~/Downloads/ewake-acme.private-key.pem)" > terraform apply > ``` > > Don't try to answer Terraform's interactive prompt with it — that reads one line, and > a PEM is many. > [!WARNING] > > **All three or none.** Setting one or two fails the plan, naming which are missing. > That case is almost always a half-finished edit. `github_app_webhook_secret` is > optional, and the plan refuses it without the other three. > > `github_app_private_key` and `github_app_webhook_secret` are declared `sensitive`, so > Terraform keeps them out of plan output and the apply log. They still reach the > **state file** — that is what passing a key to Terraform costs. The state backend wants > encryption and restricted reads, and whoever runs the apply can read the key. > Registering from the dashboard avoids both. If you create the App by hand rather than from the manifest, set its **Setup URL** to `/api/v1/auth/github/callback` and tick **Redirect on update**. GitHub calls Setup URL optional; Ewake requires it. Leave it blank and the install finishes on GitHub's own page with no callback ever reaching your deployment. Give the App the permissions in the table above. For the webhook, set its URL to `/api/v1/github/events`, set a webhook secret, and subscribe to the four events in that table. *** ## Install it From the dashboard route, GitHub sends you to the install page as soon as the App is created. From the Terraform route, the App is registered but not yet installed: go to **Integrations**, click the **GitHub** tile under **Add more**, then **Install the Ewake GitHub app**. > [!WARNING] > > Install it on the **organisation**, not on your user account. Ewake reads an > organisation, and the callback refuses a personal installation. *** ## Troubleshooting **After clicking Install, GitHub lands you on the App's settings page.** Setup URL is empty on the App. Open the App on GitHub → **Post installation** → set **Setup URL** to `/api/v1/auth/github/callback` → **Save changes**. Then uninstall the App from your organisation and reinstall from the Ewake dashboard. **You changed the installation on GitHub and landed on "Could not connect GitHub. Please try again."** Expected, and harmless. **Redirect on update** sends you back to Ewake after any change to the installation, but a change you started on GitHub carries none of the session state the callback checks, so the callback refuses it. Your change is already saved on GitHub, and Ewake picks up the new repositories on its next installation token — within the hour. **Registering from the dashboard ends on "Could not register the GitHub App with the code GitHub returned."** (`?error=github_app_manifest_failed`). The one-time code GitHub returns is good for an hour and is spent on the first exchange, so this is not retryable by reloading. Check the dashboard's logs: `Rejected a GitHub App manifest callback that carried no connect nonce of ours` means the flow was not started from the **GitHub** tile in **Integrations** in this browser session. Start again from there. If an App was created on GitHub before the failure, delete it first: GitHub App names are unique, so a second `Ewake ()` cannot be created while the first exists. **Integrations reports missing GitHub App permissions.** GitHub applies the manifest only when it creates the App, so an App created before Ewake asked for a permission keeps its old set. Ewake names each permission it lacks. Add them on the App's settings page on GitHub (**Permissions & events**), then have an organisation owner approve the updated permissions on the installation. **The dashboard reports "Could not connect GitHub. Please try again." after install.** Check its logs. Two common causes: * `Rejected a GitHub callback that carried no connect nonce of ours` — the install was started from the App's page on GitHub rather than from the Ewake dashboard. The dashboard sets a session-scoped nonce before it sends you to GitHub, and the callback checks it. Uninstall and start again from the **GitHub** tile in the dashboard's **Integrations** page. * `GitHub App identity: private key parse failed` — the PEM in your deployment's `github-app` secret has been collapsed onto one line, or its newlines were not escaped as `\n` inside the JSON string. This only happens to a hand-written secret; one the dashboard wrote is always correct. Build it with a tool rather than by hand: ```bash theme={null} jq -n --arg id "Iv23li..." --arg slug "ewake-acme" \ --rawfile pem ./ewake-acme.private-key.pem \ '{CLIENT_ID:$id, APP_SLUG:$slug, APP_PRIVATE_KEY:$pem}' ``` `--rawfile` is what preserves the newlines. Check it round-trips with `... | jq -r '.APP_PRIVATE_KEY' | openssl rsa -noout -check`. *** ## Rotating the key Generate a new private key on the App's settings page, then update the secret — point `github_app_private_key` at the new PEM and apply, or write the new value to `ewake///github-app` directly if the App was registered from the dashboard. Either way the running task keeps the old key: the deployment caches the App identity once it has found one, so force a new deployment of the dashboard service to pick up the new key. Delete the old key on GitHub once the new one is serving. The App, its installation and its slug are unchanged, so nothing else moves. # GitLab integration Source: https://docs.ewake.ai/integrations/code/gitlab Connect GitLab to let ewake correlate production issues with merge requests, deployments, and infrastructure code changes. > [!NOTE] > > **What you'll get:** After connecting GitLab, ewake can correlate production issues with recent merge requests and deployments, surface the diff that likely caused a regression, and analyse infrastructure-as-code changes (Terraform, Kubernetes manifests) alongside application code. *** ## Prerequisites * **Owner** access to your top-level GitLab group (GitLab.com) or **administrator** access (self-managed), required to create a service account * Access to your ewake dashboard > [!NOTE] > > Connect ewake with a **dedicated service account** rather than a personal access token. A service account isn't tied to an individual, so access survives staff changes, stays least-privilege and auditable, and won't break when someone leaves or rotates their own tokens. This is GitLab's recommended pattern for integrations. *** ## Configuration Follow the steps for your GitLab deployment. > [tab] GitLab.com (SaaS) > > **1. Create a service account** > > As a top-level group **Owner**, use **Search or go to** to open your group, then go to **Settings → Service accounts** → click **Add service account**. > > Enter a name (e.g. `ewake`) and click **Create service account**. > > **2. Create an access token for the service account** > > On the **Settings → Service accounts** page, find the service account, open the **⋮** (vertical ellipsis) menu → **Manage access tokens** → **Add new token**. > > Select the following scopes: > > | Scope | Why | > | - | - | > | `read_api` | Read project data, merge requests, pipelines, and deployments | > | `read_repository` | Read source code and diffs | > > Set an expiry date and click **Create personal access token**. > > > [!NOTE] > > > > Copy the token now, GitLab will not show it again after you leave this page. > > **3. Give the service account access to your projects** > > Add the service account as a member of each group or project you want ewake to monitor (**Manage → Members → Invite members**) with the **Reporter** role. > > > [!NOTE] > > > > A token with no project membership reads nothing. **Reporter** is the minimum role required to read code, merge requests, and pipelines on private projects, and adding the service account at the **group** level covers every project inside that group. > > **4. Connect in ewake** > > In your ewake dashboard, go to **Integrations** → click the **GitLab** tile under **Add more**. > > | Field | Value | > | - | - | > | **GitLab instance URL** | `https://gitlab.com` | > | **Access token** | The service account token created in Step 2 | > > Click **Test connection**, then **Save**. > > **5. Check the projects** > > There is no project picker: ewake reads every project the service account is a member of. Click **Overview** on the **GitLab** card to see them listed under **Projects**. To add or remove a project, change the service account's membership in GitLab. > > > [!NOTE] > > > > We recommend including all projects with production services. Infrastructure repos (Terraform, Kubernetes configs) are particularly valuable for ewake's root-cause analysis. > > > [!TIP] > > > > GitLab is connected. Ewake can now correlate incidents with merge requests and deployments. > [tab] Self-managed > > **1. Create a service account** > > > [!NOTE] > > > > Service accounts require GitLab **Enterprise Edition** — the open-source **Community Edition (CE)** cannot create them, so you won't see **Settings → Service accounts** on a CE instance. (On EE Free tier, service accounts are available from GitLab 18.11.) > > As an **administrator**, select **Admin** (top right), then go to **Settings → Service accounts** → click **Add service account**. > > Enter a name (e.g. `ewake`) and click **Create service account**. > > **2. Create an access token for the service account** > > On the **Settings → Service accounts** page, find the service account, open the **⋮** (vertical ellipsis) menu → **Manage access tokens** → **Add new token**. > > Select the following scopes: > > | Scope | Why | > | - | - | > | `read_api` | Read project data, merge requests, pipelines, and deployments | > | `read_repository` | Read source code and diffs | > > Set an expiry date and click **Create personal access token**. > > > [!NOTE] > > > > Copy the token now, GitLab will not show it again after you leave this page. > > **3. Give the service account access to your projects** > > Add the service account as a member of each group or project you want ewake to monitor (**Manage → Members → Invite members**) with the **Reporter** role. > > > [!NOTE] > > > > A token with no project membership reads nothing. **Reporter** is the minimum role required to read code, merge requests, and pipelines on private projects, and adding the service account at the **group** level covers every project inside that group. > > **4. Connect in ewake** > > In your ewake dashboard, go to **Integrations** → click the **GitLab** tile under **Add more**. > > | Field | Value | > | - | - | > | **GitLab instance URL** | Your self-hosted GitLab URL (e.g. `https://gitlab.your-domain.com`) | > | **Access token** | The service account token created in Step 2 | > > Click **Test connection**, then **Save**. > > **5. Check the projects** > > There is no project picker: ewake reads every project the service account is a member of. Click **Overview** on the **GitLab** card to see them listed under **Projects**. To add or remove a project, change the service account's membership in GitLab. > > > [!NOTE] > > > > We recommend including all projects with production services. Infrastructure repos (Terraform, Kubernetes configs) are particularly valuable for ewake's root-cause analysis. > > > [!TIP] > > > > GitLab is connected. Ewake can now correlate incidents with merge requests and deployments. *** ## Let ewake open merge requests (optional) By default, ewake only reads GitLab. When this option is on, you can also ask ewake in Slack to open a merge request with a fix. The ewake team turns it on for your company. **1. Create a token with the api scope** GitLab cannot add a scope to an existing token. On **Settings → Service accounts**, open the **⋮** menu of the service account → **Manage access tokens** → **Add new token**, and select: | Scope | Why | | - | - | | `api` | Create a branch, commit to it, and open a merge request. It also covers what `read_api` and `read_repository` give. | `write_repository` is not enough: it allows `git push` only, and ewake writes through the GitLab API. **2. Give the service account the Developer role** On each group or project where ewake may open merge requests, change the role of the service account from **Reporter** to **Developer** (**Manage → Members**). Keep **Reporter** on the projects that ewake should only read. **3. Reconnect in ewake** In your ewake dashboard, go to **Integrations** → click **Overview** on the **GitLab** card → **Replace credentials**, and paste the new token in **Access token**. Click **Test connection**, then **Save changes**. Then revoke the old token in GitLab. > [!NOTE] > > What ewake does with this access: > > * It creates branches named `ewake/…` and commits only to those branches. > * It opens the merge request. A person on your team reviews and merges it. Ewake never merges. > * It escapes GitLab quick actions (`/merge`, `/assign`, …) in the merge request description. > * It does not follow the merge request yet: review comments and failed pipelines do not start a new run. > [!WARNING] > > A protected branch rule or a push rule that covers `ewake/*` (for example, signed commits or a branch name format) blocks the write. When a write fails, ewake replies with what to change: the `api` scope, the Developer role, or the branch rule. *** > [!NOTE] > > By default, ewake uses **read-only** access to GitLab. It writes only when merge requests are turned on, and then only to its own `ewake/…` branches and the merge requests it opens. > [card] [Track deployments from GitLab CI/CD →](/integrations/deployment/deployment-tracking) > > Send deployment events to ewake directly from your CI/CD pipeline. > [card] [What does ewake access in GitLab? →](/security/permissions#gitlab) > > Full read-only permission breakdown for the GitLab integration. # Custom MCP Server Source: https://docs.ewake.ai/integrations/custom/custom-mcp Connect any MCP server you run so ewake can call your own tools during investigations. > [!NOTE] > > **What you'll get:** ewake can consult a tool surface you own — an internal API, a bespoke log store, a service catalog — during an investigation, alongside its built-in integrations. If you can expose it over MCP, ewake can query it. > [!NOTE] > > This page is about connecting **your** MCP server **to** ewake. For the reverse — querying ewake from Claude Code, Cursor, or another MCP client — see [MCP Server](/interfaces/mcp). No MCP server in front of your API? Connect it from its spec with [OpenAPI](/integrations/custom/openapi). *** ## Prerequisites * An MCP server reachable over **HTTPS**, using **streamable HTTP** transport * A publicly reachable URL for it (through a tunnel such as Cloudflare Tunnel or ngrok if it lives inside your network) * **Read-only credentials** for whatever the server talks to, or, for a server you sign in to, an account with read-only access *** ## Configuration **1. Expose your MCP server over HTTPS** Ewake calls your endpoint outbound; there are no inbound ports to open on ewake's side. Point it at a stable URL, for example `https://mcp.yourcompany.com/logs/mcp`. **2. Open the Custom MCP integration in ewake** In your ewake dashboard, go to **Integrations** and click the **Custom MCP** tile under **Add more**. If a server is already connected, click **Configure** on the **Custom MCP** card instead. **3. Describe the server** | Field | Value | | - | - | | **Server name** | A label to tell your servers apart (e.g. `logs`, `internal-tools`). Letters, digits, `-` or `_`, starting with a letter or digit, max 64 characters. | | **MCP Server URL** | The HTTPS endpoint, streamable HTTP | | **Description** | One line on what this server exposes (e.g. "ClickHouse cluster with production logs"), max 200 characters | > [!WARNING] > > The **Description** is not decoration. Ewake uses it to decide whether to consult this server during an investigation. A vague description means the server rarely gets called. **4. Choose how ewake authenticates** Under **Request headers**, add whatever your endpoint requires — an `Authorization` bearer token, or a Cloudflare Access service token (`CF-Access-Client-Id` and `CF-Access-Client-Secret`). Values are stored encrypted. Then pick the **Authentication**: | Option | How ewake authenticates | | - | - | | **No sign-in, or request headers (API key, bearer token)** | Sends the request headers only. The default. | | **Sign in with OAuth** | Click **Sign in**: ewake opens the server's sign-in page, and the server acts as the account you sign in with. Ewake registers itself with the server. Use **Use my own OAuth client** to enter a **Client ID** and an optional **Client secret** instead, which a server that can't register ewake requires. | | **OAuth client credentials (service account)** | Enter a **Client ID**, a **Client secret** and an optional **Scope**. Ewake gets its own token. | > [!TIP] > > If a test with headers is refused and the server offers a sign-in, ewake says so. Click **Sign in instead**. **5. Test the connection and pick the tools** Click **Test connection**, or **Sign in** and approve the server's consent page. Ewake lists every tool the server advertises under **Choose the tools Ewake can use**. Ewake ticks the tools whose names look read-only (`list…`, `get…`, `search…`, `query…`, and similar) and marks the others **may write**. Adjust by hand. **Select read-only** goes back to that selection. > [!WARNING] > > Ewake can only call the tools you tick here — nothing else the server exposes, **even if it adds tools later**. New tools are not auto-approved; tick them with the server's **Tools** button under **Connected servers**. **6. Save** Click **Save**. > [!TIP] > > The server is connected. Ewake will consult it during investigations when the description matches what it's looking for. *** ## Connect more than one server Custom MCP is a **multi-instance** integration: connect as many servers as you need, each with its own name, description, authentication, and tool allowlist. Click **Configure** on the **Custom MCP** card: each server is a separate entry under **Connected servers**, and the **Add servers** form below connects another. For each server you can: * Change the tools ewake may call with its **Tools** button. * See who signed in (**Signed in as**) and **Sign in again**, for a server you signed in to. * Disconnect it without affecting the others. Give each a distinct description — that's what ewake matches on when deciding which server to consult. > [!NOTE] > > [LaunchDarkly](/integrations/infrastructure/launchdarkly) and [LangSmith](/integrations/observability/langsmith) have their own cards, which connect their hosted MCP servers for you. The servers they connect show on those cards, not under Custom MCP. *** ## Security * **You choose the tools.** The allowlist is enforced on ewake's side; unticked tools are never called. * **Connect with read-only credentials.** The allowlist is a guardrail, not a substitute — read-only credentials mean writes are refused at the source even if a tool is mis-ticked. * **Headers are stored encrypted**, the same way integration secrets are. * **Outbound only.** Ewake calls your endpoint; you open no inbound ports to ewake. > [card] [How ewake handles permissions and data →](/security/permissions) *** Need help exposing a server? Contact [support@ewake.ai](/support). # OpenAPI integration Source: https://docs.ewake.ai/integrations/custom/openapi Connect any HTTP API from its OpenAPI spec so ewake can call its operations during investigations. > [!NOTE] > > **What you'll get:** ewake can call your own API, an internal gateway, a service catalog, a deploy tool, without an MCP server in front of it. Give it the OpenAPI spec, and each operation you allow becomes a tool ewake can call. > [!NOTE] > > Already run an MCP server for this API? Connect it as a [Custom MCP server](/integrations/custom/custom-mcp) instead. *** ## Prerequisites * An **OpenAPI 3** spec of the API, as an HTTPS URL or as JSON or YAML you can paste * The API reachable from ewake over HTTP or HTTPS (prefer HTTPS) * Credentials for the API: request headers (an API key, for example), an OAuth client, or a service account of a JWT issuer. Prefer **read-only** credentials. *** ## Configuration The form has three steps: **Spec**, **Connection** and **Operations**. **1. Open the OpenAPI integration in ewake** In your ewake dashboard, go to **Integrations** and click the **OpenAPI** tile under **Add more**. **2. Spec** | Field | Value | | - | - | | **API name** | A label to tell your APIs apart (e.g. `billing`, `observability`). Ewake names the tools of this API after it. Letters, digits, `-` or `_`, starting with a letter or digit, max 64 characters. | | **OpenAPI spec** | The HTTPS URL of the spec, or the whole spec pasted as JSON or YAML | Ewake reads the spec as you type and shows it as a tree, or the line and column of the error. **Next** opens once the spec is read. > [!NOTE] > > Ewake looks for OpenAPI 3. It still reads a Swagger 2.0 spec, with a warning, but rejects each part that doesn't follow OpenAPI 3. Give the base URL yourself in that case. **3. Connection** | Field | Value | | - | - | | **Base URL** | The URL ewake sends requests to. It starts as the first server of the spec. | | **Authentication** | **Request headers**, **Client credentials** or **JWT issuer**, see [Authentication](#authentication) | | **Request headers** | Headers sent with every request, e.g. an API key or a Cloudflare Access service token. Stored encrypted. | Click **Test connection**. For a JWT issuer, the test also logs in. A successful test opens the next step. **4. Operations** Check the **Description**. Ewake fills it from the spec and reads it to decide when to call this API, so say what the API gives access to. Then choose the operations ewake may call. They are grouped by tag, with a search. * Reads (`GET`, `HEAD`) start **on**. * Writes (`POST`, `PUT`, `PATCH`, `DELETE`) start **off**. Turn on each one on purpose. * Tick **Read-only** on a `POST` that only reads, such as a search. * An operation ewake can't call shows its reason with no switch, for example a body that isn't JSON. > [!WARNING] > > Ewake can only call the operations you turn on here. **5. Save** Click **Save**. > [!TIP] > > The API is connected. Ewake calls it during investigations when the description matches what it's looking for. *** ## Authentication | Option | Fields | How ewake authenticates | | - | - | - | | **Request headers** | The headers only | Sends the headers you set, for example `Authorization: Bearer ` or `X-API-Key`. | | **Client credentials** | **Token URL**, **Scope** (optional), **Client ID**, **Client secret** | Gets an OAuth token from the token URL and renews it before it expires. | | **JWT issuer** | **Login URL**, **Payload body**, **Token attribute** | Posts the payload body (the JSON credentials of a service account) to the login URL, and sends the token at the **Token attribute** of the answer (`access_token` by default) as a Bearer token. When the answer isn't JSON, ewake sends the whole answer as the `Authorization` header. It logs in again before the token expires. | The client secret and the payload body are stored encrypted. The headers go with the token in every option. *** ## Writes A write you turn on is an action. Ewake calls it only when a run may act: * A question from a member or an admin can call every write you turned on. * A follow-up action calls only the writes it names. * An investigation never calls a write. See [Permissions](/security/permissions). *** ## Change the operations or add an API Click **Configure** on the **OpenAPI** card, then the **Tools** button next to the API, to turn its operations on or off. OpenAPI accepts more than one connection: connect each API with its own name, spec, credentials and operations. Give each a distinct description, ewake matches on it. *** ## Security * **You choose the operations.** Ewake never calls an operation you left off. * **Requests stay on the base URL.** Ewake refuses a request whose URL leaves the origin of the base URL, so your headers and token go nowhere else. * **Secrets are stored encrypted**, the same way integration secrets are. * **Outbound only.** Ewake calls your API, you open no inbound ports to ewake. > [card] [How ewake handles permissions and data →](/security/permissions) *** Need help connecting an API? Contact [support@ewake.ai](/support). # Deployment Tracking Source: https://docs.ewake.ai/integrations/deployment/deployment-tracking Send deployment events to ewake from any CI/CD pipeline, with a GitHub Action or a plain curl, to enable deployment-correlated incident analysis. > [!NOTE] > > **What you'll get:** ewake correlates production issues with deployment events in real time. When an alert fires, it automatically checks whether a recent deployment on the affected service could be the cause. *** ## How it works Deployment tracking is a single authenticated HTTPS request. Each time you deploy to production, your pipeline sends one `POST` to the ewake API. Ewake stores these events in your environment's knowledge map and uses them as context during alert investigations. There is nothing to install and no dependency on a particular git host or CI vendor. **Any tool that can make an HTTP request can report deployments.** The [ewake GitHub Action](https://github.com/marketplace/actions/report-deployment) is a thin convenience wrapper around exactly the same request, so if you're not on GitHub Actions, send the request directly. > [!NOTE] > > The `artifactName` field must match the service name as it appears in your observability stack (Datadog, Grafana, etc.) for correlation to work. *** ## Prerequisites You need an ewake API key to authenticate deployment events. In your ewake dashboard, open **API Keys** in the sidebar and create a key. Copy it immediately, it's shown once and starts with `ew_`. Store it in whatever secret store your pipeline already uses, exposed to the build as `EWAKE_API_KEY`. > [!WARNING] > > **An ewake API key is not scoped to a single purpose.** Keys carry a name for your own bookkeeping, nothing more. The same key that posts deployment events also authenticates against the [MCP server](/interfaces/mcp), which can read your service map and past investigations. Treat it as a full workspace credential: never commit it, never paste it inline in a pipeline definition, and revoke it from **API Keys** the moment it might have leaked. *** ## The request ```bash theme={null} curl -X POST https://api.ewake.ai/api/v1/events/deployment \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "timestamp": "2026-04-14T12:00:00Z", "repository": "my-org/my-service", "repositoryUrl": "https://github.com/my-org/my-service", "artifactName": "my-service", "commitSha": "abc1234", "version": "1.2.3", "message": "Deployed by CI", "source": "ci", "labels": {"env": "production"} }' ``` A `202 Accepted` response confirms the event was received. The body carries a `traceId` you can quote to support. | Field | Required | Description | | - | - | - | | `timestamp` | ✅ | ISO 8601 datetime, e.g. `2026-04-14T12:00:00Z` | | `repository` | ✅ | Repository identifier, `owner/name` | | `repositoryUrl` | ✅ | Full repository URL, e.g. `https://github.com/my-org/my-service` | | `artifactName` | ✅ | Must match the service name in your observability stack | | `commitSha` | ✅ | Deployed commit SHA, 7 to 40 characters (short or full) | | `version` | — | Semver, image tag, or short SHA | | `url` | — | Link back to the deploy, e.g. the CI run | | `message` | — | Free-text deployment description | | `source` | — | Deployment source identifier (e.g. `ci`, `github-actions`) | | `labels` | — | Flat JSON object of string keys and string values | > [!WARNING] > > All five required fields must be present. A request missing any of them is rejected with `400 Bad Request` and a message naming the field, it is not accepted-and-ignored. > [!NOTE] > > `https://api.ewake.ai` is the hosted ingestion endpoint. Self-hosted ewake instances use the same path on your own host, for example `https://ewake.your-domain.com/api/v1/events/deployment`. *** ## Add it to your pipeline > [!TIP] > > Using a coding agent? The `ewake-report-deployments` [setup skill](/interfaces/setup-skills#report-deployments) finds your production deploy job, adds this step, and opens a pull request. > [tab] GitHub Actions > > The ewake GitHub Action is available on the [GitHub Marketplace](https://github.com/marketplace/actions/report-deployment). Add \~5 lines to any existing workflow, no changes to your deployment logic required. > > ```yaml theme={null} > - name: Report deployment to ewake > uses: ewake-ai/report-deployment-action@v1 > with: > api-key: ${{ secrets.EWAKE_API_KEY }} > artifact-name: "my-service" > version: ${{ github.sha }} > message: "Deploy ${{ github.ref_name }} to production" > # labels: '{"env": "production"}' # optional: custom metadata > # api-url: "https://your-ewake-instance" # optional: self-hosted override > ``` > > | Parameter | Required | Description | > | - | - | - | > | `api-key` | ✅ | Your ewake API key | > | `artifact-name` | ✅ | Must match the service name in your observability stack | > | `version` | — | Semver, image tag, or short SHA | > | `message` | — | Free-text deployment description | > | `labels` | — | JSON object with custom metadata | > | `api-url` | — | Override for self-hosted ewake instances. Defaults to `https://api.ewake.ai` | > > > [!NOTE] > > > > The action fills in `timestamp`, `repository`, `repositoryUrl`, `commitSha`, `source` and the run `url` from the workflow's own GitHub context, so there are no inputs for them. > > > [!NOTE] > > > > Non-blocking by design, the action always exits 0. If ewake is unreachable it logs a warning and your deployment continues unaffected. > [tab] Any other tool > > Save this script in your repository as `scripts/ewake-report-deployment.sh`. Do not change it, it takes all its inputs from the environment. > > ```bash scripts/ewake-report-deployment.sh theme={null} > #!/bin/sh > # Reports one production deployment to Ewake. Always exits 0: a failed report never fails the deployment. > # Inputs: EWAKE_API_KEY, EWAKE_ARTIFACT_NAME, EWAKE_REPOSITORY (owner/name), EWAKE_REPOSITORY_URL, > # EWAKE_COMMIT_SHA (default: git HEAD), EWAKE_API_URL (default: https://api.ewake.ai). > > if [ -z "${EWAKE_API_KEY:-}" ]; then > echo "Ewake: EWAKE_API_KEY is not set. No deployment report sent." > exit 0 > fi > > commit_sha="${EWAKE_COMMIT_SHA:-$(git rev-parse HEAD 2>/dev/null)}" > timestamp="$(date -u +%Y-%m-%dT%H:%M:%SZ)" > > # No JSON escaping: names, URLs and SHAs hold no quotes. A bad value gets a 400, not a failed deployment. > body=$(printf '{"timestamp":"%s","repository":"%s","repositoryUrl":"%s","artifactName":"%s","commitSha":"%s","source":"ci"}' \ > "$timestamp" "${EWAKE_REPOSITORY:-}" "${EWAKE_REPOSITORY_URL:-}" "${EWAKE_ARTIFACT_NAME:-}" "$commit_sha") > > api_url="${EWAKE_API_URL:-https://api.ewake.ai}" > api_url="${api_url%/}" > > # The key goes to curl on stdin (printf is a shell builtin), so it never shows in the process list. > response=$(printf 'header = "Authorization: Bearer %s"\n' "$EWAKE_API_KEY" | > curl -sS --max-time 10 -K - -w ' (HTTP %{http_code})' -X POST \ > "${api_url}/api/v1/events/deployment" \ > -H "Content-Type: application/json" \ > -d "$body") > > case "$response" in > *'(HTTP 202)') > echo "Ewake: deployment reported. $response" > ;; > *) > echo "Ewake: deployment report failed: $response. The deployment continues." > ;; > esac > > exit 0 > ``` > > Call it as the last command of your production deploy job, from any CI/CD system or deploy script: > > ```bash theme={null} > sh scripts/ewake-report-deployment.sh || true > ``` > > Give the command these environment variables: > > | Variable | Required | Value | > | - | - | - | > | `EWAKE_API_KEY` | ✅ | Your ewake API key, from your secret store | > | `EWAKE_ARTIFACT_NAME` | ✅ | Must match the service name in your observability stack | > | `EWAKE_REPOSITORY` | ✅ | The repository as `owner/name` | > | `EWAKE_REPOSITORY_URL` | ✅ | The full repository URL, e.g. `https://github.com/my-org/my-service` | > | `EWAKE_COMMIT_SHA` | — | The commit variable of your CI system. Without it, the script uses `git rev-parse HEAD`, which needs a checkout | > | `EWAKE_API_URL` | — | Self-hosted ewake only: the address of your instance. It must start with `https://`. Defaults to `https://api.ewake.ai` | > > The script sends the five required fields and `source: ci`. To send `version`, `url`, `message` or `labels`, send [the request](#the-request) yourself. > > The script always exits with code 0. If `EWAKE_API_KEY` is not set or the request fails, it prints a message and your deploy continues. > [!WARNING] > > Report the deployment **after** the deploy succeeds, not before. An event sent from a pipeline that later fails will make ewake correlate incidents against a release that never reached production. *** ## Verify the connection Send a one-off event from your terminal before wiring up the pipeline. All five required fields have to be there, so this is a complete event rather than a bare ping: ```bash theme={null} curl -i -X POST https://api.ewake.ai/api/v1/events/deployment \ -H "Authorization: Bearer $EWAKE_API_KEY" \ -H "Content-Type: application/json" \ -d "{ \"timestamp\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"repository\": \"my-org/my-service\", \"repositoryUrl\": \"https://github.com/my-org/my-service\", \"artifactName\": \"my-service\", \"commitSha\": \"$(git rev-parse HEAD)\", \"message\": \"Connectivity test\", \"source\": \"manual\" }" ``` > [!TIP] > > A `202 Accepted` means the key is valid and the event was accepted. Ewake stores it right after it answers. If your dashboard has the **Releases** page, the deployment then shows up there against `my-service`. *** ## Troubleshooting | Error | Cause | | - | - | | `401 Unauthorized` | Invalid or missing API key, or the secret is not exposed to the pipeline step | | `400 Bad Request` | A required field is missing or malformed. The response names the field, most often `repositoryUrl` (it must be a full URL, not `owner/name`), `commitSha` (7–40 characters), or `timestamp` (must be ISO 8601) | | Empty or truncated fields | Shell quoting, run the command locally with `echo` first to check the JSON your pipeline actually builds | | Event accepted but no correlation | `artifactName` doesn't match the service name in your observability stack | | Timeout | Check proxy or firewall settings for outbound HTTPS from your runners | > [!NOTE] > > Self-hosted runners on a private network need outbound HTTPS to `api.ewake.ai` (or to your self-hosted ewake instance). This is the most common cause of events never arriving. *** > [card] [Connect GitHub →](/integrations/code/github) > > Let ewake read pull requests and diffs alongside your deployment events. > [card] [Connect GitLab →](/integrations/code/gitlab) > > Let ewake read merge requests and diffs alongside your deployment events. # Argo CD integration Source: https://docs.ewake.ai/integrations/infrastructure/argocd Connect Argo CD so ewake can read application sync status, health and deployed revisions, and correlate incidents with your GitOps deployments. > [!NOTE] > > **What you'll get:** ewake can read your Argo CD applications — their sync status, health, and the revision each one has deployed — so it can tell whether a recent rollout lines up with an incident and surface applications that are out of sync or degraded. Access is **read-only**. *** ## Prerequisites * An Argo CD instance reachable from ewake — the API server URL, e.g. `https://argocd.yourcompany.com` * Admin access to create a **local account** and bind it to a read-only role > [!NOTE] > > ewake authenticates with an Argo CD **API token** scoped to a read-only account. It only ever reads — it never syncs, rolls back, or edits any application or Argo CD configuration. *** ## Configuration **1. Create a read-only local account** In your Argo CD `argocd-cm` ConfigMap, add a local account with the `apiKey` capability: ```yaml theme={null} # argocd-cm ConfigMap data: accounts.ewake: apiKey ``` Then bind it to Argo CD's built-in **read-only** role in the `argocd-rbac-cm` ConfigMap: ```yaml theme={null} # argocd-rbac-cm ConfigMap data: policy.csv: | g, ewake, role:readonly ``` > [!WARNING] > > Use the built-in `role:readonly` (or a policy limited to `get`). Don't grant `sync`, `create`, `update`, `delete`, or `override` — read-only access is what keeps ewake unable to change your deployments. **2. Generate an API token** Generate a token for the account: ```bash theme={null} argocd account generate-token --account ewake ``` Copy the token now — you'll paste it into ewake in the next step. **3. Get your Argo CD server URL** Use the base URL of your Argo CD API server, e.g. `https://argocd.yourcompany.com` — the same host you use for the Argo CD UI or `argocd login`. **4. Open the Argo CD integration in ewake** In your ewake dashboard, go to **Integrations** and click the **Argo CD** tile under **Add more**. **5. Enter your credentials** | Field | Value | | - | - | | **Server URL** | Base URL of your Argo CD API server, e.g. `https://argocd.yourcompany.com` | | **API token** | The read-only token generated in Step 2 | **6. Test and save** Click **Test connection** to verify the connection, then click **Save**. > [!TIP] > > Argo CD is connected. Ewake can now read your application delivery state during investigations. *** > [!NOTE] > > Ewake uses **read-only** Argo CD API calls. It never syncs, rolls back, or modifies any application or Argo CD configuration. # Kubernetes integration Source: https://docs.ewake.ai/integrations/infrastructure/kubernetes Let ewake read pods, events, logs, and deployment state from your cluster, and act on it if you allow — you decide the access, with no inbound ports. > [!NOTE] > > **What you'll get:** during an incident, ewake can inspect your cluster — list > pods, read their status and events, pull (and `--previous`) container logs, and > see deployment state — to root-cause failures like `CrashLoopBackOff`, > `OOMKilled`, `ImagePullBackOff`, and unschedulable pods. **You decide the access**: > keep it read-only for investigation, or expose write tools, such as restarting a > pod, so ewake can act on your behalf. *** ## How it works You run a [Kubernetes MCP server](https://github.com/containers/kubernetes-mcp-server) inside your cluster and expose it over a tunnel of your choice. ewake connects to that endpoint — with whatever headers you specify — and reads pods, events, logs, and deployments on demand. ewake never needs inbound access: the tunnel dials out, so no ports are opened into your cluster. And ewake doesn't ask for any particular access: what it can do is set by the tools your server exposes and the RBAC role it runs under. ```mermaid theme={null} flowchart LR A["ewake agent"] -->|"request headers (your auth)"| B["your tunnel
(Cloudflare, ngrok, …)"] B -->|"outbound — no inbound ports"| C["kubernetes-mcp-server"] C -->|"RBAC role you choose"| D["cluster API server"] ``` *** ## Configuration **1. Run the MCP server in your cluster** Deploy the open-source [`kubernetes-mcp-server`](https://github.com/containers/kubernetes-mcp-server) however you prefer — Helm, plain manifests, or an existing deployment. Then decide what ewake can do: * **Investigate only** — start the server with `--read-only` (optionally `--toolsets core,config`) and bind its ServiceAccount to the built-in `view` ClusterRole, which excludes Secrets and all write verbs. * **Investigate and act** — run the server without `--read-only` and bind its ServiceAccount to a role with only the write verbs you want ewake to use, scoped to the namespaces it should act on, for example restarting pods. > [!WARNING] > > The server's RBAC role is the hard limit on what ewake can do in your > cluster. Grant only what you want ewake to use, and avoid roles that can > read Secrets. **2. Expose it through a tunnel** Put the server behind an **outbound** tunnel so ewake can reach it without any inbound ports — for example [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/), [ngrok](https://ngrok.com/), or any equivalent. Protect the public endpoint with whatever your tunnel offers (a Cloudflare Access service token, an ngrok auth header, etc.). Your endpoint URL is the public tunnel hostname plus the MCP path, e.g. `https://k8s-mcp.yourcompany.com/mcp`. **3. Connect it in ewake** In your dashboard, go to **Integrations** and click the **Kubernetes** tile under **Add more**, then enter: | Field | Value | | - | - | | **Cluster name** | A label to tell your clusters apart, e.g. `prod` (see [Connect more than one cluster](#connect-more-than-one-cluster)) | | **MCP Server URL** | Your tunnel URL, e.g. `https://k8s-mcp.yourcompany.com/mcp`. It must use `https://`. | | **Request headers** | Whatever your endpoint requires (see below). Values are stored encrypted. | Headers depend on how you protected the endpoint: * **Cloudflare Access service token** → two headers: `CF-Access-Client-Id` and `CF-Access-Client-Secret`. * **Bearer / ngrok** → e.g. `Authorization: Bearer `. * **No auth** → leave it empty. ![Connect to Kubernetes modal in ewake](https://mintcdn.com/ewakeai/AOgKYQT1rTMrK_ZB/images/integrations/infrastructure/kubernetes/connect-modal.png?fit=max\&auto=format\&n=AOgKYQT1rTMrK_ZB\&q=85\&s=e9a7712e1d17cec652470470ea7fdd27) **4. Test and save** Click **Test connection** — ewake connects through the tunnel and checks that the server exposes tools, to confirm the URL and headers work. Then click **Save**. > [!TIP] > > Kubernetes is connected. ewake can now read pods, events, logs, and > deployment state during incidents, and use any write tools you exposed. *** ## Connect more than one cluster Kubernetes is a **multi-instance** integration: connect as many clusters as you need, one at a time. Give each cluster a **Cluster name** that tells them apart in the dashboard, for example `prod`, `staging-eu`. Letters, digits, `-` or `_`, starting with a letter or digit, max 64 characters. Each cluster keeps its own MCP server URL and request headers. Disconnecting one leaves the others untouched. Click **Configure** on the **Kubernetes** card: the panel lists your **Connected clusters**, where you can remove one on its own, and the **Add clusters** form below connects another. To see what ewake can call in a cluster, click its **Tools** button (the eye icon). Ewake can call every tool the server exposes, and the list marks each tool that **may write**. To remove a tool, change the server's configuration, for example run it with `--read-only`. *** ## What ewake can and can't do > [card] Investigate > > List and describe pods, deployments, nodes, and events; read current and > previous container logs; inspect non-secret config. > [card] Act, if you allow it > > Restart pods, or take other actions, using only the write tools and RBAC > verbs you grant the server. > [card] Never > > Use access the server's role doesn't grant. Open any inbound port into your > cluster. > [!NOTE] > > ewake observes your cluster **on demand** during an investigation — it does not > continuously watch or store cluster state. # LaunchDarkly integration Source: https://docs.ewake.ai/integrations/infrastructure/launchdarkly Connect LaunchDarkly so ewake can read your feature flags and their change history per environment, and correlate incidents with flag changes. > [!NOTE] > > **What you'll get:** ewake can read your LaunchDarkly feature flags — the state of each flag in each environment, and the change history of each flag — so it can tell whether a flag change near the start of an incident lines up with it. Access is **read-only**. *** ## Prerequisites * A LaunchDarkly account on LaunchDarkly's commercial instance. LaunchDarkly's **EU** and **federal** instances don't offer the hosted MCP server ewake connects to. * A LaunchDarkly login whose access covers the projects ewake should read. Ewake reads flags with the permissions of the account you sign in with. > [!NOTE] > > Ewake connects to LaunchDarkly's hosted MCP server, `https://mcp.launchdarkly.com/mcp/launchdarkly`, and signs in with OAuth. There is no token to create or paste. The sign-in asks LaunchDarkly for **read access only**, so ewake can't change a flag. *** ## Configuration Steps **1. Open the LaunchDarkly integration in ewake** In your ewake dashboard, go to **Integrations** and click the **LaunchDarkly** tile under **Add more**. **2. Check the name and description** | Field | Value | | - | - | | **Name** | A label to tell your LaunchDarkly accounts apart. Starts as `launchdarkly`. Letters, digits, `-` or `_`. | | **Description** | Prefilled. Ewake reads it to decide when to consult LaunchDarkly during investigations. | **3. Sign in with LaunchDarkly** **Authentication** is set to **Sign in with OAuth**. Click **Sign in**, then approve the LaunchDarkly consent page with the account ewake should read flags as. **4. Pick the tools and save** Back in the dashboard, ewake lists the tools LaunchDarkly offers under **Choose the tools Ewake can use**. It ticks the tools whose names look read-only. Adjust the selection, then click **Save**. > [!WARNING] > > Ewake can only call the tools you tick here, even if LaunchDarkly adds tools later. > [!TIP] > > LaunchDarkly is connected. Ewake can now read your flags and their changes during investigations. *** ## Manage the connection Click **Configure** on the **LaunchDarkly** card. Each account you connected is listed under **Connected accounts**, with the account that signed in (**Signed in as**). For each one you can: * Change the tools ewake may call with its **Tools** button. * **Sign in again**, for example after the account lost access. * Disconnect it. To connect another LaunchDarkly account, use the **Add accounts** form below the list, with its own **Name**. *** > [!NOTE] > > Ewake uses **read-only** access to LaunchDarkly. It never toggles, edits, or archives a flag, or changes any LaunchDarkly configuration. # Confluence integration Source: https://docs.ewake.ai/integrations/knowledge/confluence Connect Confluence through the Atlassian integration, the same connection as Jira, so ewake can search and read your pages, and write them when you allow it. > [!NOTE] > > **What you'll get:** ewake searches and reads your Confluence pages during an investigation, surfacing the right runbook, architecture doc, or past postmortem without leaving the incident channel. When you allow it, ewake also creates and updates pages, for example to write up a postmortem. *** ## How Confluence connects There is no separate Confluence card. Confluence connects through the **Atlassian** card on the **Integrations** page, the same connection as [Jira](/integrations/project-management/jira). In its form, choose **Confluence** under **Apps**, on its own or with Jira. Ewake reads Confluence over **Atlassian Rovo MCP** only. Connect with one of these: * A **service account**, with an OAuth 2.0 client (recommended) or an API key. Give it the **User** role on Confluence. * A **personal token** with scopes. > [!WARNING] > > A classic Atlassian API token reads Jira only. It can't connect Confluence. *** ## Prerequisites * An Atlassian Cloud site, `https://your-domain.atlassian.net` * For a service account API key or a personal token: an organisation admin turns on **API token authentication for Rovo MCP** (one-time, org-wide) * A credential with these scopes: | Scope | Unlocks | | - | - | | `read:confluence:agent-interface`, `search:confluence:agent-interface` | Searching and reading Confluence pages | | `read:me`, `read:account` | Required: Rovo MCP refuses every read without them | | `write:confluence:agent-interface` | Optional: creating and updating Confluence pages | *** ## Configuration **1. Create the credential** Follow the steps for your way to connect on the [Jira page](/integrations/project-management/jira#configuration), and tick the Confluence scopes above. Add the Jira scopes too if ewake should also read Jira. **2. Choose Confluence in ewake** In your ewake dashboard, go to **Integrations** and click the **Atlassian** tile under **Add more**. Pick your way to connect, then under **Apps** select **Confluence**, and **Jira** if you use it too. Fill in the fields of your way to connect. **3. Test and save** Click **Test connection**. Ewake reads each app you chose, and the result lists **Read Confluence pages**, and **Create and update Confluence pages** when your credential has the write scope. Then click **Save**. > [!TIP] > > Confluence is connected. Ewake can now search and read your pages during investigations. > [!TIP] > > **Jira already connected?** Click **Overview** on the **Atlassian** card, then select the **Confluence** card under **Apps**. Ewake reads Confluence with the stored credential before it turns it on. A classic token can't, so reconnect with a scoped token or a service account. *** ## What ewake can do During an investigation, ewake reads only: * **Search Confluence** to find the relevant runbook, design doc or postmortem. * **Read a page**, to bring its content into the investigation. Ewake **creates** a page or **updates** one only through a [follow-up action](/working-with-ewake/on-call-agent#follow-up-actions) you approve, or when a member or an admin asks for it in Slack. An investigation never writes. This needs the `write:confluence:agent-interface` scope. > [!NOTE] > > Ewake never deletes Confluence content and never changes the owner of a page. It creates pages only, not whiteboards, databases or other content. It never spends Rovo credits. *** > [card] [Set up the Atlassian connection →](/integrations/project-management/jira) > > The three ways to connect, the scopes, and what ewake does in Jira. > [card] [Write runbooks as Skills →](/working-with-ewake/skills) > > Give ewake runbook guidance directly, in the dashboard. # Notion integration Source: https://docs.ewake.ai/integrations/knowledge/notion Connect Notion in one click to let ewake search your runbooks and internal docs — with AI search over their full content offered in the same flow. > [!NOTE] > > **What you'll get:** ewake can search and read the Notion pages you share with it during an investigation, surfacing runbooks, architecture notes, and incident retrospectives from your team's workspace, without anyone pasting context by hand. The same one-click connection also offers **AI search**, which searches the full **content** of your pages by meaning — not just their titles. *** ## Prerequisites * A Notion workspace, with permission to authorize an integration * The pages and databases you want ewake to reach, ready to share during authorization * For AI search: a Notion workspace with Notion AI available *** ## Configuration Connecting Notion is a **one-click OAuth authorization**, with no token to copy or paste. It's a single procedure with two Notion consent screens back to back: the first grants read access to your pages, the second turns on AI search. > [!NOTE] > > On a deployment without the one-click option, such as a self-hosted one, you connect with an access token instead. See [Connect with an access token](#connect-with-an-access-token). **1. Click Notion** In your ewake dashboard, go to **Integrations** and click the **Notion** tile under **Add more**. **2. Authorize page access** You'll be redirected to Notion. Select the workspace to connect, then choose the pages ewake may access, and click **Allow access**. This first authorization is the connection ewake reads your pages through. ![Choosing which Notion pages ewake can access](https://mintcdn.com/ewakeai/2KxScX8pOkfCQvaA/images/integrations/knowledge/notion/page-choice.png?fit=max\&auto=format\&n=2KxScX8pOkfCQvaA\&q=85\&s=b00070e0b6deb952c102caf17387fb7d) > [!NOTE] > > A Notion integration can only see the pages and databases it has been given access to. Grant your top-level runbook pages, engineering wikis, and incident retrospective databases for the broadest coverage. **3. Turn on AI search (recommended)** Right after the first screen, Notion shows a **second consent** — for its hosted MCP server, which powers AI search. Approve it to let ewake search the full **content** of your pages by meaning, not just their titles. > [!WARNING] > > AI search grants a **wider scope** than the page access above: it reads every page the connecting Notion account can open — not only the pages you shared — and it uses your workspace's **Notion AI quota**. Authorize with an account whose access matches what you want ewake to reach. You can **decline** this second screen — page access is already saved, so you land on a connected dashboard with no error. Turn AI search on later whenever you like (next step). > [!TIP] > > Notion is connected. Ewake can now search and read your pages during investigations — semantically, once AI search is on. **4. Manage AI search or share more pages (optional)** Click **Overview** on the **Notion** card. In the **MCP search** row you can **Connect** AI search if you declined it, **Reconnect** it if it needs attention, or **Disconnect** it while keeping page access. While AI search is off, the card shows **MCP search off**. To let ewake reach a page you didn't grant during authorization, open the page in Notion → click **•••** (top right) → **Connections** → select **ewake**. Any page shared this way is searchable on the next investigation, no reconnection needed. ### Connect with an access token Where the one-click option isn't available, the **Notion** tile opens a form that asks for a **Workspace access token**. **1. Create a Notion connection** In Notion, create an internal integration at [notion.so/profile/integrations](https://www.notion.so/profile/integrations), with the **Access token** authentication method. Give it the **Read content** capability, and **Insert content** if ewake should create pages. Copy the token it issues. > [!WARNING] > > Use the workspace access token of the connection. A personal access token is refused. **2. Share your pages** Open each page ewake should read → **•••** → **Connections** → **+ Add connection**, and select your connection. **3. Connect in ewake** Paste the token in **Workspace access token**, click **Test connection**, then **Save**. *** ## Turn your runbooks into skills Point ewake at the Notion page that holds your runbooks, and it turns them into [skills](/working-with-ewake/skills). **1. Share the page** Share the runbooks page with the ewake connection in Notion. **2. Set it in ewake** Click **Overview** on the **Notion** card. Under **Runbooks**, paste the page in **Notion page link**, then click **Save**. Ewake reads the pages under it, up to 3 levels deep and 100 pages, and writes a skill from each page that is a runbook. Discovery runs right after you save, then once a day. Use **Change** to point at another page, or **Remove** to stop. The skills already made stay. *** ## What ewake can do Once connected, ewake reads from Notion on demand during an investigation: * **Search** across the pages and databases shared with it, to find the relevant runbook or note. * **Read a page**, returning its title, link, and body as plain text so the agent can quote the runbook step or retro that explains what's happening. With **AI search** on, ewake additionally: * **Searches page content semantically** — matching on meaning across the full body of your pages and connected sources, not just their titles. Ewake **creates a page** under a parent page you name only when a member or an admin asks for it in Slack, or through a [follow-up action](/working-with-ewake/on-call-agent#follow-up-actions) you approve. An investigation never writes. The parent page must be shared with the ewake connection. *** > [!NOTE] > > Ewake never edits or deletes Notion pages, and never adds rows to a Notion database. The only Notion write it makes is creating a page, as above. # ClickHouse integration Source: https://docs.ewake.ai/integrations/observability/clickhouse Connect ClickHouse to give ewake access to your distributed traces for latency analysis and root cause investigation. > [!NOTE] > > **What you'll get:** ewake can query the traces you store in ClickHouse with SQL, discover your schema automatically, and correlate latency or errors with alerts and deployments, without requiring manual query construction. *** ## Two ways to connect The ClickHouse form offers two ways. | Way | When to use it | | - | - | | **Through Grafana** | Your ClickHouse is already a datasource in Grafana. Ewake reads it with the user that datasource has, and you select the datasources like any other [Grafana datasource](/integrations/observability/grafana-datasources#clickhouse). | | **Directly** | Your ClickHouse is not in a Grafana. Ewake reads it over the ClickHouse HTTP interface, with a dedicated user. The rest of this page covers this way. | *** ## Prerequisites * A ClickHouse deployment (ClickHouse Cloud or self-hosted) holding your trace data * The **HTTP interface** reachable from ewake (port `8443` for HTTPS, `8123` for plain HTTP) * Access to run `CREATE USER` and `GRANT` — an admin user, or the SQL console on ClickHouse Cloud > [!NOTE] > > ewake never assumes a fixed schema during an investigation. It reads `system.tables` and `system.columns` to discover your trace tables and their column types, then writes SQL against what it actually finds, so a homegrown schema works without any naming convention. > [!NOTE] > > **Service map.** ewake also builds your services and the calls between them from your traces, about once a day. For this, it recognizes the table layout of the OpenTelemetry Collector ClickHouse exporter (`otel_traces`, as used by ClickStack) and of SigNoz. It finds the table by its columns, not by its name. *** ## Configuration **1. Create a dedicated read-only user** Create a user for ewake in SQL and grant it `SELECT` on your trace tables plus `system.tables` and `system.columns` — and nothing else. ```sql theme={null} -- A dedicated user for ewake, read-only. CREATE USER ewake IDENTIFIED WITH sha256_password BY '' SETTINGS readonly = 1, max_execution_time = 30 MAX 30 CHANGEABLE_IN_READONLY, max_result_rows = 1000 MAX 1000 CHANGEABLE_IN_READONLY, max_bytes_to_read = 10000000000 MAX 10000000000 CHANGEABLE_IN_READONLY, max_memory_usage = 2000000000 MAX 2000000000 CHANGEABLE_IN_READONLY, result_overflow_mode = 'break' CHANGEABLE_IN_READONLY, join_algorithm = 'grace_hash' CHANGEABLE_IN_READONLY, max_bytes_in_join = 500000000 MAX 500000000 CHANGEABLE_IN_READONLY, read_overflow_mode = 'throw' CHANGEABLE_IN_READONLY; -- SELECT on your trace tables, and on the two system tables ewake reads to discover your schema. GRANT SELECT ON . TO ewake; GRANT SELECT ON system.tables TO ewake; GRANT SELECT ON system.columns TO ewake; ``` > [!NOTE] > > **Why the grants, not just `readonly`.** The `SELECT` grants are the real boundary: they let ewake read your schema and traces while blocking the table functions (`url`, `remote`, `file`, `mysql`, `postgresql`) and `system.query_log` that a broad user could use to reach out of the database. `readonly = 2` does **not** restrict those, so ewake relies on the grants instead. Grant each trace table by name rather than a whole database. > [!NOTE] > > **Why `readonly = 1` with `CHANGEABLE_IN_READONLY`.** ewake sends bounded caps on every query as URL settings. The queries that build your service map also send two join settings, and their last fallback sends `read_overflow_mode = 'break'` to sample a very large span table. `readonly = 1` rejects *any* setting change, so those eight are re-allowed as bounded, session-settable values via `CHANGEABLE_IN_READONLY` — every other setting stays forbidden. Keep each `MAX` at or above the value ewake sends: a `MAX` below it makes ClickHouse reject the query outright. This SQL setup works on both self-hosted ClickHouse and ClickHouse Cloud, which has no server config files. > [!WARNING] > > **Created the `ewake` user from an earlier version of this page?** Its settings may not include `join_algorithm`, `max_bytes_in_join` and `read_overflow_mode`. Run this to replace its settings with the full list. The password and grants do not change. > > ```sql theme={null} > ALTER USER ewake > SETTINGS readonly = 1, > max_execution_time = 30 MAX 30 CHANGEABLE_IN_READONLY, > max_result_rows = 1000 MAX 1000 CHANGEABLE_IN_READONLY, > max_bytes_to_read = 10000000000 MAX 10000000000 CHANGEABLE_IN_READONLY, > max_memory_usage = 2000000000 MAX 2000000000 CHANGEABLE_IN_READONLY, > result_overflow_mode = 'break' CHANGEABLE_IN_READONLY, > join_algorithm = 'grace_hash' CHANGEABLE_IN_READONLY, > max_bytes_in_join = 500000000 MAX 500000000 CHANGEABLE_IN_READONLY, > read_overflow_mode = 'throw' CHANGEABLE_IN_READONLY; > ``` **2. Get your HTTP endpoint** **ClickHouse Cloud:** find the HTTPS endpoint in your service under **Connect** — it looks like `https://..clickhouse.cloud:8443`. **Self-hosted:** use the base URL of the HTTP interface (e.g. `https://clickhouse.yourcompany.com:8443`, or `http://…:8123` without TLS). **3. Open the ClickHouse integration in ewake** In your ewake dashboard, go to **Integrations** and click the **ClickHouse** tile under **Add more**. At the top of the form, pick **Directly**. **4. Enter your credentials** | Field | Value | | - | - | | **ClickHouse HTTP URL** | The HTTP endpoint from Step 2 | | **Database** | The database holding your trace data (e.g. `otel`) | | **Username** | The read-only user created in Step 1 (e.g. `ewake`) | | **Password** | The password for that user — stored encrypted | > [!NOTE] > > If your ClickHouse sits behind an authenticating proxy (e.g. Cloudflare Access), add its service-token headers under **Custom headers** — ewake sends them with every request. **5. Choose where links open (optional)** Each query and trace in an investigation comes with a link. By default, it opens ClickHouse Play on the **ClickHouse HTTP URL**. If your team cannot open that URL, for example a private VPC endpoint, expand **Where links open (optional)** and give the Grafana where your team reads ClickHouse: | Field | Value | | - | - | | **Grafana link to ClickHouse** | Paste the address of your ClickHouse datasource page in Grafana (**Connections** → **Data sources**), or of an Explore page that queries it. Ewake fills the three fields below from it. | | **Grafana URL** | The address of your Grafana | | **Grafana datasource UID** | The UID of the ClickHouse datasource in that Grafana. Its default database must be the **Database** above. | | **Grafana organization ID** | Set it when your Grafana has more than one organization | A trace also opens in Grafana's trace view when your spans are in an OpenTelemetry exporter table. To change this later, go to **Integrations** → **ClickHouse** → **Configure** and click **Replace credentials** on the server. Edit **Where links open**, and leave **Username** and **Password** empty to keep the stored ones. **6. Test and save** Click **Test connection** to verify the connection, then click **Save**. The test checks that the credentials are accepted and that the user can list its granted tables. With a Grafana for links, it also says whether traces open in Grafana's trace view. > [!TIP] > > ClickHouse is connected. Ewake can now query your traces during investigations. *** ## Behind Cloudflare Access or a proxy If your ClickHouse endpoint sits behind an authenticating proxy, add the credentials it expects under **Custom headers** in the same dialog. For a Cloudflare Access service token that means two headers: | Header | Value | | - | - | | `CF-Access-Client-Id` | The service token's client ID | | `CF-Access-Client-Secret` | The service token's client secret | Ewake sends these with every request. Values are stored encrypted, and are not shown again after saving, leaving the fields empty when you edit the connection keeps the headers you already saved. > [!NOTE] > > Without this, a connection test against a proxied endpoint fails with an authentication or redirect error even though the URL and API key are both correct. It's the most common cause of a test failing on a working instance. *** > [!NOTE] > > ewake queries ClickHouse in **read-only** mode over the HTTP interface. It never writes rows or modifies your ClickHouse configuration, and it caps every query's runtime, row count and bytes read. # CloudWatch integration Source: https://docs.ewake.ai/integrations/observability/cloudwatch Connect Amazon CloudWatch to give ewake read-only access to your AWS logs, metrics, and alarms via a secure cross-account IAM role. > [!NOTE] > > **What you'll get:** ewake can query your CloudWatch logs, metrics, and alarms to investigate AWS workload issues, correlating log events with alerts and deployments without requiring you to switch between dashboards. *** ## Prerequisites * An AWS account with CloudWatch logs, metrics, or alarms * IAM permissions to create a role and policy in that account * The AWS regions your CloudWatch data lives in *** ## How it works The integration uses **cross-account IAM role assumption** with an External ID, the standard AWS pattern for granting a third party read access without sharing credentials. You create a read-only role in your account, and ewake assumes it on demand for one-hour sessions. **ewake never receives long-lived access keys**, and the role grants only the read-only actions shown below. > [!NOTE] > > **Running ewake in your own AWS account?** Two things differ. Read [Self-hosted deployments](#self-hosted-deployments) at the bottom of this page before you start — the trust policy below names ewake's account, and yours should not. *** ## Configuration **1. Get your External ID** The External ID is a shared secret you will use in both the IAM role and the ewake connection screen. In your ewake dashboard, go to **Integrations** and click the **AWS CloudWatch** tile under **Add more**. The **External ID** field of the form comes filled with a random value. Copy it, and keep the panel open for Step 3. You can also generate your own and type it in that field instead: * macOS / Linux: `openssl rand -hex 16` or `uuidgen` * Online: [uuidgenerator.net](https://www.uuidgenerator.net/) > [!NOTE] > > Keep this value secret. It ties ewake's role-assumption calls to your role, preventing the "confused deputy" security issue. **2. Create the read-only IAM role** Create an IAM role that ewake's AWS account (`058264427976`) can assume with your External ID. The role name **must** start with `EwakeCloudWatchReadOnly`, ewake's task role is only permitted to assume roles named this way. > [!WARNING] > > If the role name does not start with `EwakeCloudWatchReadOnly`, ewake cannot assume it. **Option A, CloudFormation (recommended)** Creates the correctly named role, trust policy, and permissions in one step. Save this template as `ewake-cloudwatch-readonly.yaml`: ```yaml theme={null} AWSTemplateFormatVersion: '2010-09-09' Description: >- Read-only IAM role that lets ewake's AI SRE query this account's Amazon CloudWatch metrics, logs, and alarms via cross-account AssumeRole. Parameters: EwakeAccountId: Type: String Default: '058264427976' Description: ewake's AWS account ID (the principal allowed to assume this role). Leave as default unless ewake tells you otherwise. AllowedPattern: '^[0-9]{12}$' ExternalId: Type: String Description: Shared secret from Step 1. Use the exact value you enter in the ewake CloudWatch integration screen. MinLength: 8 RoleName: Type: String Default: EwakeCloudWatchReadOnly Description: Keep the EwakeCloudWatchReadOnly prefix; ewake's task role is only permitted to assume roles named this way. AllowedPattern: '^EwakeCloudWatchReadOnly.*$' Resources: EwakeCloudWatchReadOnlyRole: Type: AWS::IAM::Role Properties: RoleName: !Ref RoleName MaxSessionDuration: 3600 AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: AWS: !Sub 'arn:aws:iam::${EwakeAccountId}:root' Action: 'sts:AssumeRole' Condition: StringEquals: 'sts:ExternalId': !Ref ExternalId Policies: - PolicyName: EwakeCloudWatchReadOnly PolicyDocument: Version: '2012-10-17' Statement: - Sid: CloudWatchRead Effect: Allow Resource: '*' Action: - 'cloudwatch:DescribeAlarms' - 'cloudwatch:DescribeAlarmHistory' - 'cloudwatch:GetMetricData' - 'cloudwatch:ListMetrics' - 'logs:DescribeLogGroups' - 'logs:DescribeQueryDefinitions' - 'logs:ListLogAnomalyDetectors' - 'logs:ListAnomalies' - 'logs:StartQuery' - 'logs:GetQueryResults' - 'logs:StopQuery' Outputs: RoleArn: Description: Paste this into the ewake CloudWatch integration as "Role ARN". Value: !GetAtt EwakeCloudWatchReadOnlyRole.Arn ``` Deploy it, replacing the External ID with the one from Step 1: ```bash theme={null} aws cloudformation deploy \ --template-file ewake-cloudwatch-readonly.yaml \ --stack-name ewake-cloudwatch-readonly \ --capabilities CAPABILITY_NAMED_IAM \ --parameter-overrides ExternalId="YOUR-UNIQUE-EXTERNAL-ID" ``` Read the Role ARN from the stack output, that is what you paste into ewake: ```bash theme={null} aws cloudformation describe-stacks \ --stack-name ewake-cloudwatch-readonly \ --query "Stacks[0].Outputs[?OutputKey=='RoleArn'].OutputValue" --output text ``` Prefer the console? Go to **CloudFormation → Create stack → upload a template file**, upload the same YAML, set **ExternalId**, and read `RoleArn` from the stack **Outputs** tab. **Option B, Manual (IAM console)** In the [AWS IAM Console](https://console.aws.amazon.com/iam/), go to **Roles → Create role → Custom trust policy** and paste the following, replacing `YOUR-UNIQUE-EXTERNAL-ID` with the ID from Step 1: ```json theme={null} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::058264427976:root" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "YOUR-UNIQUE-EXTERNAL-ID" } } } ] } ``` On the next screen, create and attach this read-only permissions policy: ```json theme={null} { "Version": "2012-10-17", "Statement": [ { "Sid": "CloudWatchRead", "Effect": "Allow", "Resource": "*", "Action": [ "cloudwatch:DescribeAlarms", "cloudwatch:DescribeAlarmHistory", "cloudwatch:GetMetricData", "cloudwatch:ListMetrics", "logs:DescribeLogGroups", "logs:DescribeQueryDefinitions", "logs:ListLogAnomalyDetectors", "logs:ListAnomalies", "logs:StartQuery", "logs:GetQueryResults", "logs:StopQuery" ] } ] } ``` Name the role starting with `EwakeCloudWatchReadOnly`, create it, then copy the **Role ARN** from the summary page. It looks like `arn:aws:iam::123456789012:role/EwakeCloudWatchReadOnly`. **3. Connect in ewake** Back in the **AWS CloudWatch** panel of your ewake dashboard (**Integrations** → **Add more** → **AWS CloudWatch**), fill in the form. ![Connect to CloudWatch modal in ewake](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/integrations/observability/cloudwatch/connect-modal.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=fab9e2d1f086a3d8548b9efbfb1b921c) | Field | Value | | - | - | | **IAM Role ARN** | The role ARN from Step 2 | | **External ID** | The ID from Step 1, the same value as in the trust policy of the role | | **AWS Region** | The region where your CloudWatch data lives. To add more regions, see [Connect more than one region](#connect-more-than-one-region). | Click **Test connection** to verify, then **Save**. > [!TIP] > > CloudWatch is connected. Ewake can now query your AWS logs, metrics, and alarms. > [!NOTE] > > PromQL and Application Signals tools require additional permissions and are out of scope for now. *** ## Connect more than one region Each connection reads one AWS region, and ewake sees only the regions that you connect. Add a connection for each region that your workloads send logs, metrics, or alarms to. **1. Open the CloudWatch integration** In your ewake dashboard, go to **Integrations → AWS CloudWatch → Configure**. The regions that you already connected are listed under **Connected regions**. **2. Add the region** Under **Add regions**, enter the same **IAM Role ARN** and **External ID** as before, and select the new **AWS Region**. IAM roles are global, so the role from Step 2 works in every region. Click **Test connection**, then **Add regions**. > [!TIP] > > The new region appears under **Connected regions**. ewake can query it within a few minutes, with no redeployment. During an investigation, ewake queries each connected region separately. > [!NOTE] > > You can connect each region once. To change the role or External ID of a region, disconnect that region and connect it again. Different regions can use different roles, also roles in different AWS accounts, but each region reads from one account. > > If the test fails with an access error in one region while other regions work, check whether a service control policy (SCP) in your AWS organization denies that region. > [!TIP] > > **Lambda\@Edge logs are spread across regions.** A Lambda\@Edge function writes its logs to the region that ran each request, in a log group named `/aws/lambda/us-east-1.`. Connect each region where that log group exists, not only `us-east-1`. *** ## Self-hosted deployments Everything above applies, with two differences. ### Turn the sidecar on, after connecting CloudWatch is read through a sidecar container that runs alongside the dashboard. On the hosted service it is always there. In your own account it is off by default, because it runs permanently whether or not you read CloudWatch. Finish Steps 1 to 3 above first — create the role, and connect the integration in the dashboard. **Then** enable the sidecar in `terraform.tfvars` and apply: ```hcl theme={null} company = { # ... features = { cloudwatchMcpSidecar = true } } ``` > [!WARNING] > > **The order matters.** The sidecar asks the dashboard which roles to assume when it > starts, and gives up if the answer is that none are connected. Enabled first, it > stops within a second and is not restarted — and connecting an integration > afterwards does not bring it back. > > Nothing else breaks if you get this wrong: the container is not essential, so the > dashboard and the rest of the task are unaffected. Connect the integration, then > force a new deployment of the reactive service: > > ```bash theme={null} > aws ecs update-service \ > --cluster --service \ > --force-new-deployment > ``` ### Trust your own deployment, not ewake's account The trust policy in Step 2 names ewake's AWS account, because on the hosted service that is what assumes the role. Your deployment assumes it with **its own task role**, so that is the principal to trust: ```json theme={null} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam:::role/--task" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "YOUR-UNIQUE-EXTERNAL-ID" } } } ] } ``` `tenant_name` and `company.name` are the values in your `terraform.tfvars`. Using the CloudFormation template instead? Pass that same role ARN as `EwakeAccountId`. Everything else is unchanged: the role name must still start with `EwakeCloudWatchReadOnly`, the External ID is still yours to generate, and the read-only permissions policy is the same. > [!NOTE] > > The role does not have to live in the account the deployment runs in. This is still > cross-account role assumption; it just happens to be the same account when the logs > you want are the ones next to the deployment. *** If you hit an issue, contact [support@ewake.ai](/support) with your AWS Account ID, Role ARN, and the exact error message. # Datadog integration Source: https://docs.ewake.ai/integrations/observability/datadog Connect Datadog to give ewake access to your metrics, logs, traces, and monitors. > [!NOTE] > > **What you'll get:** ewake can query your Datadog metrics, logs, traces, APM data, and monitors in real time. This is the primary data source for alert investigation and root cause analysis. *** ## Prerequisites * A Datadog account with **admin or org-level access** to create API and Application keys * Access to your ewake dashboard *** ## Configuration **1. Log in to Datadog** Navigate to your Datadog instance, for example: * **US1:** [app.datadoghq.com](https://app.datadoghq.com) * **EU1:** [app.datadoghq.eu](https://app.datadoghq.eu) > [!NOTE] > > Ewake supports the Datadog sites US1, US3, US5, EU1, AP1, AP2 and US1-FED. Each site is a separate account, so note which site yours is on: using the wrong site will cause authentication errors at the connection step. **2. Open Organization Settings** Hover over your name in the **bottom left** → click **Organization Settings**. **3. Create an API Key** Go to **API Keys** → click **New Key**. Name it `ewake` and copy the key immediately. > [!NOTE] > > Copy the key now, you won't be able to see it again after closing the modal. **4. Create an Application Key** Go to **Application Keys** → click **New Key**. Name it `ewake`. Grant it the following read-only scopes: | Scope | Why | | - | - | | `apm_read` | Access APM spans and the service dependency map | | `dashboards_read` | Surface relevant dashboards during investigation | | `logs_read_data` | Read log lines as investigation evidence | | `metrics_read` | Read time-series metrics and metric metadata | | `monitors_read` | Understand what triggered an alert | | `timeseries_query` | Query metric values. Without it, every metric query fails, even with `metrics_read` | | `events_read` | Read deploys and other change events around an alert | | `slos_read` | Read the SLO behind an SLO alert | | `mcp_read` | Use the Datadog MCP server for database monitoring, RUM, error tracking and extra queries | | `dbm_read` | Read Database Monitoring query samples through the Datadog MCP server | | `error_tracking_read` | Read Error Tracking issues through the Datadog MCP server | ``` apm_read,dashboards_read,logs_read_data,metrics_read,monitors_read,timeseries_query,events_read,slos_read,mcp_read,dbm_read,error_tracking_read ``` > [!WARNING] > > `mcp_read` is also a role permission. The user who owns the key needs a role with **MCP Read**. The Datadog Standard role has it. A custom role needs it added in **Organization Settings** → **Roles**. > [!NOTE] > > These read scopes are everything ewake reads. Don't add `debugger_read`, `llm_observability_read`, `logs_read_archives`, `logs_read_index_data`, `apm_api_catalog_read`, `apm_pipelines_read` or `apm_service_ingest_read`. No ewake code path uses them, so they widen your exposure for nothing. > [!NOTE] > > **Optional: `monitors_write`.** Add it only if you want ewake to tune a Datadog monitor when you ask for it, for example with the **🔕 Tune the monitor** button on an ewake reply. Ewake then changes the monitor's query, thresholds, evaluation delay, no-data timeframe or renotify interval, and never its name, message, notification targets or tags. Without this scope ewake stays read-only and investigates as usual. Copy the Application key. **5. Open the Datadog integration in ewake** In your ewake dashboard, go to **Integrations** and click the **Datadog** tile under **Add more**. The connect panel opens. ![Connect to Datadog modal in ewake](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/integrations/observability/datadog/connect-modal.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=74af39918330414a49b9881512df82ba) **6. Paste your credentials** | Field | Value | | - | - | | **Base URL** | The API URL of your Datadog site. Pick it from the list (US1, US3, US5, EU1, AP1, AP2, US1-FED), or type it, for example `https://api.datadoghq.com` (US1). The field is pre-filled with the EU1 endpoint, `https://api.datadoghq.eu`. | | **API Key** | The key created in Step 3 | | **Application Key** | The key created in Step 4 | **7. Test and save** Click **Test connection**. Ewake probes `monitors_read`, `logs_read_data`, `metrics_read`, `timeseries_query`, `dashboards_read`, `apm_read`, `events_read`, `mcp_read`, `dbm_read` and `monitors_write` and reports each as granted or missing, so you can fix the key before saving. Then click **Save**. A missing `apm_read`, `events_read`, `mcp_read`, `dbm_read` or `monitors_write` does not block **Save**: ewake connects and works without that data. Any other missing scope blocks it. > [!TIP] > > Datadog is connected. Ewake can now access your observability data. *** ## Set up the Datadog webhook The Datadog integration has one webhook, so Datadog monitors can push their alerts straight to ewake. You set it up **once**, and every On-Call flow of Datadog reads it, each by its own conditions. See [On-call agent](/working-with-ewake/on-call-agent) to create the flows. **1. Open the webhook of the integration in ewake** In your ewake dashboard, go to **Integrations** → **Datadog** → **Overview**. Under **Webhook**, click **Set up the webhook**. Ewake makes a token and shows it once, with the steps below and the values to copy. Copy them before you close the panel. **2. Create the webhook in Datadog** In Datadog, go to **Integrations** → **Webhooks** and click **New**. Paste the **Name** and the **URL** that ewake shows, the **Custom headers** under **Custom Headers**, and the **Payload** under **Payload**. Leave **Encode as form** unticked, and save. **3. Notify the webhook from your monitors** Add `@webhook-` to the message of every monitor ewake should answer, with the name from the previous step. > [!NOTE] > > Ewake never shows the token again. **Replace the token** in the same section makes a new one and stops the old one at once. *** > [card] [What does ewake access in Datadog? →](/security/permissions#datadog) # Elasticsearch integration Source: https://docs.ewake.ai/integrations/observability/elasticsearch Connect Elasticsearch to give ewake access to your logs and metrics for incident analysis. > [!NOTE] > > **What you'll get:** ewake can query your Elasticsearch indices to retrieve logs, correlate log patterns with alerts, and surface relevant data during investigations, without requiring manual query construction. *** ## Prerequisites * An Elasticsearch instance (Elastic Cloud or self-hosted) * Admin access to create an API key *** ## Configuration **1. Create an API key in Kibana** In Kibana, go to **Stack Management** → **Security** → **API Keys** → click **Create API key**. Set the key privileges to read-only on the indices ewake should access: ```json theme={null} { "indices": [{ "names": ["*"], "privileges": ["read", "view_index_metadata"] }] } ``` `read` lets ewake search your logs; `view_index_metadata` lets it discover which indices, fields and data streams exist. No cluster or Kibana privileges are needed. Copy the generated API key immediately, it won't be shown again. **2. Open the Elasticsearch integration in ewake** In your ewake dashboard, go to **Integrations** and click the **Elasticsearch** tile under **Add more**. The connect panel opens. ![Connect to Elasticsearch modal in ewake](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/integrations/observability/elasticsearch/connect-modal.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=a65addb6befee27b40393ab5ba32f441) **3. Enter your credentials** | Field | Value | | - | - | | **Cluster name** | A label to tell your clusters apart, for example `eu` or `us`. See [Connect more than one cluster](#connect-more-than-one-cluster). | | **Elasticsearch URL** | The **Elasticsearch** endpoint of your deployment (e.g. `https://my-deployment.es.us-east-1.aws.elastic.cloud`) | | **API Key** | The key created in Step 1 | | **Kibana URL** *(optional)* | Your **Kibana** endpoint (e.g. `https://my-deployment.kb.us-east-1.aws.elastic.cloud`), used only to build deep links to log entries | > [!WARNING] > > Enter the **Elasticsearch** endpoint (`.es.`) here — **not** the Kibana URL (`.kb.`). On Elastic Cloud the two differ only by that one label, so it's easy to paste the wrong one, and the Kibana URL is the most common cause of a failed connection test: ewake reaches Kibana's login page instead of the Elasticsearch API. In the Elastic Cloud console, use **Copy endpoint → Elasticsearch**. The Kibana URL goes in the optional **Kibana URL** field. **4. Test and save** Click **Test connection** to verify the connection, then click **Save**. > [!TIP] > > Elasticsearch is connected. Ewake can now query your logs during investigations. *** ## Behind Cloudflare Access or a proxy If your Elasticsearch cluster sits behind an authenticating proxy, add the credentials it expects under **Custom headers** in the same dialog. For a Cloudflare Access service token that means two headers: | Header | Value | | - | - | | `CF-Access-Client-Id` | The service token's client ID | | `CF-Access-Client-Secret` | The service token's client secret | Ewake sends these with every request. Values are stored encrypted, and are not shown again after saving, leaving the fields empty when you edit the connection keeps the headers you already saved. > [!NOTE] > > Without this, a connection test against a proxied endpoint fails with an authentication or redirect error even though the URL and API key are both correct. It's the most common cause of a test failing on a working instance. *** ## Connect more than one cluster Elasticsearch is a **multi-instance** integration: connect as many clusters as you need, one at a time. Give each cluster a **Cluster name** that tells them apart, for example `eu`, `us`. Letters, digits, `-` or `_`, starting with a letter or digit, max 64 characters. Each cluster keeps its own URL, API key, optional Kibana URL and custom headers. Ewake searches across all connected clusters during an investigation. To add one, go to **Integrations** → **Elasticsearch** → **Configure**. The clusters you already connected are listed under **Connected clusters**, where you can remove one on its own. Fill in the form under **Add clusters**, click **Test connection**, then **Add clusters**. *** > [!NOTE] > > Ewake uses **read-only** access. It never writes to or modifies your Elasticsearch indices. # GCP Cloud Logging integration Source: https://docs.ewake.ai/integrations/observability/gcp-cloud-logging Connect GCP Cloud Logging to let ewake query your application and infrastructure logs for incident investigation. > [!NOTE] > > **What you'll get:** ewake can query your GCP Cloud Logging logs in real time, correlating log entries with alerts, deployments, and infrastructure events across your Google Cloud projects. *** ## Prerequisites * A Google Cloud project with logs flowing into Cloud Logging * **Owner or IAM Admin** access to create a service account and assign roles * Access to your ewake dashboard *** ## Configuration **1. Create a Service Account** In the [GCP Console](https://console.cloud.google.com), go to **IAM & Admin** → **Service Accounts** → click **Create Service Account**. Give it a name (e.g. `ewake-logs`) and click **Create and continue**. **2. Grant the logging.viewer role** In the **Grant this service account access to project** step, assign the role: | Role | Why | | - | - | | `Logs Viewer` (`roles/logging.viewer`) | **Required.** Read-only access to all log entries in the project. | Click **Continue**, then **Done**. > [!NOTE] > > `Logs Viewer` is read-only. Ewake cannot write, delete, or modify any log entries or logging configuration. **3. Generate a JSON key** Open the service account you just created → go to the **Keys** tab → click **Add Key** → **Create new key** → select **JSON** → click **Create**. A `.json` file will be downloaded to your machine. Keep it safe, it contains the credentials ewake will use. > [!NOTE] > > If you lose this key, you can revoke it and generate a new one from the same Keys tab. Never commit the JSON file to source control. **4. Connect in ewake** In your ewake dashboard, go to **Integrations** and click the **GCP Cloud Logging** tile under **Add more**. Fill in the following fields: | Field | Value | | - | - | | **Instance name** | A label to tell your connections apart, for example `prod`. See [Connect more than one project](#connect-more-than-one-project). | | **Service Account JSON Key** | Paste the full contents of the downloaded JSON key file | | **GCP Project ID** | Ewake fills it from the key (e.g. `my-project-123456`). Change it to read another project that the service account can read. | **5. Test and save** Click **Test connection**. Ewake reads one log entry of the project with the key. Then click **Save**. > [!TIP] > > GCP Cloud Logging is connected. Ewake can now query your logs during investigations. *** ## Connect more than one project GCP Cloud Logging is a **multi-instance** integration: connect as many projects as you need, one at a time. Give each connection an **Instance name** that tells them apart, for example `prod`, `staging`. Letters, digits, `-` or `_`, starting with a letter or digit, max 64 characters. Each connection carries its own GCP project ID and service account key, so one service account never needs access across projects. To add one, go to **Integrations** → **GCP Cloud Logging** → **Configure**. The connections you already made are listed under **Connected instances**, where you can remove one on its own. Fill in the form under **Add instances**, click **Test connection**, then **Add instances**. *** > [!NOTE] > > Ewake only requires **read access** to GCP Cloud Logging. It never writes logs, modifies sinks, or changes any IAM policies in your project. # Grafana integration Source: https://docs.ewake.ai/integrations/observability/grafana Connect one or more Grafanas so ewake can read your dashboards and alert rules, and the metrics, logs and traces behind them. > [!NOTE] > > **What you'll get:** ewake searches and reads your dashboards, evaluates their panels over the time of an incident, and learns your alert rules. Through the same Grafana, it also queries the Prometheus, Thanos, VictoriaMetrics, Loki, Tempo, Jaeger and ClickHouse datasources you select. > [!TIP] > > This page lets ewake **read** Grafana. To have ewake investigate your Grafana alerts as they fire, see [Alertmanager & Grafana alerts](/integrations/alerting/alertmanager). *** ## How ewake uses Grafana Grafana shows up in two places on the **Integrations** page of your dashboard. | Card | What ewake reads | | - | - | | **Grafana** | Your dashboards, their panels, and your alert rules. Ewake also queries a datasource that a panel uses. | | **Prometheus**, **Thanos**, **VictoriaMetrics**, **Loki**, **Tempo**, **Jaeger**, **ClickHouse** | The datasources of that kind you select in Grafana, queried through the Grafana datasource proxy. See [Grafana datasources](/integrations/observability/grafana-datasources). | You don't expose any backend to ewake: every request goes through Grafana, with one service account token. Connect the **Grafana** card first, then connect the datasources from it. *** ## Prerequisites * A Grafana instance (Cloud or self-hosted) * Admin access to create a service account *** ## Configuration **1. Create a service account in Grafana** In Grafana, go to **Administration** → **Service Accounts** → click **Add service account**. Set the role to **Viewer**, ewake only needs read access. Once the account is created, click **Add service account token** → copy the token immediately. > [!NOTE] > > Copy the token now, you won't be able to see it again after closing the modal. **2. Open the Grafana integration in ewake** In your ewake dashboard, go to **Integrations** and click the **Grafana** tile under **Add more**. ![Connect to Grafana modal in ewake](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/integrations/observability/grafana/grafana-connect-modal.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=5525dde8e7dfeff37563de9d3366702b) **3. Enter your credentials** | Field | Value | | - | - | | **Grafana URL** | Your Grafana instance URL (e.g. `https://grafana.example.com`, or `https://yourorg.grafana.net` on Grafana Cloud) | | **API Key** | The token generated in Step 1 | **4. Test and save** Click **Test connection** to check what the token can read, then click **Save**. > [!TIP] > > Grafana is connected. Ewake can now read your dashboards and alert rules. *** ## Connect its datasources Once Grafana is connected, its card lists **Sources in this Grafana**: one row for each kind of datasource ewake can read. | Row | Meaning | | - | - | | **Connected · reads** *datasources* | Ewake queries these datasources of this Grafana. **Paused** when the integration is paused. | | **Connect** | Grafana has a datasource of this kind that ewake doesn't read yet. The button opens its form on this Grafana's URL, with **Use the key stored for** this Grafana selected. | | **Not found in this Grafana** | Grafana has no datasource of this kind. | | **Also reads another Grafana** | The integration reads another Grafana. You can connect this one too. | | **Also connected directly, not through Grafana** | ClickHouse is connected directly. You can connect it through this Grafana too. | Then [select the datasources](/integrations/observability/grafana-datasources#select-the-datasources) ewake may query. *** ## Connect several Grafanas Grafana accepts more than one connection. Once one is connected, open the card and use **Add instances** to connect the next, with its own URL, token and headers. * Each instance is named after the host of its URL, for example `grafana-eu.acme.com`. * Ewake names the Grafana it reads in each dashboard search or query, and reads the alert rules of every instance. * Each datasource integration can read several Grafanas too. See [Several Grafanas](/integrations/observability/grafana-datasources#several-grafanas). *** ## Behind Cloudflare Access or a proxy If your Grafana instance sits behind an authenticating proxy, add the credentials it expects under **Custom headers** in the same dialog. The datasource integrations take the same headers. For a Cloudflare Access service token that means two headers: | Header | Value | | - | - | | `CF-Access-Client-Id` | The service token's client ID | | `CF-Access-Client-Secret` | The service token's client secret | Ewake sends these with every request. Values are stored encrypted, and are not shown again after saving, leaving the fields empty when you edit the connection keeps the headers you already saved. > [!NOTE] > > Without this, a connection test against a proxied endpoint fails with an authentication or redirect error even though the URL and API key are both correct. It's the most common cause of a test failing on a working instance. *** > [!NOTE] > > Ewake only requires **read-only** access to Grafana. It never modifies dashboards, alert rules or datasources. # Grafana datasources Source: https://docs.ewake.ai/integrations/observability/grafana-datasources Let ewake query the Prometheus, Thanos, VictoriaMetrics, Loki, Tempo, Jaeger and ClickHouse datasources of your Grafanas. > [!NOTE] > > **What you'll get:** ewake queries your metrics, logs and traces through the datasources already configured in Grafana, during every investigation. You pick which datasources, on one Grafana or several, and you never expose a backend to ewake directly. *** ## Supported datasources Each kind of backend has its own card on the **Integrations** page. A card lists the Grafana datasources of its type and reads the ones you select. | Card | Grafana datasource type | Ewake queries with | | - | - | - | | [Prometheus](#prometheus) | `prometheus` | PromQL | | [Thanos](#thanos) | `prometheus`, pointing at Thanos Query | PromQL | | [VictoriaMetrics](#victoriametrics) | `prometheus`, or the VictoriaMetrics plugin | PromQL | | [Loki](#loki) | `loki` | LogQL | | [Tempo](#tempo) | `tempo` | TraceQL | | [Jaeger](#jaeger) | `jaeger` | Trace search | | [ClickHouse](#clickhouse) | `grafana-clickhouse-datasource` | SQL | Every request goes through the Grafana datasource proxy, with the token you give and the credentials each datasource already holds in Grafana. *** ## Prerequisites * A Grafana instance (Cloud or self-hosted) with the datasources already configured * A Grafana service account token with the **Viewer** role. On Grafana Enterprise or Cloud with datasource permissions, the account also needs the **Query** permission on each datasource. > [!TIP] > > If you already [connected Grafana](/integrations/observability/grafana), you don't need a new token: the form offers **Use the key stored for** that Grafana. *** ## Configuration **1. Open the integration in ewake** In your ewake dashboard, go to **Integrations** and click the tile of the backend (for example **Loki**) under **Add more**. Once it is connected, its card shows **Configure**. Or open the **Grafana** card and click **Connect** next to the backend under **Sources in this Grafana**. The form then starts on that Grafana's URL and its stored key. **2. Enter your Grafana credentials** | Field | Value | | - | - | | **Grafana URL** | Base URL of the Grafana that holds the datasources (e.g. `https://grafana.yourcompany.com`) | | **API Key** | A service account token, created under **Administration** → **Service Accounts** in Grafana. Or pick **Use the key stored for** a connected Grafana. | Behind Cloudflare Access or another authenticating proxy, add its headers under **Custom headers**, as for [Grafana](/integrations/observability/grafana#behind-cloudflare-access-or-a-proxy). **3. Test the connection and select the datasources** Click **Test connection**. Ewake lists the datasources of this type in Grafana. Select the ones it may query, see [Select the datasources](#select-the-datasources). The test then shows, for each selected datasource, what the token can read, with a count and a sample. **4. Save** Click **Save**. > [!TIP] > > The datasources are connected. Ewake names the datasource it queries in each call during an investigation. *** ## Select the datasources * **Select only the datasources of this backend.** Grafana lists Prometheus, Thanos and VictoriaMetrics all with the `prometheus` type, so these three cards list the same datasources. Select each datasource on the card of the backend it really is, so two integrations don't read the same one. * **A datasource the token can't read is not preselected.** Its row in the test says why, for example the missing **Query** permission. * **Change the selection later** from the integration's card. A second connect of the same integration on the same Grafana is refused with *already reads this Grafana. Change its datasources from its card.* * **A deleted datasource** shows up in the health check. Test the connection again and reselect. *** ## Several Grafanas Each datasource integration can read several Grafanas, one instance for each Grafana. Once it's connected, open its card and use **Add instances** to connect it on another Grafana, with that Grafana's own token. A datasource keeps its name from Grafana. When two Grafanas have a datasource with the same name, ewake adds the Grafana to the later one's name, for example `Loki US (grafana-us.acme.com)`. The card lists every instance with the datasources it reads. *** ## Backends ### Prometheus Prometheus, and Prometheus-compatible stores such as Grafana Mimir, through a `prometheus` datasource. Select every datasource ewake may query. ### Thanos Thanos Query, through a `prometheus` datasource. On a first connect, ewake preselects the datasources whose Prometheus type is set to **Thanos** in Grafana. When none is, it preselects those that answer the Thanos stores API, which plain Prometheus and VictoriaMetrics don't. ### VictoriaMetrics VictoriaMetrics, through the VictoriaMetrics datasource plugin, or through a `prometheus` datasource pointing at it. ### Loki Loki logs. The service account needs read access to logs. ### Tempo Tempo traces, searched with TraceQL. ### Jaeger Jaeger traces, through a `jaeger` datasource. ### ClickHouse ClickHouse, through the ClickHouse datasource plugin, with the user each datasource already has. Ewake runs every query read-only. ClickHouse can also connect directly, without Grafana, see [ClickHouse](/integrations/observability/clickhouse). *** ## Troubleshooting | Message | Fix | | - | - | | *No … datasource is configured in Grafana* | Add the datasource in Grafana, or check you entered the URL of the right Grafana, then test again. | | *Grafana rejected the API key* | The token is invalid or expired. Create a new one. | | *Give the service account the Viewer role, or … the Query permission* | Grant the role, or the **Query** permission on that datasource. | | An authentication or redirect error on a working Grafana | Add the headers of your proxy under **Custom headers**. | *** > [!NOTE] > > Ewake only reads. It never writes metrics, logs or traces, and never modifies your datasources or your Grafana configuration. # LangSmith integration Source: https://docs.ewake.ai/integrations/observability/langsmith Connect LangSmith so ewake can read the traces and runs of your LLM applications during investigations. > [!NOTE] > > **What you'll get:** ewake reads the traces, runs, threads, datasets and experiments of your LLM applications in LangSmith, so an investigation can see what an agent did step by step and what the model returned. *** ## How it works The LangSmith card connects LangSmith's remote MCP server. Ewake calls only the LangSmith tools you select, with the permissions of the account you sign in with, or of the API key you give. *** ## Prerequisites * A LangSmith account in the **US** or **EU** region. For a self-hosted LangSmith, use the [Custom MCP](/integrations/custom/custom-mcp) card with the MCP URL of your instance. * A LangSmith account with read access to the workspace, to sign in with, or a LangSmith API key * Access to your ewake dashboard *** ## Configuration **1. Open the LangSmith integration in ewake** In your ewake dashboard, go to **Integrations** and click the **LangSmith** tile under **Add more**. **2. Check the fields** | Field | Value | | - | - | | **Name** | Filled with `langsmith`. A label to tell your LangSmith workspaces apart. Letters, digits, `-` or `_`. | | **Region** | **US** (`api.smith.langchain.com`) or **EU** (`eu.api.smith.langchain.com`), the region of your LangSmith account | | **Description** | Filled for you. Ewake reads it to decide when to consult LangSmith during an investigation. | **3. Sign in to LangSmith** Leave **Authentication** on **Sign in with OAuth** and click **Sign in**. LangSmith's sign-in page opens. LangSmith then acts as the account you sign in with, so sign in with read-only access. Back in ewake, the panel says that you are signed in, and lists the LangSmith tools. > [accordion] Connect with an API key instead > > Set **Authentication** to **No sign-in, or request headers (API key, bearer token)**. Under **Request headers**, add the header `X-Api-Key` with a LangSmith API key. Values are stored encrypted. Then click **Test connection** to list the tools. **4. Choose the tools** Under **Choose the tools Ewake can use**, click **Select read-only** to tick the tools whose names look read-only, then adjust by hand. > [!WARNING] > > Ewake can only call the tools you select here, nothing else LangSmith offers, **even if it adds tools later**. Keep to read-only tools. **5. Save** Click **Save**. > [!TIP] > > LangSmith is connected. Ewake consults it during investigations when the description matches what it's looking for. *** ## Connect more than one workspace LangSmith is a **multi-instance** integration: connect as many workspaces as you need, each with its own name. Go to **Integrations** → **LangSmith** → **Configure**. The workspaces you already connected are listed under **Connected workspaces**, with the account each one signed in as. From there you can edit the tools of one, sign in again, or disconnect it. Add another under **Add workspaces**. *** > [!NOTE] > > Ewake reads LangSmith with the permissions of the account you sign in with, or of the API key, and calls only the tools you select. Connect with read-only access, so that LangSmith refuses a write even if a write tool is selected. # Sentry integration Source: https://docs.ewake.ai/integrations/observability/sentry Connect Sentry so ewake can read the Sentry issue behind an alert, with its stack trace, tags and trace id. > [!NOTE] > > **What you'll get:** when an alert or a message names a Sentry issue, ewake reads that issue and its event during the investigation, down to the stack trace, so it can find where the error occurs in your code. A Sentry alert can also push its issues straight to ewake, so each one starts an investigation. *** ## Prerequisites * A Sentry organization on **sentry.io**. Self-hosted Sentry is not supported. * A Sentry account that can create an internal integration in **Settings** → **Developer Settings** → **Custom Integrations** * Access to your ewake dashboard *** ## Configuration **1. Create an internal integration in Sentry** In Sentry, go to **Settings** → **Developer Settings** → **Custom Integrations** and click **Create New Integration**. Pick **Internal Integration**, then click **Get started**. Name it, for example `ewake`. Leave **Webhook URL** empty for now. **2. Give it read access** Under **Permissions**, set **Issue & Event** to **Read**. That is the only permission ewake needs. Leave every webhook unticked, because Sentry asks for a Webhook URL as soon as you tick one. Click **Save Changes**. > [!TIP] > > To also [send Sentry alerts to ewake](#send-sentry-alerts-to-ewake), copy the **Client Secret** under **Credentials** now. Sentry shows it only briefly after it creates the integration. **3. Copy the token** Copy the token of the internal integration. **4. Connect in ewake** In your ewake dashboard, go to **Integrations** and click the **Sentry** tile under **Add more**. | Field | Value | | - | - | | **Organization slug** | The slug in your Sentry URL, e.g. `acme` in `https://acme.sentry.io` | | **Auth token** | The token from Step 3 | **5. Test and save** Click **Test connection**. Ewake reads one issue of the organization and reports **Read issues and events** as granted or missing. If it is missing, check the **Issue & Event** permission and the organization slug. Then click **Save**. > [!TIP] > > Sentry is connected. Ewake can now read Sentry issues during investigations. *** ## What ewake reads Ewake reads a Sentry issue by its id, when an alert or a message names it. | Read | What ewake gets | | - | - | | **The issue** | Title, culprit, level, status, priority, category, number of events, number of users affected, first and last release, project, and a link to the issue | | **One event of the issue** | The event that fired the alert when the alert names it, else the latest event: its message, tags (such as `environment` and `release`), trace id, and the stack trace of each exception | A stack trace keeps at most 20 frames for each exception: the frames in your application code nearest the crash, or the frames nearest the crash of any kind when none is in your code. *** ## Send Sentry alerts to ewake Sentry can also be an alert source of the [on-call agent](/working-with-ewake/on-call-agent). A Sentry alert pushes the issues it fires on to ewake, and each push can start an investigation. When you resolve the issue in Sentry, ewake marks its report resolved. The Sentry integration has one webhook. You set it up **once**, and every On-Call flow of Sentry reads it, each by its own conditions. **1. Open the webhook of the integration in ewake** In your ewake dashboard, go to **Integrations** → **Sentry** → **Overview**. The **Webhook** section shows the **Webhook URL** and the steps below. **2. Set up the internal integration** In Sentry, open the internal integration again from **Settings** → **Developer Settings** → **Custom Integrations**: * Paste the **Webhook URL** from ewake. * Turn on **Alert Action**, so that a Sentry alert can send issues to ewake. * Under **Webhooks**, in the **Issues** row, tick **Resolved** only. Click **Save Changes**. **3. Create a Sentry alert** In Sentry, go to **Monitors** → **Alerts** and click **Create Alert**. * Under **Source**, pick the projects that ewake should watch. * Under **Filter Issues**, pick the environment that ewake should investigate, for example `production`. An alert takes one environment, so make one alert for each. * Under **Alert Builder**, keep the triggers and add the action **Send a notification via an integration**. Pick the internal integration. Click **Create Alert**. **4. Paste the Client Secret in ewake** In the **Webhook** section, paste the **Client Secret** of the internal integration and click **Set up the webhook**. Ewake checks the signature of each push from Sentry with it. To change it later, paste the new one and click **Replace the Client Secret**. > [!WARNING] > > Send each issue to ewake one way only: by a Sentry alert, or through a Slack channel that ewake reads. If both send it, ewake investigates it twice. Then create an On-Call flow of Sentry, to choose which issues ewake investigates and how. See [On-call agent](/working-with-ewake/on-call-agent). *** > [!NOTE] > > Ewake uses **read-only** access. It reads issues and events, and never changes issues, alerts or settings in Sentry. # Integrations Overview Source: https://docs.ewake.ai/integrations/overview Every integration ewake connects to: observability, incident management, code, knowledge, project management, infrastructure, and your own tools. The sections below mirror the groups on the **Integrations** page of your dashboard. An integration you haven't connected is a tile under **Add more**: click it to open its panel. Once an integration is connected, its card shows **Overview**, or **Configure** for the integrations that accept more than one connection. *** ### Communication > [card] [Slack](/get-started/connect-slack) *** ### Observability > [card] [Datadog](/integrations/observability/datadog) > [card] [Grafana](/integrations/observability/grafana) > [card] [Prometheus](/integrations/observability/grafana-datasources#prometheus) > [card] [Loki](/integrations/observability/grafana-datasources#loki) > [card] [VictoriaMetrics](/integrations/observability/grafana-datasources#victoriametrics) > [card] [Thanos](/integrations/observability/grafana-datasources#thanos) > [card] [Tempo](/integrations/observability/grafana-datasources#tempo) > [card] [Jaeger](/integrations/observability/grafana-datasources#jaeger) > [card] [ClickHouse](/integrations/observability/clickhouse) > [card] [AWS CloudWatch](/integrations/observability/cloudwatch) > [card] [Elasticsearch](/integrations/observability/elasticsearch) > [card] [GCP Cloud Logging](/integrations/observability/gcp-cloud-logging) > [card] [Sentry](/integrations/observability/sentry) > [card] [LangSmith](/integrations/observability/langsmith) > [!NOTE] > > Prometheus, Loki, VictoriaMetrics, Thanos, Tempo, Jaeger and ClickHouse are read **through Grafana**: each card reads the datasources you select, on one Grafana or several. ClickHouse can also connect directly. See [Grafana datasources](/integrations/observability/grafana-datasources). *** ### Infrastructure > [card] [Kubernetes](/integrations/infrastructure/kubernetes) > [card] [Argo CD](/integrations/infrastructure/argocd) > [card] [LaunchDarkly](/integrations/infrastructure/launchdarkly) *** ### Custom > [card] [Custom MCP](/integrations/custom/custom-mcp) > [card] [OpenAPI](/integrations/custom/openapi) > [!NOTE] > > Bring your own tool surface: connect any MCP server you run, or any HTTP API from its OpenAPI spec, and pick which tools ewake may call. *** ### Incident Management > [card] [Incident.io](/integrations/alerting/incident-io) > [card] [Rootly](/integrations/alerting/rootly) > [card] [FireHydrant](/integrations/alerting/firehydrant) > > Alert source, incident details and write-back > [card] [PagerDuty](/integrations/alerting/pagerduty) > > Coming soon > [card] [Alertmanager & Grafana](/integrations/alerting/alertmanager) *** ### SCM & Code Review > [card] [GitHub](/integrations/code/github) > [card] [GitLab](/integrations/code/gitlab) > [card] [Gerrit](/integrations/code/gerrit) > > Coming soon *** ### Knowledge Management > [card] [Notion](/integrations/knowledge/notion) > [card] [Confluence](/integrations/knowledge/confluence) > > Through the Atlassian card *** ### Project Management > [card] [Jira](/integrations/project-management/jira) > > Through the Atlassian card > [card] [Linear](/integrations/project-management/linear) > [!NOTE] > > **PagerDuty** and **Gerrit** appear in the dashboard but cannot be connected yet. Their tiles are marked **SOON**. *** ### Deployment Tracking Not an integration card, deployment events are posted to the ewake API with a key you create under **API Keys**. > [card] [Deployment Tracking](/integrations/deployment/deployment-tracking) *** > [card] [Don't see your tool? →](/support) > > Let us know which integration you need and we'll look into adding it. If it speaks MCP or has an OpenAPI spec, you can connect it yourself today with a [Custom MCP server](/integrations/custom/custom-mcp) or [OpenAPI](/integrations/custom/openapi). # Jira integration Source: https://docs.ewake.ai/integrations/project-management/jira Connect Atlassian with a service account or a personal token so ewake can read your Jira issues and Confluence pages through one connection. > [!NOTE] > > **What you'll get:** ewake can search your Jira issues and read their details and comments during an investigation, surfacing the in-progress or recently-changed work that might explain unexpected behaviour, directly in the incident channel. The same connection can also read your [Confluence](/integrations/knowledge/confluence) pages. *** ## Choose how to connect Jira connects through the **Atlassian** card on the **Integrations** page. Its form offers three ways to connect: | Way | Credential | What ewake reaches | | - | - | - | | **Service account (OAuth)**, recommended | The OAuth 2.0 client of an Atlassian service account | Jira and Confluence, over Atlassian Rovo MCP. The credential doesn't expire, and ewake renews its access token itself. | | **Service account (API key)** | The API key of a service account | Jira and Confluence, over Atlassian Rovo MCP. The key expires within a year. | | **Personal token** | One person's API token, with their email | A scoped token reaches Jira and Confluence over Atlassian Rovo MCP. A classic token reads Jira only, over the REST API. Ewake loses access when that person leaves. | In every way, **Apps** sets which apps ewake may use: **Jira**, **Confluence**, or both. **Test connection** reads each app you chose, and **Save** needs every one of them to pass. *** ## Prerequisites * A Jira Cloud site at `https://your-domain.atlassian.net`. Custom domains aren't accepted. * For a service account: an Atlassian **organisation admin**, to create it. * For a service account API key or a scoped personal token: an organisation admin turns on **API token authentication for Rovo MCP** (one-time, org-wide). Without it, those tokens can't open Rovo MCP. ### Scopes A service account credential and a scoped personal token need these scopes, for each app you choose: | Scope | Unlocks | | - | - | | `read:jira:agent-interface`, `search:jira:agent-interface` | Reading and searching Jira issues | | `read:confluence:agent-interface`, `search:confluence:agent-interface` | Reading and searching Confluence pages | | `read:me`, `read:account` | Required: Rovo MCP refuses every read without them | | `write:jira:agent-interface` | Optional: creating Jira issues | | `write:confluence:agent-interface` | Optional: creating and updating Confluence pages | *** ## Configuration > [tab] Service account (OAuth) > > **1. Create a service account** > > An organisation admin creates a service account in **admin.atlassian.com** → **Directory** → **Service accounts**, and gives it the **User** role on Jira, and on Confluence if ewake should read it. > > **2. Create an OAuth 2.0 credential** > > Open the service account, select **Create credentials** → **OAuth 2.0**, and tick the [scopes](#scopes) of the apps you choose. Copy the client ID and the client secret. > > **3. Connect in ewake** > > In your ewake dashboard, go to **Integrations** and click the **Atlassian** tile under **Add more**. Select **Service account (OAuth)**. > > | Field | Value | > | - | - | > | **Apps** | **Jira**, **Confluence**, or both | > | **Site URL** | Your Jira Cloud site, e.g. `https://your-domain.atlassian.net` | > | **Client ID** | From the OAuth 2.0 credential of the service account | > | **Client Secret** | The secret of that credential | > > Click **Test connection**, then **Save**. > > > [!TIP] > > > > Atlassian is connected over Rovo MCP. Ewake can now reference your issues, and your Confluence pages if you chose them, during investigations. > [tab] Service account (API key) > > **1. Turn on API token authentication for Rovo MCP** > > An organisation admin turns on **API token authentication for Rovo MCP** for your Atlassian organisation. > > **2. Create a service account** > > An organisation admin creates a service account in **admin.atlassian.com** → **Directory** → **Service accounts**, and gives it the **User** role on Jira, and on Confluence if ewake should read it. > > **3. Create an API key** > > Open the service account, select **Create credentials** → **API token**, and tick the [scopes](#scopes) of the apps you choose. Copy the key. It expires within a year. > > **4. Connect in ewake** > > In your ewake dashboard, go to **Integrations** and click the **Atlassian** tile under **Add more**. Select **Service account (API key)**. > > | Field | Value | > | - | - | > | **Apps** | **Jira**, **Confluence**, or both | > | **Site URL** | Your Jira Cloud site, e.g. `https://your-domain.atlassian.net` | > | **API Key** | The API key of the service account | > > Click **Test connection**, then **Save**. > > > [!TIP] > > > > Atlassian is connected over Rovo MCP. Ewake can now reference your issues, and your Confluence pages if you chose them, during investigations. > [tab] Personal token > > A personal token belongs to one person: ewake loses access when that person leaves. Prefer a service account. > > **1. Create an API token** > > Go to [id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens), then create one of: > > * **A scoped token (Rovo MCP)** reads Jira and Confluence. Click **Create API token with scopes**, give it a name (e.g. `ewake`) and the longest expiry Atlassian allows. Select the app **Rovo MCP V2**, *not* the plain **Rovo MCP**, then tick the [scopes](#scopes) of the apps you choose. An organisation admin must also turn on **API token authentication for Rovo MCP**. > > * **A classic token (REST API)** reads Jira only. Click **Create API token** and give it a label (e.g. `ewake`). > > > [!NOTE] > > > > Copy the token now, Atlassian will not show it again after closing the modal. > > **2. Connect in ewake** > > In your ewake dashboard, go to **Integrations** and click the **Atlassian** tile under **Add more**. Select **Personal token**. > > | Field | Value | > | - | - | > | **Apps** | **Jira**, **Confluence**, or both. With a classic token, select **Jira** only. | > | **Site URL** | Your Jira Cloud site, e.g. `https://your-domain.atlassian.net` | > | **Account Email** | The email of the account that owns the API token | > | **API Token** | The token created above | > > Click **Test connection**, then **Save**. Ewake detects which transport your token opens. > > > [!TIP] > > > > Atlassian is connected. Ewake can now reference your issues during investigations. > > > [!WARNING] > > > > A Rovo-scoped token is **rejected by the Jira REST API by design**, and a classic token is refused by Rovo MCP. That is how ewake tells the two apart. If the connection fails, the panel relays Atlassian's own message, which names the missing scope or the org-admin step. The test result lists a row for each app you chose: **Read Jira issues and projects** and **Read Confluence pages**. Over Rovo MCP, each app ewake can read also gets a write row, **Create Jira issues** or **Create and update Confluence pages**. Write rows are optional: they need the write scopes. *** ## Turn an app on or off Click **Overview** on the **Atlassian** card. The panel shows the **Credential** and the **API access** (**Atlassian Rovo MCP** or **Jira REST API**), a card for each app under **Apps**, and the Jira **Projects** the account can see. Select an app card to turn it on or off. Ewake reads the app with the stored credential before it turns it on. Over the REST API, Confluence can't be turned on: reconnect with a scoped token or a service account. *** ## What ewake can do During an investigation, ewake reads from Jira on demand: * **Search issues** with a JQL query, returning a compact list (key, summary, status, assignee, type, last updated). * **Read an issue**, returning its full description (as plain text) and comments, to bring the context of the relevant ticket into the investigation. When Confluence is on, ewake also searches and reads your Confluence pages. See [Confluence](/integrations/knowledge/confluence). > [!TIP] > > Over Rovo MCP, ewake never spends Rovo credits. Metered features such as Rovo Search, Rovo Chat, Deep Research and the Teamwork Graph are blocked at the source. ### Creating Jira issues Ewake creates a Jira issue only through a [follow-up action](/working-with-ewake/on-call-agent#follow-up-actions) you approve, or when a member or an admin asks for one in Slack. An investigation never writes. * Over Rovo MCP, the credential needs the `write:jira:agent-interface` scope. * Over the REST API, the account needs the **Create issues** permission in the project. Creating Jira issues is turned on per workspace. If ewake doesn't offer it, contact [support@ewake.ai](/support). > [!NOTE] > > Ewake never edits, transitions, or comments on Jira issues. The only Jira write it makes is creating an issue, as above. *** > [card] [Reach Confluence too →](/integrations/knowledge/confluence) > > Choose Confluence in the same Atlassian connection. > [card] [What does ewake access in Jira? →](/security/permissions) > > The permission model behind every integration. # Linear integration Source: https://docs.ewake.ai/integrations/project-management/linear Connect Linear to let ewake surface relevant in-progress work during investigations, and file issues when you ask. > [!NOTE] > > **What you'll get:** ewake can cross-reference your Linear issues with production problems during an investigation, surfacing in-progress work that might explain unexpected behaviour. It can also file a Linear issue when you ask for one in Slack, or through a follow-up action after an investigation. *** ## Prerequisites * A Linear account with access to the workspace you want to connect * Permission to create API keys in Linear *** ## Configuration **1. Generate a Linear API key** In Linear, go to **Settings** → **Security & Access** → **Personal API Keys**, and create a key. Give it a name (e.g. `ewake`), the **Read** permission, and access to your teams. To let ewake file issues, also allow the key to create issues. Copy the key immediately. > [!NOTE] > > Copy the key now, Linear will not show it again after closing the modal. **2. Open the Linear integration in ewake** In your ewake dashboard, go to **Integrations** and click the **Linear** tile under **Add more**. ![Connect to Linear modal in ewake](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/integrations/project-management/linear/connect-modal.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=8df59619c452f40d29935a6e5f003027) **3. Enter your API key** | Field | Value | | - | - | | **API Key** | The key created in Step 1 | **4. Test and save** Click **Test connection** to verify the connection, then click **Save**. > [!TIP] > > Linear is connected. Ewake can now reference your issues during investigations. *** ## Writes Ewake files a Linear issue only when a run may act: * A question from a member or an admin in Slack can file an issue. * A [follow-up action](/working-with-ewake/on-call-agent#follow-up-actions) you approve on an On-call flow files the issues it names. * An investigation never writes. Ewake only creates issues: it never edits an existing one. It acts with the access your API key already grants. See [How ewake takes action](/security/permissions#how-ewake-takes-action). # MCP Server Source: https://docs.ewake.ai/interfaces/mcp Connect ewake to Claude Code, Cursor, or any MCP client, and query your service map and past investigations from your editor. > [!NOTE] > > **What you'll get:** your IDE can ask ewake who owns a service, what it depends on, and what ewake already found the last time that service broke, without you leaving the editor or opening Slack. Ewake exposes a **remote MCP server** (Model Context Protocol) at `/mcp` on your ewake instance. > [!NOTE] > > This page is about querying ewake **from** an MCP client. To connect an MCP server of your own **to** ewake, so it can call your tools during investigations, see [Custom MCP Server](/integrations/custom/custom-mcp). *** ## Prerequisites * An ewake instance reachable from your machine (e.g. `https://your-company.ewake.ai`) * An MCP client that supports remote servers over HTTP, Claude Code and Cursor both do * An ewake account, for the browser sign-in during the connection > [!NOTE] > > Running ewake in your own AWS account? The MCP server is on the same hostname as your > dashboard, but reaching it may depend on your network — see > [Self-hosted deployments](#self-hosted-deployments) below. *** ## Connect your client The connection uses OAuth: your client registers itself, sends you to your ewake dashboard to approve, and receives its own token. **You never copy or paste a key.** > [!TIP] > > Using a coding agent? The [setup skills for coding agents](/interfaces/setup-skills) add this server and start the sign-in for you. > [tab] Claude Code > > ```bash theme={null} > claude mcp add --transport http ewake https://your-company.ewake.ai/mcp > ``` > > Then run `/mcp` inside Claude Code and pick **ewake** to start the sign-in. > [tab] Cursor > > Add this to `~/.cursor/mcp.json`: > > ```json ~/.cursor/mcp.json theme={null} > { > "mcpServers": { > "ewake": { > "url": "https://your-company.ewake.ai/mcp" > } > } > } > ``` > > Cursor picks up the change on save and shows a **Needs login** button next to the server. > [tab] Other clients > > Point the client at `https://your-company.ewake.ai/mcp` over **streamable HTTP**. > > The server publishes standard discovery documents, so a compliant client finds everything else on its own: > > | Document | Path | > | - | - | > | Protected resource metadata (RFC 9728) | `/.well-known/oauth-protected-resource` | > | Authorization server metadata (RFC 8414) | `/.well-known/oauth-authorization-server` | > | Dynamic client registration (RFC 7591) | `/oauth/register` | > | Token endpoint | `/oauth/token` | ### Approve the connection **1. Your browser opens on the ewake approval page** The client sends you to the authorization endpoint on your ewake instance. If you're not signed in, you go through the normal dashboard login first and come back to the same page. **2. Review what the client is asking for** The page names the client, what it will be able to do (**read your service map, ownership, incident history, deployments and integrations**, and **change skills and workflow prompts in your name**, plus **read and change ewake.md in your name** if your role can change it), and the address it will send you back to. Check that address is your client, then click **Approve**. **3. You land back in your client** > [!TIP] > > The server shows as connected and its tools are listed. Ask it something, for example: *"Who owns the checkout service?"* *** ## Alternative: connect with an API key Use an API key when nobody can click **Approve**, a CI job, a script, or a container. Nobody signs in: the key acts for the user who created it. **1. Create the key** In your ewake dashboard, open **API Keys** in the sidebar and create a key. Copy it, it's shown once and starts with `ew_`. **2. Send it as a bearer token** ```json theme={null} { "mcpServers": { "ewake": { "url": "https://your-company.ewake.ai/mcp", "headers": { "Authorization": "Bearer ew_YOUR_API_KEY" } } } } ``` > [!WARNING] > > An API key is a shared credential, treat it like a password. It is also **workspace-wide, not scoped to MCP**: the same key can post deployment events. Prefer OAuth for anything a human uses, so calls are attributable to a person and revoking access doesn't affect anyone else. | | OAuth | API key | | - | - | - | | Setup | Browser approval, nothing to copy | Create in the dashboard, paste into config | | Identifies | The individual user | The user who created the key | | Scope | The MCP tools, as that user | The whole workspace, MCP and the REST API alike | | Lifetime | Access token 12 hours, refreshed automatically by the client for up to 30 days before you re-approve | Until you revoke it | | Revoke | Deactivate the user, their token stops validating on the next call | Instantly, from **API Keys**. Deactivating the user who created it also stops it on the MCP server | | Best for | Your editor | CI, scripts, headless tools | *** ## Self-hosted deployments The MCP server is not on a separate host. It is served by the same instance as your dashboard, on the same hostname: ``` https:///mcp ``` If your dashboard is `https://ewake.yourcompany.com`, the MCP URL is `https://ewake.yourcompany.com/mcp`. That holds whether your load balancer is public or private — what changes is who can reach it. ### If your load balancer is public Nothing special. Follow either method above. Access is still bounded by `alb_ingress_cidrs`, so the machine running your MCP client has to be in a range you allow. ### If your load balancer is private With `alb_internal = true`, your hostname resolves to **private** addresses. An MCP client can connect only from a machine that is: 1. **On your network** — inside the VPC, over the VPN, or across the transit gateway, so the hostname resolves and routes, and 2. **Inside `alb_ingress_cidrs`** — the security group is what refuses the packet, and it refuses before anything is logged on the ewake side. A laptop that resolves the name but sits outside those ranges will hang rather than fail cleanly. That is the security group dropping the connection, not ewake. > [!WARNING] > > **Use an API key, not OAuth, on a private deployment.** The OAuth flow sends your > browser to the dashboard to approve, then redirects back to the client. Behind a VPN > that round trip often cannot complete, and the client waits on a callback that never > arrives. > > An unauthenticated request to `/mcp` returns `401` advertising the OAuth discovery > document, so a client that has no token will try OAuth first. That is expected, not a > misconfiguration. Configure the bearer key up front and the client never starts the > flow. ### The inbound webhook gateway does not serve MCP A private deployment can run a public API Gateway so Slack and Datadog can still deliver events. **`/mcp` is deliberately not on it.** That gateway carries a short allowlist of webhook paths and nothing else — pointing an MCP client at its `execute-api..amazonaws.com` URL returns 404. This is a deliberate boundary. Those webhook routes accept a fixed payload from a known sender; the MCP tools read your service map, your investigation history and your knowledge graph. Putting that behind the public gateway would undo the reason for choosing a private load balancer. If you want MCP reachable from outside your network, widen `alb_ingress_cidrs` to the range it should come from, which is a per-deployment decision you control. ### Checking it works From a machine on your network: ```bash theme={null} curl -sS -o /dev/null -w '%{http_code}\n' \ -H "Authorization: Bearer ew_YOUR_API_KEY" \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}' \ https:///mcp ``` `200` means the whole path works: network, security group, TLS and the key. A hang points at routing or `alb_ingress_cidrs`; a `401` means the key is wrong or revoked. *** ## Tools The server has 16 tools. Ten of them only read. Six of them read or change the skills and the workflow prompts that ewake follows. ### Read | Tool | What it does | | - | - | | `ewake_load_cypher_skill` | Loads the guide to your knowledge graph: node labels, relationship directions, and query examples. Your client calls it before its first graph query. | | `ewake_list_service_names` | Lists the service names in your knowledge graph, with an optional search filter. | | `ewake_run_cypher_query` | Runs a read-only Cypher query on your services, repositories and contributors. Results are capped at 50 rows. | | `ewake_search_investigations` | Finds the past investigations of a period, newest first, one page at a time. Filters on the text of the question or of the answer, the status, the task type, the channel, the verdict or the monitor. A period is 366 days at most. | | `ewake_aggregate_investigations` | Counts the past investigations of a period, grouped by monitor, channel, verdict, task type, day or deploy. It answers questions such as "which monitors fire most" or "how many alerts needed nobody". The database counts every investigation of the period, not a sample. | | `ewake_get_investigation` | Returns one investigation: its written answer, the agent's plan, and the findings behind it. | | `ewake_get_conversation` | Returns the thread of an investigation: the questions and the answers around it, oldest first, follow-ups included. A long thread returns only its newest messages. | | `ewake_list_investigations` | **Deprecated.** Use `ewake_search_investigations`. It stays for older clients, and reads the last 31 days when you give no time window. | | `ewake_list_deployments` | Lists the deployments ewake received in a time window, newest first. Filters on the repository or the artifact name. | | `ewake_list_integrations` | Lists your integrations, the state of their discovery runs, their health and their open issues. | ### Change the instructions that ewake follows | Tool | What it does | | - | - | | `ewake_list_skills` | Lists the skills of your company: the instructions that ewake loads when they apply. | | `ewake_get_skill` | Returns one skill in full, with the id of its current version. | | `ewake_write_skill` | Writes a new skill, or a new version of an existing skill. The skill is active at once. | | `ewake_archive_skill` | Archives a skill, so that no investigation uses it again. A person can restore it in the dashboard. | | `ewake_list_ingestion_sources` | Lists where your alerts come from, with the workflow prompt of each source. | | `ewake_edit_workflow_prompt` | Changes the workflow prompt of one source: the instructions that ewake reads for each alert from that source. | A credential whose user has the **Root** role also lists two more tools: `ewake_get_ewake_md` reads ewake.md, the document that every ewake run reads, and `ewake_edit_ewake_md` changes it. Each write runs as the user of the credential, so it needs a user who is active and whose role can make that change. > [!WARNING] > > A change takes effect at once, for every investigation that starts after it. Read what your client proposes before you approve the call. *** ## What to ask The tools compose, so you ask the question and the client chains the calls: ``` Who owns the checkout service, and what does it depend on? ``` ``` This PR touches payments-api. Has ewake investigated anything on it recently? ``` ``` Show me what ewake found during the last checkout incident. ``` ``` Which monitors fired most last month, and how many of their alerts needed nobody? ``` ``` Add to our Kubernetes skill: read the pod events before the logs. ``` ``` Which repositories feed into the services that depend on auth-service? ``` *** ## Security * **Reads, and changes to instructions only.** Ten tools only read. Six tools read or change your skills and the workflow prompts of your ingestion sources, and two more read and change ewake.md for a Root user. No tool changes your integrations or your production systems. * **Every change has an author.** ewake records the user of the credential as the author of each change: the signed-in user with OAuth, and the user who created the key with an API key. * **Scoped to your company.** Both authentication paths verify that the caller belongs to this instance's company before the request reaches a tool. * **Your credential never reaches the tools.** The transport passes an identifier, not the API key or the access token. * **Deactivated users lose access immediately**, their token stops validating on the next call, and the API keys they created stop working on the MCP server. > [card] [How ewake handles permissions and data →](/security/permissions) *** > [!NOTE] > > Something you want to reach from your editor that isn't here? Tell us at [support@ewake.ai](/support), the tool surface grows from what people ask for. # Setup skills for coding agents Source: https://docs.ewake.ai/interfaces/setup-skills Install four skills for your coding agent to connect it to ewake, report deployments from your pipeline, map your services and check the setup. > [!NOTE] > > **What you'll get:** your coding agent does the ewake setup for a repository. You approve each change to the repository. > [!NOTE] > > **Preview.** These skills are in preview and can change without notice. > [!NOTE] > > This page is about skills that **a coding agent runs** in your repository. For the playbooks that ewake follows during investigations, see [Skills](/working-with-ewake/skills). *** ## Prerequisites You need these items: * A coding agent, such as Claude Code, Codex, or Cursor * A shell with `npx` and `git` * A Git repository. The skills read its `origin` remote and open pull requests. * An ewake account, for the browser sign-in *** ## Install **1. Add the skills to your repository** ```bash theme={null} npx skills add ewake-ai/skills ``` The command installs the skills into the repository for the coding agents that you select. **2. Commit the files** Commit the files so that your team gets the skills. To get a newer version of the skills, run this command. The skill names limit the update to the four ewake skills. ```bash theme={null} npx skills update ewake-connect ewake-report-deployments ewake-teach ewake-check-setup ``` Then commit the changes. *** ## The four skills | Skill | What it does | What it changes | What it needs | | - | - | - | - | | `ewake-connect` | It connects your coding agent to ewake and to the ewake documentation. | It changes the user-level MCP configuration of your coding agent, so the servers are available in every project. It changes nothing in the repository. | It needs your ewake dashboard address and a browser sign-in. | | `ewake-report-deployments` | It adds the deployment report step to your CI pipeline. | It changes your pipeline definition, in a pull request. Outside GitHub Actions, it also adds `scripts/ewake-report-deployment.sh`. | It needs a CI secret with the name `EWAKE_API_KEY`. You create the secret. | | `ewake-teach` | It maps the services of the repository to `.ewake/repo-metadata.yml`. | It changes only `.ewake/repo-metadata.yml`, in a pull request. | It needs nothing. With a connection, it also compares what it finds with what ewake knows. | | `ewake-check-setup` | It tells you what ewake knows about the repository and what is missing. | It changes nothing. | It needs nothing. Without a connection, it checks only the repository. | Run the skills in this order. Each line shows the request that you give to your coding agent. 1. `Connect ewake`. Run this skill first. The other skills use the connection. 2. `Report our deployments to ewake` 3. `Map the services of this repository for ewake` 4. `Check the ewake setup`. You can also run this skill at any time. It tells you the next step. *** ## What each skill does The steps of each skill are in [`ewake-ai/skills` on GitHub](https://github.com/ewake-ai/skills). This section gives the results. ### Connect your coding agent **When to run it.** Run the skill `ewake-connect` first. Run it again when your coding agent tells you that the ewake tools are not available. **What the coding agent does.** The coding agent adds two MCP servers to its MCP configuration: * `ewake` is the [ewake MCP server](/interfaces/mcp). It needs a sign-in. * `ewake-docs` is the MCP server of this documentation. It needs no sign-in. After the sign-in, the coding agent lists your service names to make sure that the connection works. If ewake has no services yet, the coding agent tells you the next step. If one of the reasons in [Check the setup](#check-the-setup) applies, it also tells you the reason. **What you approve.** You approve the sign-in in your browser. See [Approve the connection](/interfaces/mcp#approve-the-connection). The coding agent cannot approve the sign-in for you. The coding agent shows you each command and each file change before it runs the command or makes the change. In a session that has no browser, the coding agent adds no MCP server. See [Cloud agents](#cloud-agents). ### Report deployments **When to run it.** Run the skill `ewake-report-deployments` when you want ewake to compare production problems with your recent deployments. **What the coding agent does.** The coding agent adds the deployment report step after the production deployment. On GitHub Actions, the deployment report step is a separate job that uses the [ewake GitHub Action](https://github.com/marketplace/actions/report-deployment). On any other CI system, the deployment report step is the script and the command from [Deployment Tracking](/integrations/deployment/deployment-tracking#add-it-to-your-pipeline). The deployment report step cannot cause a deployment to fail. The coding agent asks you for the artifact name. The artifact name must be the service name in your observability stack. If the pipeline already reports to ewake, the coding agent only corrects the deployment report step. If the deployment report step is already correct, the coding agent changes nothing. **What you approve.** You approve the full change before the coding agent commits it and opens a pull request. You create the API key yourself. Open **API Keys** in your ewake dashboard. Then store the key in your CI system as the secret `EWAKE_API_KEY`. On GitHub, use a repository secret, not an environment secret. After the next production deployment, the deployment shows on the **Releases** page of your ewake dashboard. ### Map your services **When to run it.** Run the skill `ewake-teach` when you want a file in the repository that describes its services. **What the coding agent does.** The coding agent reads the repository and writes [`.ewake/repo-metadata.yml`](#the-metadata-file). The file lists the services of the repository, their key metrics, their dependencies, and where they run. The coding agent does not guess a name. Each name comes from a file in the repository or from you. **What you approve.** You answer the questions of the coding agent. It asks only for facts that the repository and ewake do not give. Then you approve the full change and a report. Only then, the coding agent commits the file and opens a pull request. ### Check the setup **When to run it.** Run the skill `ewake-check-setup` at any time. **What the coding agent does.** With a connection, the coding agent asks ewake about the repository and its deployments of the last 14 days. It also searches your pipeline definition for the deployment report step. Then it shows one table. Each result is **OK**, **Missing**, or **Not checked**. A result is **Not checked** when the coding agent does not have the ewake tool that the check needs. | Check | Next step when the result is **Missing** | | - | - | | Ewake tools | Run `ewake-connect`. | | Repository in Ewake | Connect [GitHub](/integrations/code/github) or [GitLab](/integrations/code/gitlab) in your ewake dashboard. | | Service linked to this repository | Run `ewake-report-deployments`. A deployment event links the service to the repository. If the deployment report step is already **OK**, wait for the next production deployment. | | Deployment report step | Run `ewake-report-deployments`. | | Deployment received | Run `ewake-report-deployments`. | For an **OK** result, the **Deployment received** row gives the time, the artifact name, and the commit of the newest deployment. If the result of **Repository in Ewake** or of **Service linked to this repository** is **Missing**, the coding agent also examines your integrations. If one of these reasons applies, the coding agent tells you the reason. The coding agent examines only the integrations that add repositories or services to ewake: GitHub, GitLab, Datadog, Grafana, Loki, Thanos, and ClickHouse. | Reason | What it means | Next step | | - | - | - | | No integration | Ewake has none of these integrations. | Do the next step from the table above. | | Paused | Each of these integrations is in a paused state. | Resume the integrations in your ewake dashboard. | | In progress | A discovery run that writes the knowledge graph is pending or running, and the run is not stalled. This reason also applies when ewake received the newest deployment after the last such run started. | Wait until the run ends. Then run the skill again. | | Found nothing | A discovery run that writes the knowledge graph succeeded, but it found nothing. | Do the next step from the table above. | **What you approve.** You approve nothing. The coding agent does not change a file, open a pull request, or change ewake. It does not start the next step. You make the decision. *** ## The metadata file The coding agent writes `.ewake/repo-metadata.yml` when it runs `ewake-teach`. This example shows version 1 of the format. The comments give the permitted values. ```yaml .ewake/repo-metadata.yml theme={null} version: 1 services: - name: checkout-api # the exact name in telemetry source: deploy/values.yaml # a file path, or: interview key_metrics: # at most 8 per service - name: checkout.orders.failed signals: errors # latency | errors | traffic | saturation | business source: interview depends_on: - kind: database # database | cache | queue name: checkout-main source: config/database.yml runs_on: - kind: cluster # cluster | namespace name: prod-eu-west-1 source: argocd/checkout-api.yaml ``` These rules also apply: * A `source` that is a file path has no line number. * The `source` is `interview` when you gave the fact. * The `name` of a dependency is the production name. * The file has no other fields. * If the coding agent does not know a value, it does not write the fact. > [!NOTE] > > Ewake starts to use this file in a later release. *** ## Cloud agents A cloud agent cannot open a browser, so it cannot do the sign-in. Add the connection one time in the settings of the cloud agent, not in a session. The MCP address is your ewake dashboard address plus `/mcp`, for example `https://your-company.ewake.ai/mcp`. | Cloud agent | Where to add the connection | Access | | - | - | - | | Claude Code | A custom connector on claude.ai | Sign-in | | Cursor | The MCP server settings of the team | Sign-in | | GitHub Copilot coding agent | The MCP configuration in the repository settings | Ewake API key in a secret | | Codex cloud | Not possible today | None | These limits apply: * The cloud agent must have permission to reach your ewake address. * A cloud agent cannot reach a self-hosted ewake instance that has a [private load balancer](/interfaces/mcp#if-your-load-balancer-is-private). * A sign-in stops 30 days after the approval. Then do the sign-in again. > [!WARNING] > > The GitHub Copilot coding agent connects with an ewake API key. An ewake API key is [not limited to the MCP server](/interfaces/mcp#alternative-connect-with-an-api-key). Create a separate key for the GitHub Copilot coding agent. For the name of the secret and the header to send, see [Cloud agents in the skills README](https://github.com/ewake-ai/skills#cloud-agents). *** ## Safety * **No skill asks for a credential.** A credential is an API key, a password, or a token. * **Each change waits for you.** Each skill shows the change and waits for your approval before it commits. * **No skill changes ewake.** The ewake MCP server reads data, and it can also change skills and workflow prompts in your name. No setup skill asks for such a change. See [MCP Server tools](/interfaces/mcp#tools). * **The deployment report step cannot cause a deployment to fail.** The skills are plain text files. For a security review, read the skills and the README in [`ewake-ai/skills` on GitHub](https://github.com/ewake-ai/skills). > [card] [How ewake handles permissions and data →](/security/permissions) # Permissions & Data Access Source: https://docs.ewake.ai/security/permissions Complete matrix of what ewake can access in each integration, scope by scope, and how it takes action. The page InfoSec teams need. This page lists every permission ewake requests, what it accesses with each one, and what it explicitly does **not** access. It is intended to be the single source of truth for security and compliance reviews. *** ## Principles > [card] You decide what ewake can do > > Ewake investigates by reading your connected systems. It writes only where you've given it access, through the actions you approve: see [How ewake takes action](#how-ewake-takes-action). > [card] Customer-isolated > > Each customer's knowledge map is stored in an isolated environment. No data is shared between customers. Models do not train on customer data. > [card] No raw telemetry retention > > Logs, metrics, and traces are queried live from your sources at the moment of investigation. Ewake retains derived metadata (services, dependencies, incident summaries), not raw data. > [card] Encrypted in transit and at rest > > All API traffic uses TLS 1.2+. Stored knowledge-map data is encrypted with AES-256 at rest. *** ## How ewake takes action Investigation reads. Taking action, such as restarting a pod, opening a pull request or creating a Linear ticket, writes, and ewake does it only with access you've granted. There is no fixed list of things ewake will or won't do. What it can do is defined by you: the integrations you connect, the access those credentials or MCP servers grant, and the actions you approve. What bounds it: * **Approved at setup.** Write actions are approved when you configure the **Follow-up actions** of an [On-call flow](/working-with-ewake/on-call-agent#follow-up-actions) in the dashboard. You describe the follow-up in plain words, for example *"create a Linear ticket describing the root cause"*, and ewake carries it out after the investigation. A follow-up action gets only the write tools that its own text names. * **Asked for in Slack.** When someone on your team asks ewake in Slack to do something, ewake can use the write tools of your connected integrations for that request. Each write tool tells ewake to use it only when the request asks for it in words. * **Confirmed in Slack, case by case.** Some actions, such as opening a pull request, run when someone on your team clicks to confirm in Slack, or asks for them in words. * **Ask first, or run alone.** When ewake proposes follow-up actions of its own, each write tool asks in Slack first, and one approval runs the whole plan. An Admin can let ewake run a tool alone under **Settings** → **Follow-up actions**. Tools that only read are always allowed. This card shows only when the feature is on for your workspace. * **Bounded by the access you grant.** Ewake can only use tools from integrations you've connected, with the access those credentials already grant. Expose only read tools on your Kubernetes MCP server and ewake can't restart a pod; connect Linear with a read-only key and no ticket gets created. * **Reviewable before saving.** **Parse action** shows you the exact tool calls your wording becomes, before the flow is saved. The write tools ewake has today: | Integration | What ewake can write | | - | - | | Slack | Post a message in a channel or thread, send a direct message | | GitHub | Open a pull request on an `ewake/` branch, commit to it, edit it, request reviewers, comment on it. Ewake never merges. | | GitLab | Open a merge request on an `ewake/` branch, when the ewake team turns it on for your company. Ewake never merges. | | Datadog | Tune a monitor: its query, thresholds, evaluation delay, no-data timeframe and renotify interval | | incident.io | Page people, write a postmortem draft, and, when it is turned on for your company, open an incident | | FireHydrant | Page people through Signals, and, with the write-back on, comment on a Signals alert | | Linear | Create or update an issue | | Jira and Confluence | Create or update a Confluence page, and, when it is turned on for your company, create a Jira issue | | Notion | Create a page under a page you shared with the integration | | OpenAPI | Call the write operations you turned on. Writes are off until you turn them on. | | Custom MCP and Kubernetes | Call the write tools your server exposes: within your allowlist for Custom MCP, every tool the server exposes for Kubernetes | > [!NOTE] > > If your security review needs ewake to be read-only, connect every integration with read-only credentials, keep write tools out of your MCP servers, and leave the write operations of your OpenAPI integrations off. Ewake still posts its investigations in Slack. The GitHub App keeps write access to `ewake/` branches, so someone who asks in Slack can still get a pull request. Ewake can also post messages and direct messages when asked, and change skills and workflow prompts. *** ## Per-integration access matrix ### Datadog Ewake uses an **Application key** scoped to read operations, plus one optional write. The full list: | Scope | What it enables ewake to do | Why it's needed | | - | - | - | | `apm_read` | APM spans and service dependencies | Distributed-trace context for slow requests, and the service dependency map | | `dashboards_read` | Existing dashboards | Surfacing relevant Datadog views during investigation | | `logs_read_data` | Log content | Reading log lines as evidence in investigations | | `metrics_read` | Metric series and metadata | Reading time-series metrics for any service | | `monitors_read` | Monitor definitions and search | Understanding what triggered an alert | | `timeseries_query` | Scalar and time-series queries | Querying metric values. `metrics_read` alone lists metrics but cannot query them | | `events_read` | Change events (deploys, config changes) | Correlating an alert with what changed around it | | `slos_read` | SLO definitions and status | Reading the SLO behind an SLO alert | | `mcp_read` | Datadog MCP server | Database monitoring, RUM, error tracking, profiling and extra queries through Datadog's MCP server. The key owner's role also needs the **MCP Read** permission | | `dbm_read` (optional) | Database Monitoring samples | Reading database query samples through Datadog's MCP server | | `monitors_write` (optional) | Change a monitor | Only tuning a monitor, for example with the **Tune the monitor** button in Slack: its query, thresholds, evaluation delay, no-data timeframe or renotify interval | **ewake does NOT request:** any `manage`, `admin`, or `*_create` scope, or any write scope other than the optional `monitors_write`. Without `monitors_write`, it cannot modify monitors. It never modifies dashboards, logs, or any other Datadog configuration. It also does not request `debugger_read`, `llm_observability_read`, `logs_read_archives`, `logs_read_index_data`, `apm_api_catalog_read`, `apm_pipelines_read`, or `apm_service_ingest_read`. No ewake code path calls those APIs, so granting them would widen your exposure for no functional gain. > [!NOTE] > > When you test the Datadog connection, ewake probes `monitors_read`, `logs_read_data`, `metrics_read`, `timeseries_query`, `apm_read`, `dashboards_read`, `events_read`, `mcp_read`, `dbm_read` and `monitors_write` and reports each as granted or missing, so you can confirm the key before saving. A missing `apm_read`, `events_read`, `mcp_read`, `dbm_read` or `monitors_write` does not block the save. *** ### GitHub Ewake uses a **GitHub App** with the following installation permissions: | Permission | Access level | What it enables | | - | - | - | | Contents | Read and write | Reading source code and diffs for investigation. Writing commits to `ewake/` branches only | | Pull requests | Read and write | Correlating PRs with deployments and incidents. Opening and following the pull requests ewake creates | | Workflows | Read and write | Letting an `ewake/` branch change a file under `.github/workflows/` | | Issues | Read | Reading issues for investigation | | Actions | Read | Reading GitHub Actions runs | | Deployments | Read | Tracking deployment events | | Members | Read | Reading the members of your organisation | | Checks | Read | Reading the check runs of a commit | | Commit statuses | Read | Reading the statuses of a commit | **ewake does NOT request:** administration or repository settings access. It writes only to branches that start with `ewake/`, it never pushes to another branch, and it never merges. A person on your team reviews and merges each pull request. See [Pull requests from ewake](/integrations/code/github#pull-requests-from-ewake). Connecting is one step: installing the Ewake GitHub App on your organisation. Installing needs an organisation owner. If you are not one, GitHub asks an owner to approve it. A self-hosted deployment can act as a GitHub App you create in your own organisation. The App is yours, its private key never leaves your account, and the installation is on your organisation rather than ewake's. See [GitHub App (self-hosted)](/integrations/code/github-app-self-hosted). #### How the credential works Ewake stores no GitHub credential. Each call mints an **installation token** from the App, scoped to that installation and valid for about an hour, and discards it. There is no token to rotate, nothing to leak from the database, and revoking access is a matter of uninstalling the App. Ewake's GitHub client writes only for its own pull requests: it creates and deletes `ewake/` branches, commits to them, opens and edits its pull requests, requests reviewers, and comments on them. Every other call reads. A disconnect uninstalls the App. Access is bounded by the repositories chosen at install time, so an App installed on three repositories gives ewake three repositories. *** ### GitLab Ewake connects to GitLab with a **service account access token**. By default, the token is scoped to read-only operations: | Scope | Access level | What it enables | | - | - | - | | `read_api` | Read | Project data, merge requests, pipelines, and deployments | | `read_repository` | Read | Source code and diffs | The service account is added to your groups and projects with the **Reporter** role, the minimum needed to read code and merge requests. Its access is bounded by that role, ewake only sees projects the service account is a member of. **By default, ewake does NOT request:** the `api`, `write_repository`, or any write scope. With a read-only token, it cannot push commits, create branches, open or comment on merge requests, or change project settings. **Merge requests (optional).** When the ewake team turns on merge requests for your company, the token needs the `api` scope, and the service account needs the **Developer** role on the projects where ewake may write. Ewake then creates branches named `ewake/…`, commits only to those branches, and opens merge requests. It never merges, never pushes to another branch, and never changes project settings. Projects where the service account keeps the **Reporter** role stay read-only. See [Let ewake open merge requests](/integrations/code/gitlab#let-ewake-open-merge-requests-optional). We recommend a dedicated **service account** over a personal access token, so access stays least-privilege, auditable, and survives staff changes. *** ### Slack Slack holds write scopes because posting investigations into your threads *is* the product. The app requests the same scopes on both install paths (OAuth and manifest). **Verified at install.** These fourteen are checked when you connect; a manifest install missing any of them is rejected and the missing ones are listed: | Scope | Read / Write | What it enables | | - | - | - | | `app_mentions:read` | Read | Respond when `@ewake` is mentioned | | `assistant:write` | Write | Slack Assistant threads | | `channels:history` | Read | Read messages in public channels ewake is added to | | `channels:join` | Write | Join public channels when invited | | `channels:read` | Read | List channels in the workspace | | `chat:write` | Write | Post investigations, replies and reports | | `groups:history` | Read | Read messages in private channels ewake is added to | | `groups:read` | Read | List private channels | | `im:history` | Read | Read direct message history | | `im:write` | Write | Open a direct message, for a DM that you ask ewake to send | | `mpim:history` | Read | Read group DM history | | `reactions:read` | Read | Read emoji reactions on messages | | `users:read` | Read | Read workspace member list | | `users:read.email` | Read | Resolve user emails for routing | **Also present in the manifest.** The manifest is a single shared definition covering every deployment, so it carries sixteen further scopes. The install does not require them. A few optional features use some of them: the 👀 reaction that acknowledges a message (`reactions:write`), the list of user groups (`usergroups:read`), and inviting admins to the admin channel (`channels:write.invites`, `groups:write`, `groups:write.invites`). Without one of these, only that feature fails. | Scope | Read / Write | | - | - | | `emoji:read`, `files:read`, `im:read`, `metadata.message:read`, `mpim:read`, `search:read.public`, `search:read.users`, `team:read`, `usergroups:read`, `users.profile:read` | Read | | `channels:write.invites`, `files:write`, `groups:write`, `groups:write.invites`, `mpim:write`, `reactions:write` | Write | > [!NOTE] > > On a **manifest install** you own the app, so you can delete any scope outside the verified fourteen before creating it. On the standard OAuth install the scope set is fixed by the shared app. **ewake does NOT request:** access to channels it has not been added to, admin-level workspace settings, message deletion, or link unfurling (`links:read`). It reads only the channels you invite it to. **Workspaces without an ewake account.** Any Slack workspace can install ewake. Until the workspace is linked to an ewake account, ewake answers with a fixed message explaining how to get one, and no message content is sent to an LLM. *** ### Incident.io Ewake requests an API key with these permissions: | Permission | Required? | | - | - | | View data | ✅ Required. Reads incidents and follow-ups | | View on-call resources | Optional. Reads alerts | | Read schedules | Optional, enables on-call reasoning | | Manage postmortems | Optional. Writes a postmortem draft on an incident | | `escalations.create` | Optional. Pages people | | `incidents.create` | Optional. Opens an incident, when it is turned on for your company | Ewake can also page people through incident.io and, when it is turned on for your company, open an incident. It does these only as a follow-up action or when someone asks in Slack. See [How ewake takes action](#how-ewake-takes-action). **ewake does NOT:** edit or resolve incidents, or change their severity. *** ### Kubernetes and Custom MCP servers Both connect to an **MCP server**, not to a credential you hand over. LangSmith and LaunchDarkly connect the same way, to the vendor's hosted MCP server, with a sign-in. Ewake asks LaunchDarkly for read access only. | Property | Detail | | - | - | | Direction | Outbound only. Ewake calls your endpoint; you open no inbound ports to ewake. | | Credentials | Whatever headers you configure (bearer token, Cloudflare Access service token), a sign-in with OAuth, or OAuth client credentials. Stored encrypted. | | Tool surface | For Custom MCP, ewake can call **only** the tools you tick in the allowlist, and new tools the server adds later are not auto-approved. For Kubernetes, ewake can call every tool the server exposes. | | What ewake can do | Set by you, not requested by ewake. Expose only read tools to keep ewake investigating, or add write tools (for example restarting a pod) for the actions you want it to take. Ewake can call an allowed tool in any run, an investigation included: these tools do not wait for a follow-up action or an approval. Whatever the allowlist says, the server's own credentials are the hard limit. | *** ### Credential-based integrations The remaining integrations authenticate with a credential you create and paste in, or a sign-in. Ewake reads only, except where the table says otherwise. Secrets are stored encrypted. | Integration | Credential | Access requested | | - | - | - | | Grafana, Prometheus, Loki, Tempo, Thanos, VictoriaMetrics, Jaeger, ClickHouse | Grafana service account token | **Viewer** role. Ewake reads each datasource you select through the Grafana datasource proxy rather than exposing it directly. A ClickHouse datasource keeps the user it already has, and ewake runs every query read-only. | | AWS CloudWatch | Cross-account IAM role + External ID | Read-only CloudWatch actions. Ewake assumes the role for one-hour sessions and never receives long-lived access keys. | | Elasticsearch | API key | Read on your log indices. Optional Kibana URL is used only to build deep links. | | GCP Cloud Logging | Service account JSON key | `roles/logging.viewer` on the named project. | | ClickHouse, connected directly | Dedicated user + password | `SELECT` on your trace tables plus `system.tables` and `system.columns`. Ewake never writes. | | Sentry | Internal integration token | **Read** on Issue & Event. Ewake reads issues and their latest events. | | Argo CD | API token | Local Argo CD account with **read-only RBAC**. | | Jira and Confluence | Service account OAuth 2.0 credential (recommended), service account API key, or personal token | Read scopes on the apps you pick. With the optional `write:confluence:agent-interface` and `write:jira:agent-interface` scopes, ewake can create or update Confluence pages and, when it is turned on for your company, create Jira issues. It never deletes content. A classic personal token reads Jira only. | | Linear | Personal API key | Read issues and projects. Create or update an issue, as a follow-up action or when someone asks in Slack. | | Notion | Sign-in with Notion, or an internal integration token where no Notion OAuth app is set up | Only the pages you explicitly share with the integration. Ewake can create a page under one of them. | | Rootly | API key | Read incidents. Ewake cannot declare, edit or resolve incidents. | | FireHydrant | API key | Read incidents and Signals alerts. Optional writes: page people through Signals (`create_alerts`), and, with the write-back on, comment on a Signals alert (`respond_to_alerts`). Ewake cannot declare, edit or resolve incidents, or change alerts. | | OpenAPI | Request headers, OAuth client credentials, or a JWT issuer login | The operations you turn on. `GET` and `HEAD` operations start on. Writes stay off until you turn them on, and you can mark a `POST` as read-only. See [OpenAPI](/integrations/custom/openapi). | *** ## What ewake does NOT do Ewake has no fixed list of actions it refuses: what it can do is the access you give it. What is fixed: * It never uses access you haven't granted. It acts only through the integrations, tools and credentials you've connected * It never reads Slack channels it has not been invited to * It never trains foundation models on your data * It never shares your knowledge map with other customers *** ## Roles Each user of your ewake dashboard has a role. An Admin sets it on the **Users** page. A role holds everything of the roles below it. | Role | What it adds | | - | - | | **Member** | The daily pages, On-call flows, skills, integrations, API keys and settings, read and change. Changes to skills and workflow prompts, also through the [MCP server](/interfaces/mcp). Reading the **Follow-up actions** settings. | | **Admin** | Users and their roles, the **Follow-up actions** settings, the Slack admin channel, Release Watch, the **Learnings** page, and reading ewake.md and cost. | | **Root** | Changes to ewake.md, and the operator pages of the instance. | In Slack, anyone who can mention `@ewake` can change skills and workflow prompts. A person with no ewake account writes as Ewake. An Admin changes only users at their own rank or below, and nobody changes their own role or active state. The workspace always keeps one active user who can manage users. An inactive user cannot sign in, and their MCP tokens and API keys stop working on the MCP server. *** ## API keys Ewake API keys authenticate machine access to your workspace: deployment events and the MCP server. | Topic | Detail | | - | - | | **Scoping** | Keys are **workspace-wide**, not per-purpose. A key carries a name for your bookkeeping; it does not restrict what the key can reach. A key created for deployment tracking can also query the MCP server. | | **Format** | Shown once at creation, prefixed `ew_`. Only a hash is stored. | | **Revocation** | Immediate, from **API Keys** in the dashboard. | | **Audit** | Each key records who created it and when it was last used. | Treat a key as a full workspace credential. For anything a person uses, prefer [MCP OAuth](/interfaces/mcp) instead, so access is attributable to an individual and revoking one person doesn't affect anyone else. *** ## Data handling | Topic | Detail | | - | - | | **Raw telemetry** | Queried live from your sources at investigation time. Not retained by ewake. | | **knowledge map** | Persisted per-customer. Stores derived metadata (service map, incident summaries, correlations). Encrypted at rest. | | **Integration secrets** | Encrypted at rest. Secret fields are never returned to the dashboard after saving. | | **Data residency** | Contact [support@ewake.ai](/support) for current region availability. | | **Sub-processors** | Full list available on request, contact [support@ewake.ai](/support). | *** ## Compliance > [!NOTE] > > **SOC 2 Type II**, ewake is SOC 2 Type II compliant. Contact [support@ewake.ai](/support) to request a copy of the report. *** ## Customer responsibilities To get the strongest security posture from your ewake deployment: * **Scope API keys minimally**, use the exact scopes listed above, no more * **Rotate credentials regularly**, at least every 90 days * **Use SSO** for ewake login rather than shared credentials * **Treat ewake API keys as workspace credentials**, prefer MCP OAuth for anything a person uses * **Audit Slack channel membership**, ewake only sees what's in channels it's invited to * **Review the GitHub App scope**, install on the minimum repository set you need * **Use a dedicated GitLab service account**, not a personal token, so access survives staff changes and stays auditable * **Give MCP servers only the access you want ewake to use**, read-only unless you want ewake to act, and keep the tool allowlist tight # Contact Support Source: https://docs.ewake.ai/support Send the ewake team a message about a question, an issue or an integration you need. We typically reply within a few hours. # Dashboard Source: https://docs.ewake.ai/working-with-ewake/dashboard The ewake dashboard is where you configure integrations, set up the On-Call Agent and Scheduled Tasks, and manage your API keys. > Slack is where ewake works. Dashboard is where you configure it. > The Dashboard is your central configuration interface, where everything is set up before it flows into Slack. *** ## The sidebar The sidebar groups the pages in three sections. What you see depends on your role: a **Member** sees most pages, an **Admin** also sees the pages marked *Admin* below. | Section | Page | What it holds | | - | - | - | | **Daily work** | **Home** | Your ewake activity, live investigations, and this week's metrics. | | | **Feed** | Every alert, question, scheduled run, and follow-up ewake handled. Open one to read its plan, tool calls, and answer. | | | **On-call** | The flows that start ewake: an event, a schedule, or an incident. See [On-call](#on-call). | | | **Releases** | The deployment events your pipelines sent, and what release watch made of them. Shown only when it is switched on for your workspace. | | | **Analytics** | Investigation volume, engagement, approval, and time to first hypothesis for your team. | | | **Production Map** | The map of your production: services, repositories, and the people who build them. | | **Knowledge and skills** | **ewake.md** | The file ewake reads at the start of every investigation. *Admin.* | | | **Skills** | Your team's playbooks. See [Skills](#skills). | | | **Learnings** | What ewake learned about your production from past investigations. *Admin*, and shown only when it is switched on for your workspace. | | | **Docs** | Opens this documentation. | | **Configuration** | **Integrations** | Your connected tools. See [Integrations](#integrations). | | | **API Keys** | The keys for machine access. See [API Keys](#api-keys). | | | **Settings** | How ewake behaves for your team, for example the 👀 acknowledgement reaction and the activity digest. | | | **Users** | The role of each person in your workspace, and who can sign in. *Admin.* | *** ## Integrations Connect and manage all your data sources, Datadog, GitHub, Incident.io, and every other integration. The page lists what **Needs attention**, what is **Connected**, and what you can **Add more**. Each integration opens a panel where you paste credentials and test the connection before saving. The number on the **Integrations** item in the sidebar counts the open integration issues. > [card] [Browse all integrations →](/integrations/overview) *** ## On-call Configure your flows: what starts ewake, what it does, and where it answers. Click **New on-call agent** and pick what starts it: * **An event**, the alerts a bot posts in a Slack channel, or the events that incident.io, Datadog, FireHydrant, Alertmanager / Grafana, Sentry, GitHub Actions, or a custom webhook push to ewake. * **A schedule**, a check that runs at the times you set, for example a digest every morning, and posts what it finds. This is where [Scheduled Tasks](/working-with-ewake/scheduled-tasks) live. * **An incident**, the incidents your tracker reports, or the incident channels ewake is invited to. See [Incident Response](/working-with-ewake/incident-response). Each opens its own wizard. An event or a schedule flow says what ewake investigates, where it answers, how the **Report** looks in Slack, and its **Follow-up actions**. Open an event flow to preview its settings against your last 7 days of events. > [card] [Set up the On-Call Agent →](/working-with-ewake/on-call-agent) > [card] [Set up Scheduled Tasks →](/working-with-ewake/scheduled-tasks) *** ## Skills Write team playbooks that ewake applies automatically when investigating. Each skill has a title, a category, **When to use** (which helps ewake pick the skill), and **Steps** (what ewake follows). Only active skills are used. > [card] [Set up Skills →](/working-with-ewake/skills) *** ## API Keys Create and revoke the keys that authenticate machine access to your workspace, deployment events and the MCP server. A key is shown once at creation and starts with `ew_`. > [!WARNING] > > Keys are workspace-wide, not scoped to one purpose. A key created for deployment tracking can also query the MCP server. Treat it as a full workspace credential. > [card] [Deployment Tracking](/integrations/deployment/deployment-tracking) > > Report deploys to ewake from any CI/CD pipeline. > [card] [MCP Server](/interfaces/mcp) > > Query ewake from Claude Code, Cursor, or any MCP client. *** > [!NOTE] > > New workspaces start in a learning period while ewake builds your production map. During it, you land on **Integrations** after sign-in, and **Home**, **Feed**, **On-call**, **Releases**, and **Skills** are greyed out with the tooltip *"Ewake is still learning..."*. They switch on by themselves. # Evaluations Source: https://docs.ewake.ai/working-with-ewake/evaluations Judge ewake on your own alerts as they fire, with its answers routed to a channel only you are watching. > [!NOTE] > > **What you'll get:** a way to ask "how good is ewake on *our* alerts?" using your real alerts > as they fire, without ewake's answers appearing in the channel your on-call team watches. *** ## Evaluate on live alerts in a separate channel Let ewake answer your real alerts as they fire, but send every answer to a channel only you are watching. Your on-call channel is untouched — no threads appear under the alerts your team is working — and you still get ewake's answer on each one, at the moment it mattered. This is a Slack flow that posts in another channel: ewake watches the channel your alerts already land in, and posts its answers somewhere else. ### Prerequisites * **Slack connected**, and ewake invited to **both** channels — the one it watches and the one it answers in * **A channel to evaluate in**, for example `#ewake-trial`. A private channel is fine * **Alerts arriving from a bot** in your existing channel **1. Start a new event flow** Click **On-call** in the sidebar, then **New on-call agent**, then **An event**. **2. Post in an on-call channel** Under **How should ewake answer your events?**, pick **Post in an on-call channel**. Ewake then posts its card in the channel you pick, not under the alert. **3. Choose Slack, the channel and the bot** Pick **Slack** as the source. In **Slack channels**, choose the channel your alerts already land in, and in **Bot**, the bot that posts them — Datadog, Grafana, whichever is yours. Ewake responds to that bot only. **4. Answer in your evaluation channel** Leave **Every event** and the prompt as they are for a first evaluation, so you are judging ewake's default behaviour rather than your own wording. Under **Where ewake answers**, set **Answer in** to your evaluation channel only, e.g. `#ewake-trial`. Do not add **Thread under the event**. **5. Create the flow and invite ewake** Skip the report and follow-ups, check the summary, and click **Create the flow**. Invite `@ewake` to both channels. > [!WARNING] > > Ewake cannot post in a channel it has not been invited to. If you skip this, the flow > looks healthy and the answers simply never appear. **6. Wait for an alert** The next alert that bot posts gets investigated, and the answer lands in your evaluation channel. To try it without waiting, fire a test alert from your monitoring tool. ### Narrowing it further To evaluate on a slice instead — one monitor, one named alert — open the flow and pick **Only the events that match every condition**: | Event field | Example value | Investigates | | - | - | - | | `attributes.monitorId` | your monitor's id | One monitor | | `title` | the alert's exact title | One named alert | The **Event field** box suggests the fields your recent alerts carried, but you can type any top-level alert field or `attributes.` — attribute names come from your vendor, so the list is a suggestion, not the permitted set. Under the condition, ewake shows how many of your recent alerts it matches. The [preview](/working-with-ewake/on-call-agent#preview-a-flow-against-your-last-7-days) next to the form shows where each recent alert would go. ### When you are done * **Change Answer in** to add **Thread under the event**, or your on-call channel. This is the switch from evaluating to running for real — nothing else changes. * **Switch the flow off**, or delete it, to stop ewake answering these alerts at all. > [!NOTE] > > While the flow answers only in the evaluation channel, your on-call channel sees no ewake > replies. > [!WARNING] > > The 👍 / 👎 buttons under each answer in your evaluation channel are real feedback. A rating > can change or write a [skill](/working-with-ewake/skills) at once, for every later run. Read > [Giving Feedback](/working-with-ewake/giving-feedback) before you rate. *** ## Good candidates for a first evaluation * **A noisy channel you already distrust.** If ewake handles those well, that is the strongest signal you will get. * **A single bot at a time.** Mixing sources makes the results harder to read. # Giving Feedback Source: https://docs.ewake.ai/working-with-ewake/giving-feedback How to judge an ewake investigation and leave a 👍 or 👎 that teaches it the right lesson. > [!NOTE] > > **What you'll get:** a shared standard for rating investigations, so the skills ewake > writes from your feedback are ones you would have written yourself. Feedback is not a satisfaction score. Every rating you submit in Slack is read back against the thread it rated, and can **create, rewrite or archive a [skill](/working-with-ewake/skills) with effect on the next investigation**. A careless 👎 teaches a careless rule. *** ## Where feedback comes from | Surface | What it does | | - | - | | **👍 / 👎 buttons** under an ewake answer in Slack | Opens the feedback form. Ewake reads the thread against your rating and can change its skills. | | **A correction to `@ewake`** in the thread | Ewake corrects its answer, and can store the lesson in a skill or in the prompt of the alert's flow. | | **Wrong verdict** or **Not noise** on an alert's verdict | Records that the verdict was wrong and, if you pick one, which verdict was right. Nothing is learned. | | **Emoji reactions** on an ewake message | Recorded as engagement only. No polarity is read from them, and nothing is learned. | > [!WARNING] > > Reacting with :thumbsup: is not feedback. Use the buttons under the message. *** ## What happens after you submit **1. You click 👍 or 👎** A form opens: **Help us improve Ewake**. **2. You pick dimensions and (optionally) write details** On a 👎 at least one dimension is required. On a 👍 the dimensions are optional. The **Additional Details** box is always optional — but it is the part that carries the lesson. **3. Ewake acknowledges immediately** You see *"Thanks for the feedback!"* — that is the save, not the learning. **4. Ewake reads the thread against your rating** Ewake starts a run in the thread you rated. The rating is about the whole thread, not one message. Ewake reads the thread, your dimensions and your comment, and decides whether they teach a lesson that a later run in the same situation needs. **5. A skill is written, sharpened or archived — and goes live** If there is a lesson, ewake changes the skill that covers the situation, or writes a new skill. After a 👎, it can also archive a skill that misled the run. A new or changed skill is **active immediately**. Ewake is told to change only skills, and not to page anyone, send another message or start an investigation. > [!WARNING] > > This is by design — a correction you give today applies to tomorrow's alert without > anyone having to promote it. It is also why the wording of your feedback matters: > nothing sits in a review queue between you and the next investigation. **6. Ewake replies in the thread** In one or two sentences. After a change, it says what it changed and links to the skill. After a 👍 with no change, it thanks you. After a 👎 with no change, it says that it changed nothing and asks what to change. > [!NOTE] > > A rating of an answer in the Playground, or in Shadow Mode, is saved but starts no run. > Nothing is learned from it. *** ## What ewake reads, and what it does not Ewake reads the thread you rated: the alert or the question, its answer and the messages that followed. It reads your rating: the polarity, the dimensions and your comment. It is told not to start a new investigation, so it does not go back to your data to check what turned out to be true afterwards. > [!TIP] > > Write in your comment what the thread does not show: what was actually true, and how you > knew. Anything you leave implicit is lost. *** ## Choosing the right dimension The dimension tells ewake *which kind* of mistake or success it was. Picking the wrong one sends the lesson to the wrong place. | Dimension | 👎 means | 👍 means | | - | - | - | | **Missed the Mark 🎯** / **Spot On 🎯** | Wrong issue, wrong service, wrong data source, wrong timeframe | It investigated the thing that actually mattered | | **Inaccurate / Unsupported ✖️** / **Solid Evidence 📚** | A claim contradicts the data, or is not backed by it | Every claim was tied to evidence that supports it | | **Lacked Insight 📉** / **Helpful Insight 💡** | Technically right, but told you only what you already knew | It surfaced something you would have missed | | **Not Actionable 🧱** / **Highly Actionable 🚀** | Correct but too vague to act on | It gave a clear next step or a fix | | **Hard to Read 📝** / **Clean & Clear ✨** | Cluttered, too long, hard to scan under pressure | Well structured, scannable at a glance | | **Other** | Anything the five above do not cover — explain in the details | Anything the five above do not cover — explain in the details | > [!NOTE] > > Diagnosis and presentation are separate judgements. An answer that found the right root > cause but buried it is **Hard to Read**, not **Missed the Mark**. Flagging it as the > latter teaches ewake to investigate differently when the investigation was fine. *** ## Writing the comment The comment is the only place you can say what the *right* answer was. A good one contains three things: 1. **What ewake concluded** — briefly, so the lesson is anchored. 2. **What was actually true**, and how you knew. 3. **The rule a future run should follow**, stated so it generalises beyond today. ```text Good 👎 theme={null} Blamed the checkout deploy. The 500s were upstream in auth-api — its p99 went past 2s four minutes before checkout errored. When two services error in the same window, check the dependency direction in the service map before naming the one that alerted. ``` ```text Good 👍 theme={null} Correctly ignored the deploy and went straight to the RDS connection count, which is what settled it. Keep checking pool saturation before deploy timing on payments-api — its deploys are noisy and almost never the cause. ``` ```text Too vague theme={null} wrong ``` ```text Too vague theme={null} Good job, very helpful! ``` ```text Unusable — no rule, no evidence theme={null} This is not how we do things here. ``` **Rules of thumb** * **Name services, metrics and thresholds.** "auth-api p99 over 2s" teaches; "the upstream service was slow" does not. * **Write the rule, not the incident.** The skill applies to later runs in the same situation, so give it something that still makes sense next month. * **One lesson per rating.** Two unrelated complaints in one comment tend to produce one muddled skill. * **Do not write instructions to a person.** The skill body is read by the agent as prior knowledge to weigh against its own evidence, not as an order to obey. * **Leave out links and ticket ids.** They point at today's incident, not at the rule. *** ## Praise is training too A 👍 starts the same run as a 👎. Rating a genuinely good investigation is how the ordering that worked becomes the ordering ewake reaches for next time. Rate 👍 when the run changed what you did next. Do not rate 👍 as a thank-you for a run you did not read — it is treated as a lesson either way. *** ## When not to leave feedback * **The gap is a missing integration, not a mistake.** If ewake could not see the data, no skill fixes that. Connect the source instead. * **You are asking for a product change.** Send it to [support@ewake.ai](/support) — a rating can only change skills. * **Someone already rated the same run for the same reason.** Each submission starts its own run, and each run can change a skill again. * **You have not read the answer.** A reflex rating is indistinguishable from a considered one. *** ## Reviewing what your feedback taught Ewake's reply in the thread links to each skill it changed. Everything it writes is visible and reversible in the dashboard under **[Skills](/working-with-ewake/skills)**: * The skill's **Versions** list shows each change, who made it, and when. * **Restore** puts a previous version back in service. * The **status toggle** disables a skill without deleting it; **Archive** retires it, and **Un-archive** brings it back. > [!TIP] > > Worth doing weekly for the first month: open Skills, read what was written from the > week's feedback, and disable anything that reads like one team's preference rather than > a rule about your production system. *** ## A short checklist Before you submit: * [ ] I read the answer and know what it got wrong or right. * [ ] My dimension matches the *kind* of problem (diagnosis vs. evidence vs. presentation). * [ ] My comment names the correct answer and how I know. * [ ] My comment states a rule that will still be true next month. * [ ] I would be happy for this rule to apply to the next investigation, unreviewed. *** Need help? Contact [support@ewake.ai](/support). # Incident Response Source: https://docs.ewake.ai/working-with-ewake/incident-response Run an investigation alongside your team during a live incident, ewake correlates signals across your stack while engineers debate the fix. > [!NOTE] > > **What you'll get:** An on-call agent working alongside your war room, ranked hypotheses, supporting evidence, what's been ruled out, and recommended next steps, all delivered in Slack as the incident unfolds. Your team debates fixes, not root causes. *** ## What it does When a real incident hits, a P0, a customer-facing outage, an SLA breach, the biggest time sink is rarely the fix. It's the investigation: stitching together signals from five different tools, forming a hypothesis, validating it, ruling it out, forming another. Ewake works as **an on-call agent alongside your war room**. It correlates signals across your entire stack automatically, the same work that takes a team of engineers 30 to 60 minutes, ewake does in seconds. * **Ingests alerts** and maps them to the affected service in the production knowledge map * **Cross-references** deployment activity, configuration changes, and upstream dependencies * **Surfaces a structured investigation**: hypotheses, evidence, what's been ruled out, recommended next actions * **Joins your existing Slack channel**, no new tool, no new dashboard *** ## When to use it * A P0 or P1 incident is in progress and a war room is forming * A customer-facing outage requires faster root-cause identification * An SLA breach is imminent and time-to-resolution matters * Multiple alerts are firing simultaneously and you need to find the common thread This is distinct from the [On-Call Agent](/working-with-ewake/on-call-agent) (one alert, automated reply) and [Scheduled Tasks](/working-with-ewake/scheduled-tasks) (proactive analysis on a schedule). Incident Response is for the moment when an incident has already been declared and a team is actively debugging. *** ## What you'll get *\[Screenshot to add: ewake investigation thread in a Slack incident channel, hypotheses, evidence, ruled-out causes]* In the incident channel, ewake delivers a continuously updating investigation that includes: * **Ranked hypotheses**, most probable root causes first, with confidence scores * **Evidence**, log excerpts, metric correlations, recent commits supporting each hypothesis * **What's been ruled out**, explicitly stated, so engineers don't re-investigate the same path * **Recommended next actions**, concrete steps to validate or invalidate the leading hypothesis * **Investigation timeline**, built-in record that becomes the basis of the postmortem * **Postmortem draft**, when the incident is over, ewake asks in the thread whether to generate a postmortem. Click **Generate postmortem** to get the draft, in the Slack thread or in incident.io, as the incident flow says. *** ## Prerequisites > [card] [Slack](/get-started/connect-slack) > [card] [Alert source](/integrations/overview) > > Datadog, Grafana, or another connected observability tool > [card] [Source control](/integrations/overview#scm--code-review) > > GitHub or GitLab For the strongest investigation context, also connect: > [card] [Incident.io](/integrations/alerting/incident-io) > > Lets ewake reference past incidents and postmortems during a live investigation. > [card] [Deployment Tracking](/integrations/deployment/deployment-tracking) > > Surfaces deployment events at the moment of the incident. *** ## How to set it up Ewake starts on an incident by itself when an **incident flow** takes it. A flow takes the incidents that your tracker reports, or the incident channels ewake is invited to. Without a flow, ewake answers in an incident channel only when someone mentions `@ewake`. **1. Connect your incident tracker** On the **Integrations** page, connect [incident.io](/integrations/alerting/incident-io), [FireHydrant](/integrations/alerting/firehydrant), or [Rootly](/integrations/alerting/rootly). With the incident.io or FireHydrant webhook set up, ewake takes each incident when the tracker declares it, and joins the incident's Slack channel by itself if the channel is public. Invite `@ewake` to a private incident channel. Without the webhook, ewake takes the incident when it is invited to the incident's channel. Rootly has no webhook into ewake, so a Rootly incident always starts with the invite. **2. Create an incident flow** In the ewake dashboard, go to **On-call** → **New on-call agent** → **An incident**. Under **Where incidents start**, pick your **Incident trackers**. If some of your incidents start in Slack channels that no tracker knows, also check **A channel ewake is invited to, by its name, when no tracker knows it**. Then set **Channel names start with** (for example `inc-`) and the **Channel max age** in minutes. An older channel with a matching name, such as last month's postmortem, starts nothing. **3. Choose what ewake does** Under **What ewake does**, write the **Instructions**, or leave them blank to keep ewake's own. When the flow takes incident.io incidents, you can also pick where the **Postmortem draft** goes: **In incident.io, with a link in Slack**, or **In the Slack thread**. **4. Check and turn on** Fill in **Flow name**, leave the switch on, and click **Create the flow**. A tracker and a channel name can't share one flow, so if you picked both, ewake creates two flows and the button reads **Create the flows**. > [!TIP] > > Ewake investigates the next incident the flow takes, and answers in the incident's own channel. **5. Add ewake to your incident channels** Unless the webhook brings ewake in, invite `@ewake` to each incident channel, or to the channel where your team coordinates incidents (e.g. `#incidents-prod`, `#war-room`). See [Adding ewake to a channel →](/get-started/connect-slack#add-ewake-to-a-channel) **6. (Recommended) Auto-invite via Incident.io** If you use Incident.io, configure a workflow to automatically invite ewake to every new incident channel. See [Auto-invite via Incident.io →](/integrations/alerting/incident-io#auto-invite-ewake-to-incident-channels) **7. Ask ewake during the incident** Once ewake is in the channel, you can mention it with context at any time: ``` @ewake we have a P0 on payments-api, errors started at 14:32 UTC ``` Or, if an [On-Call Agent](/working-with-ewake/on-call-agent) trigger is also configured for this channel, ewake will start investigating the moment the alert lands, no mention required. > [!TIP] > > Ewake will reply in the thread with an evolving investigation as it correlates signals. *** ## During the incident, useful prompts ``` @ewake what changed in the last hour on the affected services? ``` ``` @ewake rule out the deploy at 14:30, was anything in that diff related? ``` ``` @ewake have we seen this failure pattern before? Link the past incident. ``` ``` @ewake summarise the investigation so far for the postmortem. ``` *** Need help setting this up? Contact [support@ewake.ai](/support). # Interacting with the Agent Source: https://docs.ewake.ai/working-with-ewake/interacting-with-the-agent How your team interacts with ewake in day-to-day use, on-demand questions, automated responses, and thread follow-ups. Slack is where most teams interact with ewake every day. Whether it's asking a question during an incident, receiving an automated alert investigation, or reviewing a scheduled health report, everything arrives in Slack threads, in channels your team already uses. For configuration, use the [Dashboard](/working-with-ewake/dashboard). *** ## How to interact with ewake **Step 1** ### On-demand Mention `@ewake` followed by your question in any channel where the bot is present: ``` @ewake any anomalies in the past 6 hours? ``` ``` @ewake what changed in the last deploy on checkout-service? ``` > [!NOTE] > > Replace `checkout-service` with the name of your service as it appears in your observability tool, for example Datadog. Ewake will reply in a thread with a structured investigation response. ![ewake replying inside a Slack thread](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/interfaces/respondinsidethread.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=bfb0d42b2d9a848032ba64fb28bac684) **Step 2** ### Automated responses Ewake can respond automatically, no mention needed, when a use case is configured. **On-Call Agent** Ewake monitors a configured Slack channel and automatically replies in the alert thread whenever a configured alert bot posts. A flow can also take the alerts a tool pushes to ewake, such as Datadog, Alertmanager / Grafana, or Sentry, and answer in the Slack channels you pick. Delivers probable cause and evidence, takes the actions you approved, and leaves only the decisions that need a human, before your engineer opens a terminal. ![On-Call Agent automatic reply in Slack](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/interfaces/oncall.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=e66ff3b2a66ca87f26a1ef59652efb81) > [card] [Configure the On-Call Agent →](/working-with-ewake/on-call-agent) **Incident Response** With an incident flow, ewake investigates each incident your tracker declares, or each incident channel it is invited to, in the incident's own channel. It keeps reading the channel and picks the investigation up again when responders bring new information. You can also mention `@ewake` in the incident channel at any time. > [card] [Configure Incident Response →](/working-with-ewake/incident-response) **Scheduled Tasks** Ewake posts structured reports to your configured channel at the scheduled time, health briefs, anomaly summaries, and reliability digests. ![ewake scheduled report in Slack](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/interfaces/scheduled.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=91bbf20adecac3a5379ec740c196dede) > [card] [Configure Scheduled Tasks →](/working-with-ewake/scheduled-tasks) *** ## Behavior ### Threaded replies Ewake always responds in a thread, not in the main channel. When you continue a conversation in the same thread, ewake follows the thread context, you don't need to repeat the full question. ### Direct messages You can send questions to ewake directly via DM. Responses follow the same format as channel interactions. DM investigations don't have access to channel-specific configuration. ![ewake DM conversation in Slack](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/interfaces/DM_slack.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=4a314f0447debc622409c0d2331043cc) ### Follow-up questions Ewake remembers the context of the current thread. Once it has replied, your engineer can ask follow-up questions directly in the same thread without repeating the full context. ``` @ewake tell me more about evidence #2 ``` ``` @ewake what would you check next? ``` Ewake uses the full thread history to answer, so investigations can deepen progressively without starting over. ![Follow-up question in an ewake thread](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/interfaces/Followup_questions.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=61deffd76bc0ee00093e95420262bf0b) ### Feedback Every ewake response carries a 👍 and a 👎 button underneath it. Click either and a short form opens. On a 👎 you pick at least one category — what went wrong; on a 👍 the categories are optional. The written details are optional in both cases. Ewake then reads the whole thread you rated against your feedback, and may write a new [skill](/working-with-ewake/skills), sharpen an existing one, or, after a 👎, archive one that misled it. It replies in the thread with what it changed. Those changes take effect immediately, so what you write in the form shapes the next investigation. Read [Giving Feedback](/working-with-ewake/giving-feedback) before rating a run — it covers which category to pick and how to write a comment ewake can learn from. > [!NOTE] > > Emoji reactions on an ewake message are recorded as engagement, but no rating is read > from them and nothing is learned. Use the buttons. Responses also carry an **Explore the full investigation** button, which opens the complete run in your dashboard. ![Thumbs up and thumbs down feedback on an ewake response](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/interfaces/feedback.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=a3d7572b6265d5a53b2364be6df39536) ### Channel-specific configuration Each channel where ewake is active can have its own configuration. In the ewake dashboard, open **On-call** → click **Edit** on the flow, then set its **Prompt** under **Instructions for ewake** (what to look for and report), its **Report** (format, length, tone), and its **Follow-up actions** (what ewake does after the investigation). *** > [card] [Connect Slack and add ewake to channels →](/get-started/connect-slack) # On-Call Agent Source: https://docs.ewake.ai/working-with-ewake/on-call-agent Investigate alerts the moment they fire, act on your behalf, and escalate only what needs your team. > [!NOTE] > > **What you'll get:** By the time your on-call engineer opens their laptop, ewake has already investigated the alert, probable cause ranked by confidence, supporting evidence assembled, and the actions you approved already taken. Only what needs a human decision is left for you. The work that takes 30 minutes manually happens in seconds, automatically. *** ## What it does The On-Call Agent runs on **flows**. A flow says where alerts come from, which ones ewake investigates, and where ewake answers. When an alert fires, ewake immediately queries your connected sources, metrics, logs, recent deployments, past incidents, and posts its investigation in Slack. Alerts reach ewake in two ways: * **From Slack.** Ewake watches one or more channels and answers the alerts a bot posts there, for example the Datadog bot. * **Pushed straight to ewake.** [Alertmanager or Grafana](/integrations/alerting/alertmanager), incident.io, Datadog, [FireHydrant](/integrations/alerting/firehydrant), [Sentry](/integrations/observability/sentry) or a [custom webhook](#send-alerts-from-a-custom-webhook) sends the alert to ewake over HTTP. No Slack channel in between. A failed GitHub Actions run reaches ewake through the ewake GitHub App. One flow can read several channels and answer in several places, so you can bring alerts from many sources into one on-call channel, or send each team its own. *** ## When to use it * Your alerts land in a Slack channel (`#alerts`, `#incidents`, `#monitoring`), or come from Alertmanager, Grafana, Datadog, incident.io, FireHydrant or Sentry * You want ewake to explain a failed GitHub Actions build * Your team is on-call and needs faster first-response context * You want to reduce the time between alert firing and understanding what's happening *** ## What you'll get ### The alert card For every alert it investigates, ewake posts an **alert card** in each place the flow answers in. The card has two parts: * **Ewake's part, on top.** While ewake works, it shows ewake's **live plan**: the steps of the investigation, each one ticked off as it completes. When the investigation is done, the plan gives way to the verdict. * **The alert, below.** The alert as it fired. Its bar is **red while the alert fires** and turns **green once it resolves**. So a reader can tell at a glance what fired, and what ewake is doing about it. ### The report Under the card, in its thread, ewake posts the report: * **Summary**, one-line description of what happened * **Probable cause**, top hypothesis with confidence indicator * **Evidence**, log excerpts, metric spikes, recent deploys that correlate * **Actions and next steps**, what ewake did on your behalf, and what still needs a human decision Each place gets the same card and report, with its own thread for follow-up questions. *** ## Prerequisites Before setting up the On-Call Agent, make sure these integrations are connected: > [card] [Slack](/get-started/connect-slack) > [card] [Alert source](/integrations/overview) > > Datadog, Grafana, Alertmanager, or another connected tool > [card] [Source control](/integrations/overview#scm--code-review) > > GitHub or GitLab For the strongest alert investigation context, also connect: > [card] [Incident.io](/integrations/alerting/incident-io) > > Lets ewake reference past incidents and postmortems, surface patterns like "this looks like incident #47 from last month." > [card] [Deployment Tracking](/integrations/deployment/deployment-tracking) > > Sends deployment events to ewake so it can immediately correlate an alert with a recent deploy. *** ## The On-call tab In your ewake dashboard, click **On-call** in the sidebar. The page lists every flow, with what starts it, what ewake investigates, and where it answers. Each flow shows its counts of the last 7 days: how many events arrived, how many ewake investigated, and how many your conditions skipped. A scheduled flow shows its next run instead. ![The On-call tab, with three flows and the counts of the last 7 days](https://mintcdn.com/ewakeai/InSOsLTQiYkNs7IA/images/use-cases/oncall_flows.png?fit=max\&auto=format\&n=InSOsLTQiYkNs7IA\&q=85\&s=15a4ee2878c3c3e377f0ee9907a91387) Use the switch on a flow to pause it without deleting it, useful during a planned maintenance window. Click **Edit** to open it. *** ## Create a flow Click **New on-call agent**, then **An event**. The wizard sets up a flow in five steps. ![The first step of a new event flow: how ewake answers](https://mintcdn.com/ewakeai/InSOsLTQiYkNs7IA/images/use-cases/oncall_new_flow.png?fit=max\&auto=format\&n=InSOsLTQiYkNs7IA\&q=85\&s=eeeabeaf06aaa09e5e5e442a265ee8c1) **1. How ewake answers** Pick what your team sees in Slack. Each choice shows a picture of the result. | Choice | What your team sees | | - | - | | **Reply under each event** | Ewake answers in the thread of the alert message. Your channels stay as they are. Slack alerts only. | | **Post in an on-call channel** | Ewake posts one card per alert in the channels you pick, and investigates in its thread. Many sources can feed one channel. | | **Both** | Ewake replies under the alert, and also posts the card in the on-call channels. Slack alerts only. | An alert pushed straight to ewake has no Slack message to reply under, so a pushed flow always posts in channels. **2. Where events come from** With **Post in an on-call channel**, pick the source: | Source | How alerts reach ewake | | - | - | | **Slack** | Ewake watches channels and answers the alerts a bot posts there. Nothing to configure on the sender. | | **incident.io** | incident.io pushes alerts to ewake. See [incident.io](/integrations/alerting/incident-io#option-1-webhook-automatic-investigation). | | **Datadog** | A Datadog webhook pushes monitor alerts to ewake. See [Set up the Datadog webhook](/integrations/observability/datadog#set-up-the-datadog-webhook). | | **FireHydrant** | A Signals webhook target or the org webhook pushes alerts to the flow's endpoint, signed with a key ewake makes. See [FireHydrant](/integrations/alerting/firehydrant#send-signals-alerts-to-ewake). | | **Custom webhook** | Anything that can send an HTTP request pushes alerts to the flow's endpoint. See [Send alerts from a custom webhook](#send-alerts-from-a-custom-webhook). | | **Alertmanager / Grafana** | Alertmanager or a Grafana contact point pushes alerts to the flow's endpoint. See [Alertmanager & Grafana alerts](/integrations/alerting/alertmanager). | | **Sentry** | A Sentry alert pushes the issues it fires on to ewake. See [Send Sentry alerts to ewake](/integrations/observability/sentry#send-sentry-alerts-to-ewake). | | **GitHub Actions** | A failed workflow run starts an investigation. The ewake GitHub App sends every run, so there is nothing to set up in GitHub. Needs the GitHub integration connected. | For **Slack**, pick one or more **Slack channels**, then the **Bot** whose messages are alerts (e.g. Datadog). This ensures ewake only responds to real alerts, not other messages in the channel. Invite `@ewake` to each channel. For **GitHub Actions**, pick one **Repository**, then the **Workflows** and the **Branches** to watch. All three are required. When the integration of Datadog, incident.io, FireHydrant or Sentry is connected, the flow reads the webhook of that integration. You set that webhook up once, on the integration's card in **Integrations**, for every flow of the vendor, and the flow needs no setup of its own. The step says whether the webhook is set up. For Sentry without the integration, paste the **Client Secret** of your Sentry internal integration. **3. What ewake investigates** Choose which alerts ewake investigates: * **Every event**, or **Only the events that match every condition**, for example `attributes.severity` is `critical`. * **Exclusions**: alerts ewake never investigates, for example `attributes.env` contains `dev`. Ewake keeps the other alerts without investigating them. Under each condition, ewake shows how many of your recent alerts it matches, so you can check it before you save. Then write the **Prompt**: the instructions ewake gets when an alert fires. Start from a template if you like: | Template | What it asks ewake to do | | - | - | | **Root cause analysis** | Find the most likely root cause with ranked, evidence-backed hypotheses | | **Incident triage** | Assess severity and blast radius, then recommend the first actions | | **Customer impact** | Work out which user-facing flows are degraded, and since when | | **Recent-change correlation** | Correlate the alert with recent deployments and config changes | A GitHub Actions flow offers one template instead, **Build failure**: name the failed job and step, the error, and the commit that most likely caused it. Last, choose **Where ewake answers**: the channels, the thread under the alert, or both. You can add [routing rules](#route-alerts-to-several-destinations) here or later. **4. Report and follow-ups** Both are optional. Pick a report shape, **Concise** or **Detailed**, or write your own [report guidelines](#report-format). Then describe the [follow-up actions](#follow-up-actions) ewake takes after the report. Without an action, ewake stops after the report. **5. Check and turn on** Ewake reads the flow back to you in plain words: where alerts come from, which ones it investigates, where it answers, and what runs after. Leave the switch **On** to start with the next alert, then click **Create the flow**. For a pushed flow, this step then shows the endpoint, its token or signing key, and the steps to point the sender at it. The token and the key show once, so copy them before you leave. A flow that reads the webhook of its integration shows that webhook instead, and a GitHub Actions flow needs no setup. > [!TIP] > > The On-Call Agent is live. The next alert gets investigated, and its card appears where the flow answers. To try it right away, trigger a test alert from your monitoring tool. > [!TIP] > > Click **A schedule** instead of **An event** to create a flow that runs at set times, for example a digest every morning. See [Scheduled Tasks](/working-with-ewake/scheduled-tasks). Click **An incident** to have ewake investigate each incident of incident.io, FireHydrant or Rootly, or each incident channel it is invited to. See [incident.io](/integrations/alerting/incident-io) and [FireHydrant](/integrations/alerting/firehydrant). *** ## Send alerts from a custom webhook Use a **Custom webhook** flow for a tool that has no source of its own. When you create the flow, choose how the sender proves it is the sender. You cannot change this later. * **Bearer token**: ewake makes a token. The sender puts it in an `Authorization: Bearer ` header. * **Signature**: the sender puts the hex HMAC-SHA256 of the raw body in a header you name, `x-signature` by default. Pick **ewake makes the key**, or **The sender gave me a key** and paste its **Signing secret**. The sender posts each alert to the flow's endpoint as a `POST`, with the `Content-Type: application/json` header. Without that header, ewake does not read the body. Only `title` and `status` are required: | Field | Meaning | | - | - | | `title` | One line that names the event. Required. | | `status` | `firing` or `resolved`. Ewake investigates an event when it fires. Required. | | `signalKey` | The same value on every notification of one event. A repeat firing waits for the investigation that is already running. | | `externalId` | The id of this notification in your system. | | `occurredAt` | When the event fired, in ISO 8601 with a time zone. Without it, ewake uses the time it received the event. | | `description` | The body of the event. | | `sourceUrl` | A link to the event in your tool. | | `attributes` | Anything else, as names and values. Conditions and routing rules match them as `attributes.`, for a name with no dot. | ```json theme={null} { "title": "Checkout p99 latency above 2s", "status": "firing", "signalKey": "checkout-latency-p99", "occurredAt": "2026-01-01T12:00:00Z", "sourceUrl": "https://monitoring.example.com/alerts/checkout-latency-p99", "attributes": { "service": "checkout-api", "severity": "critical" } } ``` Ewake answers `202` with `"status": "accepted"`, or with `"status": "ignored"` for a body it cannot read or a flow that is off. A missing or wrong token or signature gets a `401`. *** ## Route alerts to several destinations A flow can read several channels and answer in several places. Under **Where ewake answers**: * **By default** lists the places that get every alert: any number of channels, plus the thread under the alert for a Slack flow. * **Rules** send some alerts somewhere else. A rule has an **Event field**, a **Match** (**is**, **contains**, **starts with** or **is at most** for a number), a **Value**, and the places to **Answer in**. For example, `attributes.service` is `payments` → `#payments-oncall`. ![Where ewake answers: the default places, and two routing rules with the count of recent alerts each one catches](https://mintcdn.com/ewakeai/InSOsLTQiYkNs7IA/images/use-cases/oncall_flow_routing.png?fit=max\&auto=format\&n=InSOsLTQiYkNs7IA\&q=85\&s=c6ea4041a12f0734c5b62a020974b0bc) Ewake checks the rules from top to bottom and uses **the first one that matches**. An alert that matches no rule goes to the default places. Matching ignores case. Use the arrows to reorder the rules, and put the narrow ones above the broad ones. A flow holds up to 20 rules. The field box suggests the fields your recent alerts carried, and the values they held. You can also type any top-level field, or `attributes.` for a field of your vendor. Invite `@ewake` to every channel a flow answers in, including the channels of its rules. *** ## Preview a flow against your last 7 days Open a flow to edit it. Next to the form, ewake replays your last 7 days of alerts through the settings on the page, saved or not. Change a condition or a rule, and the numbers update before you save. ![The preview of a flow: recent events through it, and where one event would go](https://mintcdn.com/ewakeai/InSOsLTQiYkNs7IA/images/use-cases/oncall_flow_preview.png?fit=max\&auto=format\&n=InSOsLTQiYkNs7IA\&q=85\&s=acad8e91d502c0b3fea5cf10333a4a47) * **Recent events through this flow**: how many alerts arrived, how many your conditions skip, how many ewake investigates, and how many land in each place. * **Where would this event go?**: pick a recent alert and follow it, step by step: where it came from, whether a condition skips it, which rule it matches, and where ewake answers. * **What #channel sees**: a picture of the card that alert gets. The wizard shows the same counts under each condition and each rule, so you can tune a new flow before it exists. *** ## Edit a flow Click **Edit** on a flow in the **On-call** tab. The page holds the same settings as the wizard, numbered in the order ewake uses them on every alert: | Section | What you define | | - | - | | **1. Where events come from** | The channels and bot to watch, or the flow's endpoint | | **2. What ewake investigates** | The condition, the exclusions and the prompt | | **3. Where ewake answers** | The default places and the routing rules | | **4. Report** | How the report looks in Slack | | **5. Follow-up actions** | What ewake does once the investigation is done | Click **Save** to apply your changes. Use the **On**/**Off** switch to pause the flow. For a pushed flow, section 1 shows the **Webhook URL** and lets you rotate the token. Rotating shows the new token and the connect steps again, and the old token stops working at once. A flow signed with a key has no token: FireHydrant, Sentry, or a custom webhook with a signature. To change its key, create a new flow, then delete the old one. When the integration of the vendor is connected, section 1 shows the webhook of that integration. A flow created before that webhook keeps its own endpoint, which still works. Send each alert to one of the two, or ewake investigates it twice. You can also change the prompt from Slack: in the thread of an alert, tell `@ewake` how to answer the alerts of this source. Ewake edits the prompt of the flow at once and links to the flow. **Prompt examples:** ``` Focus on identifying the root cause. Always include the 3 most recent deployments as context. ``` ``` Correlate this alert with recent deployments and config changes, and flag the most suspicious one. ``` ### Report format The **Report** section says how the answer looks in Slack. Pick one of the two shapes, or write your own **Report guidelines**: the format, length and tone you want, in plain words. Prefer shorter updates with more links? Want charts included? Say it here. * **Concise**: a few lines the on-call engineer reads in seconds: the verdict, the likely cause and the evidence. A new flow starts with this one. * **Detailed**: a full write-up: impact, timeline, evidence and root cause. For postmortems and handovers. ![The Report section of an On-call flow: the Concise and Detailed shapes, and the Report guidelines field](https://mintcdn.com/ewakeai/InSOsLTQiYkNs7IA/images/use-cases/oncall_flow_report.png?fit=max\&auto=format\&n=InSOsLTQiYkNs7IA\&q=85\&s=57338cae20db015591ccb48a643a943f) **Examples:** ``` Three bullet points at most, no headings, start with the impact. ``` ``` Answer in two sentences: the most likely cause, then the first thing to check. ``` ``` Keep it short and add links to the dashboards, logs and commits you used as evidence. ``` ``` Include a chart of the metric that triggered the alert. ``` ``` Be thorough. List every hypothesis you considered with its evidence, including the ones you ruled out. ``` Leave the field empty to keep ewake's own report rules. Whatever you write, ewake always adds the response time, the investigation id and the feedback buttons. > [!TIP] > > Keep the two fields apart: the **Prompt** says what to investigate, the **Report guidelines** say how to write it up. A length or tone rule belongs in the report. > [!NOTE] > > Report guidelines are set per flow, so each flow keeps its own style. To change the style everywhere, update every flow. ### Follow-up actions **Follow-up actions** are how ewake acts on your behalf after an investigation. You approve them here, when you set up the flow. In the **Action** field, describe the follow-up in plain words, for example: ``` Create a Linear ticket describing the root cause, then ping the developer who introduced the bug. ``` ``` If the alert has a high customer impact, send me a DM with the summary. ``` ``` Send a report of the problem in the dev-team channel. Send it in French, in one sentence. ``` ``` Find the FireHydrant alert of this alert and post the investigation on it as a comment. ``` For the FireHydrant write-back, see [Post the investigation on the FireHydrant alert](/integrations/alerting/firehydrant#post-the-investigation-on-the-firehydrant-alert). When you leave the field, or click **Parse action**, ewake shows the exact actions your wording becomes, with the tools each one uses. Review that list before saving, it's the whole point of the step. ![Follow-up actions of an On-call flow, with a parsed action](https://mintcdn.com/ewakeai/VOy7_ObO6qHpRS1L/images/use-cases/oncall_actions_tab.png?fit=max\&auto=format\&n=VOy7_ObO6qHpRS1L\&q=85\&s=948df585c31414cd99c49370ebdb0e50) For each parsed action you can: * Set a **Delay (s)** before it runs, from `0` to `86400` (24 hours). * Tick **Report this action in the Slack thread** to post in the thread when it runs. * Remove it with the delete icon. If an action needs a tool from an integration you haven't connected, ewake tells you: it either runs the action without that tool or drops the action. Connect the integration, or rephrase the text, then parse again. Editing the text clears the parsed actions, so parse again before you save. > [!WARNING] > > Actions only ever do what you approved, they only use integrations you've connected, and they're bounded by the access those credentials already grant. Some actions, such as opening a pull request, also wait for someone on your team to click to confirm in Slack. > [card] [How Actions fit the security model →](/security/permissions#how-ewake-takes-action) *** Need help setting this up? Contact [support@ewake.ai](/support). # Prompt Library Source: https://docs.ewake.ai/working-with-ewake/prompt-library Copy-paste prompts to send to @ewake in any Slack channel, by use case: on-call alerts, incident response, scheduled tasks and quick questions. Send these to `@ewake` in any Slack channel where the bot is present. Ewake will query your connected tools and return a structured, evidence-backed answer. > [!NOTE] > > Replace `[service-name]` with the name of your service as it appears in your observability tool, for example Datadog. *** ## On-Call Agent Use these when an alert fires and you need to understand what happened, fast. ``` @ewake What triggered this alert? ``` ``` @ewake What changed on [service-name] in the last hour? ``` ``` @ewake Is this alert correlated with a recent deployment? ``` ``` @ewake Has this alert fired before? What resolved it last time? ``` > [card] [Configure the On-Call Agent →](/working-with-ewake/on-call-agent) *** ## Incident Response Use these during a P0 or war room, when the team is actively debating the problem. ``` @ewake Summarize this incident for me before I join the call. ``` ``` @ewake What's the root cause of the current degradation on [service-name]? ``` ``` @ewake Which services are affected downstream from [service-name]? ``` ``` @ewake What are the most likely fixes based on similar past incidents? ``` ``` @ewake Draft a status update I can share with stakeholders right now. ``` > [card] [Configure Incident Response →](/working-with-ewake/incident-response) *** ## Scheduled Tasks Use these for proactive health checks, morning reviews, pre-deploy checks, on-call handoffs. ``` @ewake Give me the daily health digest for my services. ``` ``` @ewake Is [service-name] healthy enough to deploy right now? ``` ``` @ewake What should I know before I start my on-call shift? ``` ``` @ewake Generate a weekly reliability report for [service-name]. ``` ``` @ewake Any anomalies overnight I should address this morning? ``` > [card] [Configure Scheduled Tasks →](/working-with-ewake/scheduled-tasks) *** ## Quick questions Short-form questions you can ask at any time. ``` @ewake What's the health of [service-name] right now? ``` ``` @ewake What are the top errors in [service-name] right now? ``` ``` @ewake Why is [service-name] slow right now? ``` ``` @ewake Show me error spikes in [service-name] this week. ``` ``` @ewake Were there any deployments in the last 24 hours I should know about? ``` ### Time scoping Ewake defaults to the **last 1 hour** when no time window is specified. You can override it using plain language, relative or absolute: ``` @ewake Any anomalies since yesterday? ``` ``` @ewake Show me errors on [service-name] from 9am to 11am. ``` ``` @ewake What changed on [service-name] in the last 15 minutes? ``` # Scheduled Tasks Source: https://docs.ewake.ai/working-with-ewake/scheduled-tasks Receive proactive system health reports, anomaly summaries, and reliability signals on a schedule you define. > [!NOTE] > > **What you'll get:** A structured report delivered to your Slack channel on the schedule you define, morning health brief, overnight anomaly summary, weekly reliability digest, or pre-deploy check. You write the mission; ewake does the investigation. *** ## What it does Scheduled Tasks lets you configure ewake to run an autonomous analysis on a defined schedule and deliver the results to one or more Slack channels. You define what to look for and how far back to analyse (in the prompt), and when to deliver. Ewake does the rest, querying your connected observability tools, correlating with recent deployments, and producing a structured report. *** ## When to use it * You want a daily system health brief before standup * You want an overnight anomaly report waiting for your team each morning * You want a weekly reliability summary for leadership * You want a frequent watch during a release or an ongoing incident * You want to proactively catch degradations before they become incidents *** ## What you'll get *\[Screenshot to add: example ewake scheduled report in Slack, health summary with anomalies highlighted]* A typical scheduled report includes: * **System health summary**, status of key services over the analysis window * **Anomalies detected**, metrics or error rates outside normal baseline * **Notable changes**, recent deployments that may have introduced risk * **Risk signals**, patterns that historically precede incidents *** ## Prerequisites > [card] [Slack](/get-started/connect-slack) > [card] [Alert source](/integrations/overview) > > Datadog, Grafana, or another connected observability tool > [card] [Source control](/integrations/overview#scm--code-review) > > GitHub or GitLab For richer reports, also connect: > [card] [Incident.io](/integrations/alerting/incident-io) > > Includes historical incident patterns in health digests and reliability reports. > [card] [Deployment Tracking](/integrations/deployment/deployment-tracking) > > Surfaces recent deployments in health reports, flag risky changes before they become incidents. *** ## How to set it up A scheduled task is a flow on the **On-call** page that a schedule starts. **1. Start a scheduled flow** In your ewake dashboard, click **On-call** in the sidebar, then **New on-call agent**, then **A schedule**. The wizard sets up the flow in five steps. To start from a ready-made report instead, click **On-call handoff** under **Start from a template** on the **A schedule** card. ![Scheduled Task setup in ewake](https://mintcdn.com/ewakeai/M1QmRrA-jDM2VkcE/images/use-cases/scheduled_exemple.png?fit=max\&auto=format\&n=M1QmRrA-jDM2VkcE\&q=85\&s=979e7b2e0b1bdd8e18292c3107e6a992) **2. When it runs** In **Name**, enter a unique name: letters, numbers, hyphens and underscores only. A space becomes a hyphen. You cannot change the name later. **Examples:** `daily-health-brief`, `overnight-anomaly-report`, `weekly-reliability-summary` Then pick how often the task runs. Times are in UTC. | Frequency | Fields | Use case | | - | - | - | | **Every few minutes** | Every 15 or 30 min | A tight watch during a release or an ongoing incident | | **Every few hours** | Every 1, 2, 3, 4, 6, 8 or 12 hours | High-frequency monitoring through the day | | **Every day** | The time | Morning health brief, overnight summary | | **Every week** | The day, and the time | Reliability report, team retrospective input | | **Every month** | The day (1–31), and the time | Long-term trend analysis | Set the time in 24-hour format, for example `07:00` to deliver at 7 AM UTC. The page shows that time on your own clock, and the next run. For **Every few minutes** and **Every few hours**, you can also restrict the runs to a window, **between** a **From** hour and a **To** hour, so a 30-minute check covers business hours only. Leave both on **Any** to run around the clock. > [!NOTE] > > 15 minutes is the floor. Every run is a full agent investigation, so tighter cadences aren't offered. **3. What ewake checks** The **Prompt** is the core instruction, it tells ewake what to look for. There is no look-back field: say in the prompt how far back to look. **Examples:** ``` Summarise the health of all production services over the last 24 hours. Highlight any error rate increases above 5% compared to the day before. ``` ``` Identify any anomalies in the past 24 hours. Focus on latency spikes and deployment-correlated regressions. ``` ``` Produce a weekly reliability report for the last 7 days. Include top recurring errors, services with the most incidents, and any open risk signals. ``` Or click a template above the prompt. It fills the prompt and the report guidelines, and you still pick the cadence and the channels. | Template | What it asks ewake to do | | - | - | | **Daily production digest** | Summarize the last 24 hours: incidents, notable alerts, deployments, and anything worth a closer look | | **Weekly reliability report** | Recap the week: incident count and severity, recurring or noisy alerts, and the trend versus last week | | **On-call handoff** | Count the alerts ewake investigated in the last 24 hours, and list what still needs a person | > [!NOTE] > > Each run starts with no memory of the earlier runs. To compare with an earlier period, name that period in the prompt. **4. Where ewake answers** In **Answer in**, choose one or more Slack channels for the report (e.g. `#monitoring`, `#engineering`, `#standup`). Each channel gets the same report, with its own thread for questions. > [!NOTE] > > Ewake joins a public channel by itself before it posts. Invite it to a private one. [Add it here →](/get-started/connect-slack#add-ewake-to-a-channel) **5. Report and follow-ups** Both are optional. Pick a report shape, **Concise** or **Detailed**, or write your own report guidelines, then describe the follow-up actions ewake takes after the report. They work as on an alert flow: see [Report format](/working-with-ewake/on-call-agent#report-format) and [Follow-up actions](/working-with-ewake/on-call-agent#follow-up-actions). **6. Check and turn on** Ewake reads the flow back to you in plain words. Leave the switch **On**, then click **Create the flow**. > [!TIP] > > Your Scheduled Task is active. Ewake posts the report at the next scheduled time, on every run. To change a scheduled task later, click **Edit** on it in the **On-call** page. Use its switch to pause it. *** ## Ask ewake in Slack You can also ask `@ewake` in Slack for a report that repeats, for example: ``` @ewake post a summary of the checkout errors every weekday at 9am ``` Ewake creates the scheduled flow, which answers in that channel, and gives you its link. Ask it the same way to change the prompt or the cadence of a schedule, or to pause, resume or delete it. You need an ewake account to create or change a schedule from Slack. For one more check later in the same thread, ask for it in words: ``` @ewake check again in 10 minutes and tell me if the 5xx rate of checkout is back under 1% ``` After the wait, from 1 minute to 1 day, ewake runs once more in the thread, with the memory of the thread. *** Need help setting this up? Contact [support@ewake.ai](/support). # Skills Source: https://docs.ewake.ai/working-with-ewake/skills Write team playbooks that ewake applies automatically when it encounters a matching situation. > [!NOTE] > > **What you'll get:** Skills let your team encode institutional knowledge, "when you see X, investigate like this", and have ewake apply it automatically, without you repeating the instructions every time. > [!NOTE] > > This page is about the playbooks **ewake follows** during investigations. For the skills a coding agent runs to set up ewake in your repository, see [Setup skills for coding agents](/interfaces/setup-skills). *** ## What it does Skills are playbooks written by your team that guide ewake's behaviour in specific situations. When an investigation starts, ewake is given a **catalog** of your active skills, one line each: the title and the description, and nothing else. As the investigation reaches a subject one of them covers, ewake loads that skill in full and weighs it against the evidence it is gathering. That is why the description carries so much weight: it is what ewake reads when deciding whether a skill is worth opening. The result: ewake responds the way your team would, based on the guidance you've already written, more consistent answers, less repetition. *** ## Anatomy of a skill Each skill has four fields: | Field | Role | | - | - | | **Title** | A short name that identifies what the skill covers | | **When to use** | The description. Used by ewake to decide whether this skill applies to the current mission. | | **Steps** | The body: the actual guidance, injected into the agent's context verbatim when the skill is loaded. Write it as you would a runbook: what to check, what to look for, how to respond. | | **Category** | Groups the skill in the list — *Knowledge*, *Procedure*, *Troubleshooting*, *Reference*, or *Uncategorized*. It organises the Skills page; it does not change when a skill is retrieved. | ## Statuses Every new skill starts **active**, whoever writes it: you in the dashboard, or ewake itself. | Status | Meaning | | - | - | | **Active** | Ewake retrieves and injects this skill when it matches a mission. | | **Disabled** | Temporarily excluded without being deleted. Use the switch in the skill's panel to disable or enable it. | | **Archived** | Retired. No longer used. **Archive** it from its panel, and **Un-archive** it to bring it back. | | **Draft** | A skill written before every new skill started active. Not used by ewake until you click **Publish**, or until ewake changes it, which makes it active. | > [!WARNING] > > Only **active** skills are used by ewake. A skill in draft, disabled, or archived status is never injected, even if it matches the mission. *** ## Versioning Every time you save changes to a skill, a new version is created, and **that version immediately becomes the current one** — the one ewake uses. Saving is publishing; there is no separate review step. The **Versions** list in the skill's panel shows every version, who made it and when. Click a version to read it, and **Restore** to put it back in service. Doing so promotes it to current without deleting anything that came after it. *** ## Skills ewake writes itself Ewake writes and changes skills on its own in three cases. In each one, the change goes live at once: a correction you give today applies to tomorrow's alert without anyone having to promote it. ### From a correction or a lesson in Slack When you tell `@ewake` in a thread that it got something wrong, or teach it something a later run needs, ewake can store the lesson as a skill. It changes the skill that already covers the subject, or writes a new one, then says what it changed and links to the skill. It does not change a skill for something it found by itself. The version records you as its author when your Slack user matches an ewake user, and **Ewake** otherwise. ### From feedback on an investigation When someone rates a thread 👍 or 👎 in Slack, ewake reads the thread against the rating and may sharpen an existing skill, write a new one, or, after a 👎, archive a skill that misled the run. See [Giving Feedback](/working-with-ewake/giving-feedback). ### From your documents Ewake reads the documents of some integrations, such as Notion runbooks and the incident.io incidents that have a retrospective. From a document worth keeping, it writes a skill, or refines an existing skill on the same subject, including one your team wrote. These skills have **Ewake** as their author. Ewake never changes a skill that someone disabled or archived. When the lesson still matters, it writes a new skill. Any change can be undone: **Restore** an earlier version, disable the skill, or archive it. Use the **By Ewake** filter on the Skills page to review what ewake wrote. *** ## How to create a skill **1. Go to Skills** In your ewake dashboard, navigate to the **Skills** section. **2. Create a new skill** Click **New skill**. **3. Write the title** Choose a title that clearly describes the situation this skill covers. **Examples:** * `Database connection pool exhaustion` * `High 5xx rate on payments-api` * `Post-deploy latency spike triage` **4. Write When to use** Describe when this skill applies. This is what ewake uses to match the skill to a mission. You can click **Suggest** to have ewake generate a description from the title and the steps. **Example:** ``` Apply when investigating a sudden increase in latency or errors on a service that follows a recent deployment. ``` **5. Write the Steps** Write the guidance ewake should follow. Treat it as a runbook: concrete steps, specific things to check, how to interpret results. **Example:** ``` 1. Check the deployment timeline, identify what changed in the 30 minutes before the alert. 2. Compare error rates and p99 latency before and after the deploy using Datadog. 3. Look for database query regressions or connection pool exhaustion in the logs. 4. If the deploy is the likely cause, identify the commit diff and surface it as evidence. 5. Suggest a rollback only if error rate exceeds 10% and no quick fix is identifiable. ``` **6. Save** Click **Save**. The skill is active at once, and ewake can use it from the next investigation on. To keep it out of use while you refine it, turn its switch off. *** ## Tips for writing effective skills **Be specific.** A skill scoped to "database connection pool exhaustion on checkout-api" is more useful than one titled "database issues". Specific skills get retrieved more precisely and contain more actionable guidance. **Write the body as instructions to the agent.** Use numbered steps, concrete thresholds, and named services. Avoid vague directives like "investigate carefully". **Use the description as a trigger condition.** The description should answer: *in what situation should ewake apply this?* Think of it as the `if` clause. **Disable while you refine.** A saved skill is active at once. If the guidance is not ready, turn the skill off, and turn it on when you are confident it is correct. *** Need help? Contact [support@ewake.ai](/support).