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