Slack app
The Tailcove Slack app does two jobs:
7 min read
On this page8 sections
- For the team (Settings → Slack): it answers
/tailcovecommands in any channel of your workspace, and posts incidents (with Acknowledge and Resolve) and alerts in the channels that subscribed to them with/tailcove subscribe. - For one alert or monitor: Add to Slack on its form picks the channel that alert posts to. That connection only sends alerts; it adds no commands.
Connect it#
- Open Settings → Slack as a team owner or admin and choose Connect Slack.
- Slack asks which workspace. Allow the app. It does not ask for a channel.
- In each channel that should get something, type
/tailcove subscribe incidentsor/tailcove subscribe alerts all(see Channel subscriptions). For a private channel, invite the app first (/invite @Tailcove).
One Slack workspace belongs to one Tailcove team. Disconnect revokes the app's token and forgets the workspace. Reconnecting the same workspace keeps every channel's subscriptions. If you connected before channels were chosen this way, the channel you picked then already gets incidents.
What an alert message looks like#
The alert's name and source, its condition (for example level:error ≥ 50 in 5 min) and how many lines matched, a
link that opens the alert in Tailcove, and, for a log alert, up to five of the newest lines that matched, with their
time and level, in a code block. So the error is usually visible in Slack before anyone clicks. Metric and no-data
alerts have no lines to show. More on alerts: Alerts.
The buttons#
An open incident shows Acknowledge and Resolve; an acknowledged one only Resolve; a resolved one none. When the incident changes anywhere (a mail link, a phone reply, the web app, or the cause recovering) the message in the channel is edited to match.
Pressing a button acts as you, not as the channel: Tailcove uses the Slack account you linked (below), else the email on your Slack profile, which must be a verified member of the team. Either way you need access to incidents. If Tailcove cannot tell it is you, you get a private message saying so and nothing changes. A second press on an incident someone already took tells you who is ahead of you, privately.
Link your Slack account#
Every member can link their own Slack account under Settings → Slack → Your Slack account: choose Link your Slack account and sign in with Slack. Then:
- Acknowledge, Resolve and
/tailcoveact as you, even when your Slack email is not the one you use in Tailcove. - When an escalation pages you, the Tailcove bot also messages you directly in Slack (next to the email).
Tailcove keeps only your Slack user id and workspace, never a token, and nobody else on the team sees your link. Unlink removes it. If you leave a team, your link no longer acts in that team's workspace.
A channel for one alert, monitor, escalation step or status page#
Everywhere Tailcove sends to a Slack channel, you pick it with Add to Slack: an alert, a monitor, a step of an escalation policy, and a status page's Slack subscribers. A Slack window asks which channel; pick one and the window closes, showing the channel on the form. Save the form to keep it. Each one can post to its own channel, and Change picks another one. On an escalation step the channel is optional, and Remove takes it off.
The channel's address stays on Tailcove's side: the form only holds a reference for half an hour, and saving turns it into the channel's webhook. Anyone who may change the team's data can connect a channel; a Viewer cannot. A webhook URL pasted before the app was set up keeps working and shows as "A pasted webhook" until you change it with Add to Slack. On a server where the Slack app is not set up (self-hosting), the form asks for an incoming-webhook URL instead.
/tailcove commands#
Type these in any channel of the connected workspace. Answers are shown only to you.
| Command | What it does |
|---|---|
/tailcove help |
Lists the commands |
/tailcove status |
Monitors down, alerts firing and open incidents, in one line each |
/tailcove monitors |
The monitors that are down, and since when |
/tailcove alerts |
The alerts that are firing, and on which source |
/tailcove incidents |
The open incidents, each with its id (inc_…) |
/tailcove oncall |
Who is on call now for each schedule |
/tailcove ack <incident id> |
Acknowledges the incident, as you |
/tailcove resolve <incident id> |
Resolves the incident, as you |
/tailcove search <source> <query> |
The five newest lines of the last 24 hours in that source that match the query, with a link to all of them |
Commands act as you, the same way as the buttons, and your role applies: a Viewer can read but not acknowledge or resolve, and a Billing member sees no data. A search uses the same query language as the Logs page; at most ten searches a minute per team come from Slack.
Channel subscriptions#
Any member who can change the team's data chooses what a channel gets, straight from Slack. Type these in the channel itself:
| Command | What it does |
|---|---|
/tailcove subscribe alerts all |
Every alert of the team posts in this channel when it fires and when it resolves. |
/tailcove subscribe alert <name> |
One alert, by its name or its id (alr_…). |
/tailcove subscribe incidents |
New incidents post in this channel with Acknowledge and Resolve, kept up to date. Several channels can subscribe. |
/tailcove unsubscribe alerts all |
Stops them. /tailcove unsubscribe alert <name> stops one, /tailcove unsubscribe incidents stops incidents. |
/tailcove subscriptions |
Lists what this channel gets, and who subscribed it. |
The messages belong to the channel: everyone in it sees them, not only the person who subscribed. A subscription is shared by the whole team, so if someone already subscribed the channel, Tailcove says so and names them instead of adding a second one. Subscribing to every alert replaces the single-alert subscriptions of that channel. Tailcove announces each subscribe and unsubscribe in the channel.
The command and the alert's own Slack channel are one picture. If an alert already posts to this channel because it was picked with Add to Slack on the alert, /tailcove subscribe alert <name> says it is already subscribed, and /tailcove unsubscribe alert <name> stops it and empties the alert's Slack channel in Tailcove too. An alert never posts twice in the same channel. (An alert connected to Slack before this, or with a pasted webhook, is matched again once you pick its channel with Add to Slack.) In Tailcove, an alert's page shows the channels subscribed to it from Slack, and Settings → Slack lists every channel's subscriptions.
For a private channel, invite the app first (/invite @Tailcove); Tailcove tells you if it cannot post there. A Viewer can list subscriptions but not change them.
Registering the app (self-hosted or your own copy)#
Tailcove's hosted service already has the app. To run your own, create an app at api.slack.com from this manifest (replace the host), then set SLACK_APP_CLIENT_ID, SLACK_APP_CLIENT_SECRET and SLACK_APP_SIGNING_SECRET from its Basic Information page:
{
"display_information": { "name": "Tailcove" },
"features": {
"bot_user": { "display_name": "Tailcove", "always_online": true },
"slash_commands": [
{
"command": "/tailcove",
"url": "https://app.example.com/slack/commands",
"description": "Status, monitors, alerts, incidents, on-call and log search",
"usage_hint": "help | status | monitors | alerts | incidents | oncall | ack <id> | resolve <id> | search <source> <query>"
}
]
},
"oauth_config": {
"redirect_urls": ["https://app.example.com/settings/slack/callback", "https://app.example.com/settings/slack/callback/account"],
"scopes": {
"bot": ["incoming-webhook", "chat:write", "chat:write.public", "commands", "users:read", "users:read.email"],
"user": ["openid", "profile", "email"]
}
},
"settings": {
"interactivity": { "is_enabled": true, "request_url": "https://app.example.com/slack/interactivity" },
"org_deploy_enabled": false,
"socket_mode_enabled": false,
"token_rotation_enabled": false
}
}
The user scopes are for Sign in with Slack (Link your Slack account); an app created before that needs them added under OAuth & Permissions → User Token Scopes, with the second redirect URL.
Every request Slack sends is checked against the signing secret and refused if it is more than five minutes old. Until the three values are set the Connect button is off and the endpoints refuse everything.
Still stuck?
Email us and we will help you get it working.