feat: scrape targets to be able to get snmp alerts from machines to prometheus #171
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: NationTech/harmony#171
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/scrape_target"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -21,6 +21,7 @@ pub struct AlertingInterpret<S: AlertSender> {
pub sender: S,
pub receivers: Vec<Box<dyn AlertReceiver<S>>>,
pub rules: Vec<Box<dyn AlertRule<S>>>,
pub scrape_target: Vec<Box<dyn ScrapeTarget<S>>>,
Should it be
scrape_targets
? as it's a vector@ -31,6 +31,7 @@ impl<T: Topology + HelmCommand + TenantManager> Score<T> for HelmPrometheusAlert
sender: KubePrometheus { config },
receivers: self.receivers.clone(),
rules: self.rules.clone(),
scrape_target: vec![],
Should we actually configure something here? Because we pass an empty list it doesn't seem used.
I will make this an Option<Vec> since it is not used in this score