Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agentdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
1
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
24e2b6aa
authored
May 15, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove hardcoded graphite hostname
parent
4c340376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
protocol.py
+5
-1
No files found.
protocol.py
View file @
24e2b6aa
...
@@ -5,6 +5,8 @@ import pickle
...
@@ -5,6 +5,8 @@ import pickle
import
logging
import
logging
import
time
import
time
import
struct
import
struct
from
os
import
getenv
from
utils
import
SerialLineReceiverBase
from
utils
import
SerialLineReceiverBase
from
agentcelery
import
agent_started
,
agent_stopped
from
agentcelery
import
agent_started
,
agent_stopped
...
@@ -51,7 +53,9 @@ class SerialLineReceiver(SerialLineReceiverBase):
...
@@ -51,7 +53,9 @@ class SerialLineReceiver(SerialLineReceiverBase):
client
=
GraphiteClientFactory
()
client
=
GraphiteClientFactory
()
client
.
protocol
.
data
=
data
client
.
protocol
.
data
=
data
client
.
protocol
.
name
=
self
.
factory
.
vm
client
.
protocol
.
name
=
self
.
factory
.
vm
reactor
.
connectTCP
(
'10.7.0.96'
,
2004
,
client
)
reactor
.
connectTCP
(
getenv
(
'GRAPHITE_HOST'
,
'127.0.0.1'
),
int
(
getenv
(
'GRAPHITE_PORT'
,
'2004'
)),
client
)
def
handle_command
(
self
,
command
,
args
):
def
handle_command
(
self
,
command
,
args
):
if
command
==
'agent_stopped'
:
if
command
==
'agent_stopped'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment