10ksim/main.py

22 lines
423 B
Python
Raw Normal View History

# Python Imports
2024-02-22 18:32:47 +01:00
import src.logger.logger
from kubernetes import client, config
# Project Imports
from src.metrics.scrapper import Scrapper
def main():
2024-02-21 19:22:13 +01:00
config.load_kube_config("your_kubeconfig.yaml")
url = "your_url"
scrape_config = "scrape.yaml"
v1 = client.CoreV1Api()
scrapper = Scrapper(url, scrape_config, "test/")
2024-02-14 11:12:25 +01:00
scrapper.query_and_dump_metrics()
2023-09-13 16:28:00 +02:00
if __name__ == '__main__':
main()