Sha256: 7abaeff8f6e1fa68150bc8d1829d0e2f44c806b4b0be9daa87059a3069edc19f

Contents?: true

Size: 596 Bytes

Versions: 2

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'
require 'fluent/plugin/in_prometheus_monitor'
require 'fluent/test/driver/input'

describe Fluent::Plugin::PrometheusMonitorInput do
  MONITOR_CONFIG = %[
  @type prometheus_monitor
  <labels>
    host ${hostname}
    foo bar
    no_effect1 $.foo.bar
    no_effect2 $[0][1]
  </labels>
]

  let(:config) { MONITOR_CONFIG }
  let(:port) { 24231 }
  let(:driver) { Fluent::Test::Driver::Input.new(Fluent::Plugin::PrometheusMonitorInput).configure(config) }

  describe '#configure' do
    it 'does not raise error' do
      expect{driver}.not_to raise_error
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent-plugin-prometheus-1.3.0 spec/fluent/plugin/in_prometheus_monitor_spec.rb
fluent-plugin-prometheus-1.2.1 spec/fluent/plugin/in_prometheus_monitor_spec.rb