CN-UPB / tng-sdk-benchmark

5GTANGO SDK tool for fully automated VNF and network service benchmarking and profiling.
https://5gtango.eu
Apache License 2.0
2 stars 6 forks source link

WIP:: Prometheus config generator #45

Closed avimehenwal closed 4 years ago

avimehenwal commented 4 years ago

Sample output

{'global': {'evaluation_interval': '1m',
            'scrape_interval': '2s'},
 'scrape_configs': [{'job_name': 'vnf1',
                     'static_configs': [{'targets': '192.169.1.10'}]},
                    {'job_name': '2-vnfs',
                     'static_configs': [{'targets': ['192.169.1.12',
                                                     '192.169.1.11']}]},
                    {'job_name': 'openstack',
                     'openstack_sd_configs': [{'identity_endpoint': 'http://fgcn-backflip9.cs.uni-paderborn.de/identity',
                                               'password': 'admin',
                                               'project_name': 'admin',
                                               'region': 'RegionOne',
                                               'role': 'instance',
                                               'username': 'admin'}],
                     'relabel_configs': [{'action': 'keep',
                                          'regex': 'ACTIVE',
                                          'source_labels': ['__meta_openstack_instance_status']}]}]}

Feel free to suggest IMPROVEMENTS :1st_place_medal: