Monitoringยถ

Monitoring architectureยถ

Our monitoring architecture looks like this:

        flowchart TB
    admin(["`๐Ÿ‘ค **System admin**`"])

    subgraph alerts [Alerts]
        direction TB
        mattermost["`๐Ÿ’ฌ **Mattermost**
        Team chat`"]
        pushover["`๐Ÿ“ฑ **Pushover**
        Push notifications`"]
    end

    glancelot["`๐Ÿšฆ **Glancelot**
    *dockerised, central*
    Service monitoring`"]

    grafana["`๐Ÿ“Š **Grafana**
    *dockerised, central*
    Dashboard & alert manager`"]

    prometheus["`๐Ÿงฎ **Prometheus**
    *dockerised, central*
    Metrics collector`"]

    loki["`๐Ÿ“„ **Loki**
    *dockerised, central*
    Log aggregator`"]

    alloy["`๐Ÿงฒ **Alloy**
    *dockerised, per-host*
    Log & metrics collector`"]

    node_exporter["`๐Ÿ–ฅ **Node Exporter**
    *native, per-host*
    Machine metrics exporter`"]

    admin -. runs queries .-> grafana
    prometheus -- scrapes metrics --> glancelot
    grafana -- sends alerts --> alerts
    grafana -. PromQL ..-> prometheus
    grafana -. LogQL ..-> loki
    prometheus -- scrapes metrics --> node_exporter
    prometheus <-- sends metrics --> alloy
    loki <-- sends logs --> alloy

    classDef notification fill:#62f69b,stroke:#2e9e5b,color:#000
    classDef docker fill:#acd2e0,stroke:#4f8aa3,color:#000
    classDef native fill:#f4b4b9,stroke:#b5666d,color:#000

    class mattermost,pushover notification
    class glancelot,grafana,prometheus,loki,alloy docker
    class node_exporter native

    %% Alloy sends to Prometheus & Loki, but sits on the per-host level, so only show the start arrows.
    linkStyle 6,7 marker-end:none
    

Monitoring alertsยถ

Monitoring alerts of the Service monitoring & Infrastructure monitoring will be sent to the Monitoring channel in Mattermost, and via Pushover.

Hint

Alerts are deactivated / silenced during the ๐Ÿ—“ Maintenance windows.

Links for the Pushover subscriptions can be found in the Grafana monitoring alerts & MoMonitoring monitoring alerts chapters.

Service monitoringยถ

Weโ€™re using the Glancelot watchtower to check whether all of our services are up. Its metrics are scraped by Prometheus, and Grafana alerts on them.

Important

The watchtower is also public, but only shows the public checks to anonymous users.

Infrastructure monitoringยถ

Grafanaยถ

https://glancelot.management.confirm.ch/badges/confirm/infrastructure/grafana/status.svg

Weโ€™re using Grafana OSS as dashboard & alert manager to:

  • Access Prometheus metrics via PromQL

  • Access Loki logs via LogQL

  • Visualise metrics & logs

  • Use it as alert manager to send notifications to Mattermost

Prometheusยถ

https://glancelot.management.confirm.ch/badges/confirm/infrastructure/prometheus/status.svg

Weโ€™re using Prometheus as metrics collector to:

  • Scrape OS, and ๐Ÿณ Docker metrics

  • Scrape application metrics

  • Persist those metrics

  • Query, aggregate, and correlate metrics via Grafana

Lokiยถ

https://glancelot.management.confirm.ch/badges/confirm/infrastructure/loki/status.svg

Weโ€™re using Grafana Loki as log receiver to:

  • Retrieve OS, and ๐Ÿณ Docker logs

  • Retrieve application logs

  • Persist those logs

  • Query, aggregate, and correlate logs via Grafana

Alloyยถ

https://glancelot.management.confirm.ch/badges/confirm/infrastructure/alloy/status.svg

Weโ€™re using Grafana Alloy collectors to:

Node Exporterยถ

https://glancelot.management.confirm.ch/badges/confirm/infrastructure/ansible/projects/confirm/status.svg?group=Node%20Exporters

Weโ€™re using Node Exporters to:

Note

The deployment, and all documentation for the Node Exporter can be found in the Ansible node_exporter role.