comparison next/tasks.py @ 64:def1aa2bfa3f

more targets polish. reorg code into next/
author drewp@bigasterisk.com
date Thu, 02 May 2024 23:06:31 -0700
parents 8134cd480817
children 429bfd62e6ba
comparison
equal deleted inserted replaced
63:84a4c4cca4a5 64:def1aa2bfa3f
24 # all per-node metrics shall be 'recent' (oops, not smartctl!) 24 # all per-node metrics shall be 'recent' (oops, not smartctl!)
25 map: dict[str, object] = { 25 map: dict[str, object] = {
26 'rules': alert_rules.allRules(ctx), 26 'rules': alert_rules.allRules(ctx),
27 } 27 }
28 top = Path('build/scrape_config') 28 top = Path('build/scrape_config')
29 for p in top.glob('**/*.yaml'): 29 for p in top.glob('*.yaml'):
30 map[str(p.relative_to(top))] = scrapeConfig(p) 30 map[str(p.relative_to(top))] = scrapeConfig(p)
31 replaceCmap("next-victoriametrics-config", map) 31 replaceCmap("next-victoriametrics-config", map)
32 refreshPodCmaps(firstPodName("app=next-victoriametrics-forever-vmagent")) 32 refreshPodCmaps(firstPodName("app=next-victoriametrics-forever-vmagent"))
33 refreshPodCmaps(firstPodName("app=next-victoriametrics-recent-vmagent")) 33 refreshPodCmaps(firstPodName("app=next-victoriametrics-recent-vmagent"))