Skip to content

Commit

Permalink
Set StatsD configuration for the Module items
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Feb 19, 2018
1 parent 2df995c commit 9c5f9ec
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion alignak/objects/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
import warnings
from alignak.objects.item import Item, Items

from alignak.property import StringProp, ListProp
from alignak.property import StringProp, ListProp, IntegerProp, BoolProp

logger = logging.getLogger(__name__) # pylint: disable=C0103

Expand Down Expand Up @@ -86,6 +86,16 @@ class Module(Item):
# Do not manage modules having modules
# 'modules':
# ListProp(default=[''], split_on_coma=True)

# Local statsd daemon for collecting daemon metrics
'statsd_host':
StringProp(default='localhost'),
'statsd_port':
IntegerProp(default=8125),
'statsd_prefix':
StringProp(default='alignak'),
'statsd_enabled':
BoolProp(default=False)
})

macros = {}
Expand Down

0 comments on commit 9c5f9ec

Please sign in to comment.