feat: add observability tooling for Flashbox images #93
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive observability stack using Prometheus for system and container monitoring, along with dynamic configuration and firewall rules to support secure metrics collection and export. The changes include package additions, new service definitions, Prometheus configuration and recording rules, as well as dynamic and environment-aware firewall and config scripts for both L1 and L2 environments.
Observability and Monitoring Integration
mkosi.conf), enabling metrics collection and templated configuration generation.prometheus,prometheus-node-exporter, andprocess-exporterto manage the lifecycle of these monitoring components.prometheus.yml.tmpl) supporting scrape configs, remote write endpoints, and dynamic relabeling, as well as a process exporter config and recording rules for aggregated metrics.Dynamic Configuration and Firewall Support
Other System Integration
searcher-firewall.serviceto require and wait forfetch-config.service, ensuring configuration is loaded before applying firewall rules.Most Important Changes
Observability/Monitoring Stack
mkosi.conf,prometheus.service,node-exporter.service,process-exporter.service).prometheus.yml.tmpl,process-exporter.yml,recording_rules.yml).Dynamic Configuration
dynamic-config.sh).Firewall Integration
firewall-config).Systemd/Service Coordination
searcher-firewall.serviceto depend onfetch-config.service, ensuring correct configuration order at boot.