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
[[inputs.execd]] | |
command = ["python", "-u", "./python-execd.py", "localhost"] | |
data_format = "influx" | |
signal = "STDIN" | |
[[outputs.file]] | |
files = ["stdout"] | |
use_batch_format = false | |
data_format = "influx" |
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 logging | |
import os | |
import urllib | |
import socket | |
import sys | |
import wsgiref | |
import prometheus_client | |
from prometheus_client.core import GaugeMetricFamily, InfoMetricFamily |
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
#!/usr/bin/env python3 | |
import argparse | |
import logging | |
import os | |
from urllib.parse import parse_qs | |
import time | |
import wsgiref.simple_server | |
import wsgiref.util | |
from wsgiref.simple_server import ServerHandler |
OlderNewer