Metrics

The MediaWiki charm exposes workload metrics in the OpenMetrics format through the metrics-endpoint relation, which is part of the COS observability integration. Once the charm is integrated with a metrics consumer such as prometheus-k8s, the metrics described below are scraped and can be queried directly or visualized through the bundled Grafana dashboard.

See also

For more information about the Canonical Observability Stack and its components, refer to the COS documentation.

Apache metrics

The apache-exporter service runs continuously and collects metrics from the Apache /server-status endpoint, which is otherwise only reachable from within the same Kubernetes pod. The exporter publishes them under the apache_* prefix (for example: apache_accesses_total, apache_workers, apache_scoreboard, apache_sent_kilobytes_total, apache_cpuload).

For the full list of exported metrics and their meanings, refer to the Apache exporter documentation.

Git-sync metrics

  • Source: git-sync

  • Container: git-sync

  • Service: git-sync

The git-sync sidecar synchronizes extensions and skins from a remote Git repository. It is started with the --http-metrics flag so that it exposes its metrics under the git_sync_* prefix (for example: git_sync_count_total and git_sync_duration_seconds), and reports the number and duration of synchronization operations by status.

For more information about the sidecar and its --http-metrics flag, refer to the git-sync documentation.