# Path: collectors/lib/utils.py
# PY3 = sys.version_info[0] > 2
# USER = "nobody"
# def drop_privileges(user=USER):
# def is_sockfile(path):
# def err(msg):
#     def is_numeric(value):
#     def is_numeric(value):


import json
import subprocess
import sys
import time
import re
from collectors.lib import utils


interval = 10 # seconds

# If you would rather use the timestamp returned by varnishstat instead of a
# local timestamp, then change this value to "True"
use_varnishstat_timestamp = False

# This prefix will be prepended to all metric names before being sent
metric_prefix = "varnish"

# Add any additional tags you would like to include into this array as strings
#
# tags = ["production=false", "cloud=amazon"]
tags = []

# Collect all metrics
vstats = "all"

# Collect metrics a la carte
# vstats = frozenset([
#   "client_conn",
#   "client_drop",
#   "client_req",
#   "cache_hit",
#   "cache_hitpass",
#   "cache_miss"
# ])

def main():

# Path: collectors/lib/utils.py
# PY3 = sys.version_info[0] > 2
# USER = "nobody"
# def drop_privileges(user=USER):
# def is_sockfile(path):
# def err(msg):
#     def is_numeric(value):
#     def is_numeric(value):


# Path: collectors/0/varnishstat.py
import json
import subprocess
import sys
import time
import re
from collectors.lib import utils



interval = 10 # seconds

# If you would rather use the timestamp returned by varnishstat instead of a
# local timestamp, then change this value to "True"
use_varnishstat_timestamp = False

# This prefix will be prepended to all metric names before being sent
metric_prefix = "varnish"

# Add any additional tags you would like to include into this array as strings
#
# tags = ["production=false", "cloud=amazon"]
tags = []

# Collect all metrics
vstats = "all"

# Collect metrics a la carte
# vstats = frozenset([
#   "client_conn",
#   "client_drop",
#   "client_req",
#   "cache_hit",
#   "cache_hitpass",
#   "cache_miss"
# ])

def main():

 utils.drop_privileges()