Mercurial > code > home > repos > victoriametrics
comparison migration/tasks.py @ 68:c5e98d891638
remove 'next' prefix
author | drewp@bigasterisk.com |
---|---|
date | Fri, 03 May 2024 11:32:24 -0700 |
parents | 84a4c4cca4a5 |
children |
comparison
equal
deleted
inserted
replaced
67:adde35eb4773 | 68:c5e98d891638 |
---|---|
83 ctx.run(f'curl http://{svc}/m/api/v1/export/native?match={m} | gzip -c > export/{m}.native.gz') | 83 ctx.run(f'curl http://{svc}/m/api/v1/export/native?match={m} | gzip -c > export/{m}.native.gz') |
84 | 84 |
85 | 85 |
86 @task | 86 @task |
87 def ingestForeverMetrics(ctx): | 87 def ingestForeverMetrics(ctx): |
88 svc = ctx.run('khost next-victoriametrics-forever-vminsert').stdout | 88 svc = ctx.run('khost victoriametrics-forever-vminsert').stdout |
89 for p in Path('export').glob('*.native.gz'): | 89 for p in Path('export').glob('*.native.gz'): |
90 print(f'importing {p}') | 90 print(f'importing {p}') |
91 ctx.run(f'zcat {p} | curl -s http://{svc}/m/next/forever/vminsert/insert/0/prometheus/api/v1/import/native --data-binary @-') | 91 ctx.run(f'zcat {p} | curl -s http://{svc}/m/forever/vminsert/insert/0/prometheus/api/v1/import/native --data-binary @-') |