Skip to content
Castreon
Monitoring & server

Metrics and Grafana

Updated 03 Oct 2026

Castreon publishes Prometheus metrics at the server's /metrics address: the state and health of each channel, bitrate, clients, restarts, DVB signal and errors, server load, the version and the license expiry date. It comes with a ready-made Grafana dashboard.

Setup

Open Settings → Monitoring (Grafana).

1. Prometheus

  1. Click Copy the fragment and add it to your Prometheus configuration file (prometheus.yml), under scrape_configs.
  2. Add the Prometheus server address to Allowed addresses (also in Settings) — /metrics goes through the same check as the streams.
  3. Reload Prometheus. Within a few seconds, the Castreon server appears as an active target.

2. Grafana

  1. Click Download the Grafana dashboard.
  2. In Grafana: Dashboards → New → Import, upload the downloaded file and choose the Prometheus data source.

The dashboard shows the server, the channels and the DVB sources. Several Castreon servers can be followed in the same dashboard.

Alerts on your phone or by email

Castreon itself does not send notifications outside the panel. For alerts by phone, email, Telegram or Slack, use Alertmanager (Prometheus) or Grafana alerts on top of the Castreon metrics. A few useful rules:

  • a channel that has been unhealthy for more than a few minutes;
  • DVB continuity errors above a threshold;
  • the license expires in less than 7 days (the license expiry metric);
  • CPU or memory above 90%.

Security

The metrics contain the channel names and the number of clients. Do not leave /metrics open: restrict it with Allowed addresses to your Prometheus server.

Privacy

Cookies & local storage

Strictly necessary cookies are always active. Analytics and marketing use Google services and only start if you accept them — until then nothing is sent to Google. You can withdraw your consent here at any time.

Strictly necessary

Without them, sign-in, forms and your chosen language don’t work. They don’t require consent (§ 25(2) no. 2 TDDDG).

Always active
Name Purpose Duration Type
castreon-session Keeps your session: sign-in and chosen language 2 hours, renewed on every visit Cookie
XSRF-TOKEN Protects forms against forged requests 2 hours, renewed on every visit Cookie
remember_web_… Only if you tick “Remember me” at sign-in Until you sign out, max. 400 days Cookie
__cf_bm Cloudflare: tells visitors and bots apart, only when traffic is being checked 30 minutes Cookie · Cloudflare
castreon:consent Remembers your cookie choice 12 months Local storage
theme Customer account appearance: light, dark or system Until you change it Local storage

Analytics

Google Analytics 4 (Google Ireland Ltd.): which pages are visited, where visits come from and on which type of device — with pseudonymous identifiers, without storing your IP address. Helps us improve the website.

Name Purpose Duration Type
_ga Google Analytics: recognises the visitor (pseudonymous ID) 13 months Cookie · Google Analytics
_ga_VHWQRPHPEF Google Analytics: keeps the state of the visit 13 months Cookie · Google Analytics

Marketing

Google Ads (Google Ireland Ltd.): measures whether visits from Google ads lead to a trial or a plan, and allows Castreon ads to be shown on other websites (remarketing).

Name Purpose Duration Type
_gcl_au, _gcl_aw Google Ads: links the visit to the ad click (conversions) 90 days Cookie · Google Ads
IDE, test_cookie Google Ads: remarketing and ad measurement, on Google domains (doubleclick.net) Up to 13 months Cookie · Google (third party)