mirror of
https://github.com/vacp2p/10ksim.git
synced 2025-02-22 11:08:28 +00:00
22 lines
423 B
Python
22 lines
423 B
Python
# Python Imports
|
|
import src.logger.logger
|
|
from kubernetes import client, config
|
|
|
|
# Project Imports
|
|
from src.metrics.scrapper import Scrapper
|
|
|
|
|
|
def main():
|
|
config.load_kube_config("your_kubeconfig.yaml")
|
|
url = "your_url"
|
|
scrape_config = "scrape.yaml"
|
|
|
|
v1 = client.CoreV1Api()
|
|
|
|
scrapper = Scrapper(url, scrape_config, "test/")
|
|
scrapper.query_and_dump_metrics()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|