Skip to content

Commit

Permalink
make check executable
Browse files Browse the repository at this point in the history
  • Loading branch information
smithclay committed Aug 5, 2024
1 parent 5596080 commit f719d6d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sensu-plugin/bin/otel-metric-collector.rb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
#
# Collects OpenTelemetry metrics from a collector Prometheus exporter
# and converts to Carbon format for the MID server to process.
Expand All @@ -8,6 +9,15 @@
# - The script will exit with a status code of 2 if there is a failure
# - The script will output a message to STDERR if there is a failure
#

require 'sensu-plugin/check/cli'
require 'net/http'

DEFAULT_HOST = 'localhost'
DEFAULT_PORT = 9090
DEFAULT_TIMEOUT = 10
DEFAULT_PATH = '/metrics'

class CollectOTelMetrics < Sensu::Plugin::Check::CLI
option :timeout,
long: '--timeout TIMEOUT',
Expand Down

0 comments on commit f719d6d

Please sign in to comment.