404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.137.198.0: ~ $
#!/usr/bin/python

from . import exposition
from . import gc_collector
from . import metrics
from . import metrics_core
from . import platform_collector
from . import process_collector
from . import registry

__all__ = ['Counter', 'Gauge', 'Summary', 'Histogram', 'Info', 'Enum']

CollectorRegistry = registry.CollectorRegistry
REGISTRY = registry.REGISTRY
Metric = metrics_core.Metric
Counter = metrics.Counter
Gauge = metrics.Gauge
Summary = metrics.Summary
Histogram = metrics.Histogram
Info = metrics.Info
Enum = metrics.Enum

CONTENT_TYPE_LATEST = exposition.CONTENT_TYPE_LATEST
generate_latest = exposition.generate_latest
MetricsHandler = exposition.MetricsHandler
make_wsgi_app = exposition.make_wsgi_app
try:
    # Python >3.5 only
    make_asgi_app = exposition.make_asgi_app
except:
    pass
start_http_server = exposition.start_http_server
start_wsgi_server = exposition.start_wsgi_server
write_to_textfile = exposition.write_to_textfile
push_to_gateway = exposition.push_to_gateway
pushadd_to_gateway = exposition.pushadd_to_gateway
delete_from_gateway = exposition.delete_from_gateway
instance_ip_grouping_key = exposition.instance_ip_grouping_key

ProcessCollector = process_collector.ProcessCollector
PROCESS_COLLECTOR = process_collector.PROCESS_COLLECTOR

PlatformCollector = platform_collector.PlatformCollector
PLATFORM_COLLECTOR = platform_collector.PLATFORM_COLLECTOR

GCCollector = gc_collector.GCCollector
GC_COLLECTOR = gc_collector.GC_COLLECTOR

if __name__ == '__main__':
    c = Counter('cc', 'A counter')
    c.inc()

    g = Gauge('gg', 'A gauge')
    g.set(17)

    s = Summary('ss', 'A summary', ['a', 'b'])
    s.labels('c', 'd').observe(17)

    h = Histogram('hh', 'A histogram')
    h.observe(.6)

    start_http_server(8000)
    import time

    while True:
        time.sleep(1)

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
bridge Folder 0755
openmetrics Folder 0755
twisted Folder 0755
__init__.py File 1.77 KB 0644
asgi.py File 1.16 KB 0644
context_managers.py File 1.65 KB 0644
core.py File 895 B 0644
decorator.py File 15.43 KB 0644
exposition.py File 14.92 KB 0644
gc_collector.py File 1.42 KB 0644
metrics.py File 21.66 KB 0644
metrics_core.py File 11.6 KB 0644
mmap_dict.py File 5.14 KB 0644
multiprocess.py File 6.32 KB 0644
parser.py File 7.09 KB 0644
platform_collector.py File 1.69 KB 0644
process_collector.py File 3.57 KB 0644
registry.py File 5.23 KB 0644
samples.py File 1.33 KB 0644
utils.py File 621 B 0644
values.py File 3.75 KB 0644