Files
10ksim/analysis/scrape.py
PearsonWhite 2be0c1f05a Reorganize repo and update documentation (#124)
- Move old experiment shell scripts into deployment-utilities/experiment_scripts/

- Gather all waku kubernetes services in deployment-utilities/kubernetes-utilities/waku/zerotesting-services

- Rename ./experiments/ -> ./deployments/

- Move waku cleanup.sh with other shell scripts in
  deployment-utilities/experiment_scripts/waku

- Move analysis files to <root>/analysis/

- Add README.md to root folder

- Cleanup unused experiments/regression_tests/

- Update READMEs
2025-08-12 12:58:25 -04:00

25 lines
582 B
Python

# Python Imports
# Project Imports
import src.logger.logger
from src.metrics.scrapper import Scrapper
from src.plotting.metrics_plotter import MetricsPlotter
from src.utils import file_utils
def main():
url = "https://metrics.riff.cc/select/0/prometheus/api/v1/"
scrape_config = "scrape.yaml"
scrapper = Scrapper("rubi.yaml", url, scrape_config)
scrapper.query_and_dump_metrics()
config_dict = file_utils.read_yaml_file("scrape.yaml")
plotter = MetricsPlotter(config_dict["plotting"])
plotter.create_plots()
if __name__ == '__main__':
main()