Mercurial > code > home > repos > victoriametrics
changeset 15:2c37fab420da
rm dead code
author | drewp@bigasterisk.com |
---|---|
date | Fri, 23 Jun 2023 23:53:13 -0700 |
parents | 35cf43082d83 |
children | 73d23fdfee8e |
files | tasks.py |
diffstat | 1 files changed, 0 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/tasks.py Fri Jun 23 23:53:01 2023 -0700 +++ b/tasks.py Fri Jun 23 23:53:13 2023 -0700 @@ -40,37 +40,6 @@ time.sleep(0) -def httpsCertProber(): - domains = [] - for line in open( - '/my/doc/ssl/letsencrypt/run.py'): # moved to cert-manager - if line.startswith('update_certs('): - domains.append(line.split("'")[1]) - relabel = { - 'relabel_configs': [{ - 'source_labels': ['__address__'], - 'target_label': '__param_target' - }, { - 'source_labels': ['__param_target'], - 'target_label': 'instance' - }, { - 'target_label': '__address__', - 'replacement': 'prober' - }] - } - return yaml.dump( # Note that an included file must skip the scrape_configs toplevel key and just include the list. - [{ - 'job_name': 'prober', - 'scrape_interval': '24h', - 'metrics_path': '/probe', - 'params': { - 'module': ['https'] - }, - 'static_configs': [{ - 'targets': domains - }], - } | relabel]) - def hostsExpectedOnline(ctx): return ctx.run(