This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://medium.com/@aneeshputtur/export-data-from-prometheus-to-csv-b19689d780aa | |
import csv | |
import requests | |
import sys | |
def GetMetrixNames(url): | |
response = requests.get('{0}/api/v1/label/__name__/values'.format(url)) | |
results = response.json()['data'] | |
#Return metrix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package 'build-essential' {}.run_action(:install) |