Skip to content

Instantly share code, notes, and snippets.

View leifmadsen's full-sized avatar
🏠
Working from home

Leif Madsen leifmadsen

🏠
Working from home
  • Red Hat
  • Caledon, ON, Canada
  • 11:35 (UTC -05:00)
  • LinkedIn in/leifmadsen
View GitHub Profile
# 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
package 'build-essential' {}.run_action(:install)