Class: Maze::Plugins::DatadogMetricsPlugin
- Inherits:
-
Object
- Object
- Maze::Plugins::DatadogMetricsPlugin
- Defined in:
- lib/maze/plugins/datadog_metrics_plugin.rb
Overview
Enables metrics to be reported to Datadog via a StatsD proxy
Class Method Summary collapse
-
.send_gauge(metric, value, tags = []) ⇒ Object
Sends a gauge metric to Datadog.
-
.send_increment(metric, tags = []) ⇒ Object
Sends an increment metric to Datadog.
Class Method Details
.send_gauge(metric, value, tags = []) ⇒ Object
Sends a gauge metric to Datadog
16 17 18 19 |
# File 'lib/maze/plugins/datadog_metrics_plugin.rb', line 16 def send_gauge(metric, value, =[]) return unless logging? stats_dog.gauge(metric, value, tags: ) end |
.send_increment(metric, tags = []) ⇒ Object
Sends an increment metric to Datadog
25 26 27 28 |
# File 'lib/maze/plugins/datadog_metrics_plugin.rb', line 25 def send_increment(metric, =[]) return unless logging? stats_dog.increment(metric, tags: ) end |