Skip to content

Commit

Permalink
Send metric unit along with metric value
Browse files Browse the repository at this point in the history
  • Loading branch information
nisanthchunduru committed Oct 26, 2016
1 parent ed9fce1 commit 64bffa5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions newrelic_plugin_agent/plugins/postfix.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ class Postfix(base.Plugin):

def poll(self):
try:
self.add_gauge_value("Postfix/DeferredQueueSize", None, self.queue_size("deferred"))
self.add_gauge_value("Postfix/BounceQueueSize", None, self.queue_size("bounce"))
self.add_gauge_value("Postfix/HoldQueueSize", None, self.queue_size("hold"))
self.add_gauge_value("Postfix/CorruptQueueSize", None, self.queue_size("corrupt"))
self.add_gauge_value("Postfix/IncomingQueueSize", None, self.queue_size("incoming"))
self.add_gauge_value("Postfix/ActiveQueueSize", None, self.queue_size("active"))
self.add_gauge_value("Postfix/DeferredQueueSize", "messages", self.queue_size("deferred"))
self.add_gauge_value("Postfix/BounceQueueSize", "messages", self.queue_size("bounce"))
self.add_gauge_value("Postfix/HoldQueueSize", "messages", self.queue_size("hold"))
self.add_gauge_value("Postfix/CorruptQueueSize", "messages", self.queue_size("corrupt"))
self.add_gauge_value("Postfix/IncomingQueueSize", "messages", self.queue_size("incoming"))
self.add_gauge_value("Postfix/ActiveQueueSize", "messages", self.queue_size("active"))

self.finish()
except ShellCommandFailed as e:
Expand Down

0 comments on commit 64bffa5

Please sign in to comment.