Skip to content

Quickstart

This guide gets you from zero to your first dashboard update or notification in just a few steps.

Terminal window
obsern init

This creates obsern.yaml.

Edit obsern.yaml and set at least one:

  • api.host_token and api.base_url for dashboard/API delivery
  • notify.slack.webhook_url for Slack delivery
  • notify.discord.webhook_url for Discord delivery

Minimal notification example:

run:
tags: ["default"]
tail_lines: 80
notify:
time_zone: "Asia/Tokyo"
discord:
webhook_url: ${OBSERN_DISCORD_WEBHOOK_URL}
Terminal window
obsern run sh -c "echo start && sleep 2 && echo done"
  • If a notification provider is configured, confirm that a message is posted.
  • If the API is configured, confirm that the run appears in the dashboard.
Terminal window
obsern run sh -c "echo failing && exit 1"

If a notification provider is configured, you should receive a failure notification. If the API is configured, the job should appear with a failed status in the dashboard.

Go to Configuration for full field details.