fluent / fluent-plugin-prometheus_pushgateway Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
prometheus-client 0.9.0 still uses URI.escape
but this method had been removed since Ruby 3.0:
irb> require 'uri'
=> false
irb> URI.escape("http://localhost:24224/")
(irb):2:in `<main>': undefined method `escape' for URI:Module (NoMethodError)
from ~/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/irb-1.3.5/exe/irb:11:in `<top (required)>'
from ~/.rbenv/versions/3.0.1/bin/irb:23:in `load'
from ~/.rbenv/versions/3.0.1/bin/irb:23:in `<main>'
irb> RUBY_VERSION
=> "3.0.1"
We should update dependent prometheus client to be Ruby 3.0 workable version.
But I'm not sure that the latest prometheus client has enough API to be working well with this plugin.
This plugin can not use in fluentd 1.15.2 with prometheus-client-4.0.0. Could you have the plan to support newer fluend version? The error message as below, thanks a lot.
/fluentd/vendor/bundle/ruby/3.1.0/gems/prometheus-client-4.0.0/lib/prometheus/client/push.rb:31:in `initialize': wrong number of arguments (given 3, expected 0; required keyword: job) (ArgumentError)
from /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-promtheus_pushgateway-0.1.0/lib/fluent/plugin/out_prometheus_pushgateway.rb:72:in `new'
from /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-promtheus_pushgateway-0.1.0/lib/fluent/plugin/out_prometheus_pushgateway.rb:72:in `configure'
The fluent-plugin-prometheus
already supports Prometheus directly. There's no need for this to exist.
This plugin goes against Prometheus best practices. It probably shouldn't be used.
At a minimum, it would be good to warn users not to use this plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.