fix: modified directory names to be in line with alert functions and deployment environments
All checks were successful
Run Check Script / check (pull_request) Successful in 1m43s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m43s
This commit is contained in:
parent
c21f3084dc
commit
e16f8fa82e
@ -43,14 +43,14 @@ async fn main() {
|
|||||||
// K8sAnywhereTopology as it is the most automatic one that enables you to easily deploy
|
// K8sAnywhereTopology as it is the most automatic one that enables you to easily deploy
|
||||||
// locally, to development environment from a CI, to staging, and to production with settings
|
// locally, to development environment from a CI, to staging, and to production with settings
|
||||||
// that automatically adapt to each environment grade.
|
// that automatically adapt to each environment grade.
|
||||||
let maestro = Maestro::<K8sAnywhereTopology>::initialize(
|
let mut maestro = Maestro::<K8sAnywhereTopology>::initialize(
|
||||||
Inventory::autoload(),
|
Inventory::autoload(),
|
||||||
K8sAnywhereTopology::from_env(),
|
K8sAnywhereTopology::from_env(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
// maestro.register_all(vec![Box::new(lamp_stack)]);
|
maestro.register_all(vec![Box::new(lamp_stack)]);
|
||||||
// Here we bootstrap the CLI, this gives some nice features if you need them
|
// Here we bootstrap the CLI, this gives some nice features if you need them
|
||||||
harmony_cli::init(maestro, None).await.unwrap();
|
harmony_cli::init(maestro, None).await.unwrap();
|
||||||
}
|
}
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
use harmony::{
|
use harmony::{
|
||||||
inventory::Inventory,
|
inventory::Inventory,
|
||||||
maestro::Maestro,
|
maestro::Maestro,
|
||||||
modules::monitoring::{
|
modules::{
|
||||||
alert_channel::discord_alert_channel::DiscordWebhook,
|
monitoring::{
|
||||||
alert_rule::prometheus_alert_rule::{AlertManagerRuleGroup, PrometheusAlertRule},
|
alert_channel::discord_alert_channel::DiscordWebhook,
|
||||||
kube_prometheus::{
|
alert_rule::prometheus_alert_rule::AlertManagerRuleGroup,
|
||||||
alerts::{
|
kube_prometheus::helm_prometheus_alert_score::HelmPrometheusAlertingScore,
|
||||||
dell_server::{
|
},
|
||||||
alert_global_storage_status_critical,
|
prometheus::alerts::{
|
||||||
alert_global_storage_status_non_recoverable,
|
infra::dell_server::{
|
||||||
global_storage_status_degraded_non_critical,
|
alert_global_storage_status_critical, alert_global_storage_status_non_recoverable,
|
||||||
},
|
global_storage_status_degraded_non_critical,
|
||||||
pvc::high_pvc_fill_rate_over_two_days,
|
|
||||||
},
|
},
|
||||||
helm_prometheus_alert_score::HelmPrometheusAlertingScore,
|
k8s::pvc::high_pvc_fill_rate_over_two_days,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
topology::{K8sAnywhereTopology, Url},
|
topology::{K8sAnywhereTopology, Url},
|
||||||
|
@ -12,5 +12,6 @@ pub mod load_balancer;
|
|||||||
pub mod monitoring;
|
pub mod monitoring;
|
||||||
pub mod okd;
|
pub mod okd;
|
||||||
pub mod opnsense;
|
pub mod opnsense;
|
||||||
|
pub mod prometheus;
|
||||||
pub mod tenant;
|
pub mod tenant;
|
||||||
pub mod tftp;
|
pub mod tftp;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
pub mod alerts;
|
|
||||||
pub mod helm;
|
pub mod helm;
|
||||||
pub mod helm_prometheus_alert_score;
|
pub mod helm_prometheus_alert_score;
|
||||||
pub mod prometheus;
|
pub mod prometheus;
|
||||||
|
@ -1,2 +1 @@
|
|||||||
pub mod dell_server;
|
pub mod dell_server;
|
||||||
pub mod pvc;
|
|
1
harmony/src/modules/prometheus/alerts/k8s/mod.rs
Normal file
1
harmony/src/modules/prometheus/alerts/k8s/mod.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
pub mod pvc;
|
2
harmony/src/modules/prometheus/alerts/mod.rs
Normal file
2
harmony/src/modules/prometheus/alerts/mod.rs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pub mod infra;
|
||||||
|
pub mod k8s;
|
1
harmony/src/modules/prometheus/mod.rs
Normal file
1
harmony/src/modules/prometheus/mod.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
pub mod alerts;
|
Loading…
Reference in New Issue
Block a user