betterstack
БесплатноБез исполняемых скриптовНе проверенBetter Stack (formerly Better Uptime + Logtail) is an observability platform that combines uptime monitoring, log management, incident response with on-call…
Об этом скилле
Better Stack — Uptime, Logs, and Incident Management
Overview
Better Stack (formerly Better Uptime + Logtail) is the observability platform combining uptime monitoring, log management, incident response, and status pages. It helps developers set up comprehensive monitoring with alerting, on-call schedules, and public status pages.
Monitors, heartbeats, incidents, escalation policies and status pages are also managed through a JSON:API-style REST API — the reference documents it at https://incidents.betterstack.com, while older examples and the Terraform provider use the earlier host uptime.betterstack.com — and through the BetterStackHQ/better-uptime Terraform provider. Requests use Authorization: Bearer $TOKEN. Tokens come from Better Stack → API tokens: a team-scoped Uptime API token, or a global token (then pass team_name when creating resources). Logs use a separate per-source token and ingesting host.
Instructions
Uptime Monitoring
# main.tf — the provider reads the token from BETTERUPTIME_API_TOKEN
provider "betteruptime" {}
resource "betteruptime_monitor" "api" {
url = "https://api.northwind-shop.com/health"
pronounceable_name = "Northwind API"
monitor_type = "expected_status_code"
expected_status_codes = [200]
check_frequency = 30 # seconds
confirmation_period = 60 # wait 60 s of failures before opening an incident
regions = ["us", "eu", "as"] # allowed: us, eu, as, au
ssl_expiration = 30 # alert 30 days before the certificate expires
policy_id = betteruptime_policy.default.id
request_headers = [{
name = "Authorization"
value = "Bearer ${var.health_check_token}" # declare as a sensitive variable
}]
}
resource "betteruptime_monitor" "database" {
url = "db.northwind-shop.com"
monitor_type = "tcp"
port = "5432"
check_frequency = 60
policy_id = betteruptime_policy.default.id
}
Monitor types: status (any 2XX), expected_status_code, keyword, keyword_absence, ping, tcp, udp, smtp, pop, imap, dns, playwright. There is no separate SSL monitor type: ssl_expiration and domain_expiration are attributes of an HTTP monitor (valid values 1, 2, 3, 7, 14, 30, 60 days). Maintenance windows are set per monitor with maintenance_days, maintenance_from, maintenance_to, maintenance_timezone.
The same monitor through the API is POST https://incidents.betterstack.com/api/v2/monitors with these attributes as a JSON body (see Example 1).
Log Management (Logtail)
Create a source under Sources in the Better Stack dashboard; every source has its own source token and ingesting host. Both are required — the client must be pointed at the source's own host.
// Send structured logs to Better Stack
import { Logtail } from "@logtail/node";
const logtail = new Logtail(process.env.BETTERSTACK_SOURCE_TOKEN!, {
endpoint: `https://${process.env.BETTERSTACK_INGESTING_HOST}`,
});
logtail.info("Order processed", {
orderId: "ord_8f3k2",
userId: "usr_456",
amount: 99.99,
duration_ms: 245,
});
logtail.error("Payment failed", {
orderId: "ord_9d1m7",
stripe_error_code: "card_declined",
retryable: true,
});
await logtail.flush(); // logs are batched; flush before the process exits
// Pino integration (Pino 7+)
import pino from "pino";
const logger = pino(
pino.transport({
target: "@logtail/pino",
options: {
sourceToken: process.env.BETTERSTACK_SOURCE_TOKEN,
options: { endpoint: `https://${process.env.BETTERSTACK_INGESTING_HOST}` },
},
})
);
logger.info({ orderId: "ord_8f3k2", userId: "usr_456" }, "Order created");
Any language can post JSON to the ingesting host directly:
curl -X POST "https://$BETTERSTACK_INGESTING_HOST" \
-H "Authorization: Bearer $BETTERSTACK_SOURCE_TOKEN" \
-H "Content-Type: application/json" \
-d '[{"message":"deploy finished","service":"checkout","dt":"2026-10-01 07:03:30+00:00"}]'
A 202 means accepted; 402 quota or spending limit reached, 403 invalid source token, 406 unparsable body, 413 body over 10 MiB. dt overrides the event time; without it the time of receipt is used.
On-Call and Escalation
An escalation policy is a list of steps; each escalation step notifies its members after wait_before seconds unless the incident was acknowledged.
data "betteruptime_severity" "high" {
name = "High Severity" # default severity present in every account
}
resource "betteruptime_policy" "default" {
name = "Production escalation"
repeat_count = 3 # repeat the whole policy if nobody acknowledges
repeat_delay = 1800
steps { # Step 1: whoever is on call, immediately
type = "escalation"
wait_before = 0
urgency_id = data.betteruptime_severity.high.id
step_members
Установить betterstack в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл betterstack?
Better Stack (formerly Better Uptime + Logtail) is an observability platform that combines uptime monitoring, log management, incident response with on-call escalation, and status pages. Use when a user asks to set up uptime monitors or heartbeat monitoring for cron jobs, create escalation policies, send logs with @logtail/node or the Pino transport, manage Better Stack through its API or Terraform provider, or publish status page updates.
Как установить скилл betterstack?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл betterstack запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic