SIGHUP Distribution Monitoring
Overview
This module is designed to give you full control and visibility over your cluster operations. Metrics from the cluster and the applications are collected and clean analytics are offered via a visualization platform, Grafana.
The centerpiece of this module is the prometheus-operator, which offers the
easy deployment of the following as controllers:
- Prometheus: An open-source monitoring and alerting toolkit for cloud-native applications
- Alertmanager: Manages alerts sent by the Prometheus server and route them through receiver integrations such as email, Slack, or PagerDuty
- ServiceMonitor: Declaratively specifies how groups of services should be monitored, by automatically generating Prometheus scrape configuration based on the definition
Since the export of certain metrics can be heavily cloud-provider specific, we provide a bunch of cloud-provider specific configurations. The setups we currently support include:
- Google Kubernetes Engine (GKE)
- Azure Kubernetes Service (AKS)
- Elastic Kubernetes Service (EKS)
- on-premises or self-managed cloud clusters
Module's repository: https://github.com/sighupio/module-monitoring
Introduction: Monitoring in Kubernetes
Monitoring is a crucial aspect of managing modern applications and infrastructure. It involves collecting, analyzing, and visualizing metrics and logs to ensure systems operate efficiently, detect potential issues, and maintain performance. In a distributed environment, monitoring helps track resource utilization, identify bottlenecks, and gain insights into system behavior over time, enabling proactive issue resolution and informed decision-making.
In Kubernetes, monitoring is especially important due to the complexity and dynamic nature of containerized workloads. Applications are composed of multiple microservices, often scaled across nodes, which can make performance monitoring and issue detection challenging.
Metrics
Metrics are quantitative data points that provide insights into the performance, health, and behavior of the system, its workloads, and the underlying infrastructure. Metrics are typically time-series data, meaning they are measured and recorded over time, allowing for trend analysis, anomaly detection, and capacity planning.
Key aspects of monitoring in Kubernetes include:
- Cluster Metrics: Monitoring CPU, memory, and network usage across nodes and pods.
- Application Metrics: Tracking application-specific metrics like request rates, latencies, and error counts.
- Health and Availability: Ensuring workloads are running as expected, with proper liveness and readiness probes.
- Event Tracking: Logging Kubernetes events to understand state changes and troubleshoot failures.
Key characteristics of metrics are:
- Granularity: Metrics can vary in granularity, from high-level summaries (e.g., average CPU usage per node) to fine-grained details (e.g., per-container memory usage).
- Real-Time Collection: Metrics are typically collected and made available in near real-time, allowing for responsive monitoring.
- Retention: Metrics are stored for varying periods, depending on the need to analyze trends or historical data.
In Kubernetes, metrics are often exposed by components and applications in a standardized format, such as Prometheus metrics (plain-text key-value pairs), making them easily ingestible by monitoring tools.
These metrics form the foundation of monitoring, alerting, and visualization systems, enabling teams to maintain optimal cluster performance, troubleshoot issues, and plan for future scaling.
SD: Monitoring module
In SD clusters, the following components are always installed:
- Prometheus Operator
kube-proxy-metricskube-state-metricsnode-exporterx509-exporterblackbox-exporter
On top of that, you can choose three different configurations using the type parameter:
prometheus: will install a preconfigured Prometheus instance, Alertmanager, a set of alert rules, Grafana and a series of dashboards to view the collected metrics, and more.mimir: install all the components of theprometheusalternative, plus Grafana Mimir to provide long-term storage of metrics using either a dedicated instance of MinIO or another S3-compatible bucket.prometheusAgent: will install an instance of Prometheus in Agent mode (no alerting, no queries, no storage). Useful when having a centralized (remote) Prometheus where to ship the metrics and not storing them locally in the cluster.
You can find all the available parameters to configure this module in the provider's reference schemas.
You will need to define a StorageClass inside your cluster to be able to install these components. If you don't have one, furyctl will let you know that it skipped the installation of some components. If a default StorageClass becomes available later in the same furyctl apply, furyctl applies the distribution phase again to install them.
The other pages of this section tell you more:
- Configure monitoring: the
spec.distribution.modules.monitoringoptions. - Components: Prometheus, the exporters, Alertmanager, Mimir and Grafana.
- Alerts: the alert rules that the module installs.
- Monitor your application: how to monitor your workloads.
Read More
You can find out more info about monitoring in Kubernetes on the following links: