wip: initial layout
This commit is contained in:
parent
40cd765019
commit
6c145f1100
@ -7,8 +7,6 @@ use crate::{
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct MonitoringAlertingStackScore {
|
||||
monitoring: HelmChartScore,
|
||||
alerting: HelmChartScore,
|
||||
alert_manager: HelmChartScore,
|
||||
}
|
||||
|
||||
impl<T: Topology> Score<T> for MonitoringAlertingStackScore {
|
||||
@ -18,6 +16,6 @@ impl<T: Topology> Score<T> for MonitoringAlertingStackScore {
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
format!("Monitoring: {}\n, Alerting: {}\n, Alert Manager: {}\n", self.monitoring, self.alerting, self.alert_manager)
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
@ -1,19 +0,0 @@
|
||||
use std::str::FromStr;
|
||||
|
||||
use non_blank_string_rs::NonBlankString;
|
||||
|
||||
use crate::modules::helm::chart::HelmChartScore;
|
||||
|
||||
|
||||
pub fn grafana_score(ns: &str) -> HelmChartScore {
|
||||
HelmChartScore {
|
||||
namespace: Some(NonBlankString::from_str(ns).unwrap()),
|
||||
release_name: NonBlankString::from_str("es").unwrap(),
|
||||
chart_name: NonBlankString::from_str(
|
||||
"oci://registry-1.docker.io/bitnamicharts/grafana",
|
||||
)
|
||||
.unwrap(),
|
||||
chart_version: None,
|
||||
values_overrides: None,
|
||||
}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
|
||||
use std::str::FromStr;
|
||||
|
||||
use non_blank_string_rs::NonBlankString;
|
||||
@ -5,12 +6,13 @@ use non_blank_string_rs::NonBlankString;
|
||||
use crate::modules::helm::chart::HelmChartScore;
|
||||
|
||||
|
||||
pub fn elasticsearch_score(ns: &str) -> HelmChartScore {
|
||||
pub fn kube_prometheus_score(ns: &str) -> HelmChartScore {
|
||||
HelmChartScore {
|
||||
namespace: Some(NonBlankString::from_str(ns).unwrap()),
|
||||
release_name: NonBlankString::from_str("es").unwrap(),
|
||||
chart_name: NonBlankString::from_str(
|
||||
todo()!
|
||||
todo!() //use kube prometheus chart which includes grafana, prometheus, alert
|
||||
//manager, etc
|
||||
)
|
||||
.unwrap(),
|
||||
chart_version: None,
|
@ -1,3 +1 @@
|
||||
mod grafana;
|
||||
mod prometheus;
|
||||
mod prometheus_alert_manager;
|
||||
mod kube_prometheus;
|
||||
|
@ -1,20 +0,0 @@
|
||||
use std::str::FromStr;
|
||||
|
||||
use non_blank_string_rs::NonBlankString;
|
||||
|
||||
use crate::modules::helm::chart::HelmChartScore;
|
||||
|
||||
|
||||
pub fn elasticsearch_score(ns: &str) -> HelmChartScore {
|
||||
HelmChartScore {
|
||||
namespace: Some(NonBlankString::from_str(ns).unwrap()),
|
||||
release_name: NonBlankString::from_str("es").unwrap(),
|
||||
chart_name: NonBlankString::from_str(
|
||||
todo()!
|
||||
)
|
||||
.unwrap(),
|
||||
chart_version: None,
|
||||
values_overrides: None,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user