Statsd
This commit is contained in:
parent
0256986dda
commit
3e247185e6
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
import socket
|
||||
import statsd
|
||||
|
||||
class Cli:
|
||||
class Statsd:
|
||||
def __init__(self):
|
||||
self.servername = socket.gethostname()
|
||||
self.c = statsd.StatsClient('grafana2.keks.cloud', 8125)
|
||||
|
|
4
run.py
4
run.py
|
@ -1,5 +1,6 @@
|
|||
import time
|
||||
from exporter.cli import Cli
|
||||
from exporter.statsd import Statsd
|
||||
from monitors.load import Load
|
||||
from monitors.hdd import HDD
|
||||
from monitors.processes import Processes
|
||||
|
@ -8,7 +9,8 @@ from monitors.cpu import CPU
|
|||
from monitors.user import User
|
||||
from monitors.network import Network
|
||||
|
||||
exporter = Cli()
|
||||
#exporter = Cli()
|
||||
exporter = Statsd()
|
||||
|
||||
checks = []
|
||||
checks.append(Load(exporter))
|
||||
|
|
Loading…
Reference in a new issue