This file contains hidden or 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
import types | |
from functools import partial | |
from prometheus_client import * | |
# Dummy objects to get this to work | |
def resolve_current_machine_name(): | |
import socket | |
return socket.getaddrinfo(socket.gethostname(), 0, 0, 0, 0, socket.AI_CANONNAME)[0][3] | |
config = {'generic':{'production': True}} |