-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add monitoring for FluentD plugins #108
Changes from all commits
5f15b92
b58186b
7e52a28
674a277
9b37713
313946d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
require_relative '../../types_pb' | ||
require_relative '../../remote_pb' | ||
|
||
WriteRequest = Prometheus::WriteRequest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you really need this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, otherwise our |
||
|
||
module Fluent | ||
module Plugin | ||
# fluentd parser plugin to parse Prometheus metrics into timeseries events. | ||
|
@@ -14,7 +16,7 @@ class ProtobufParser < Fluent::Plugin::Parser | |
|
||
def parse(text) | ||
inflated = Snappy.inflate(text) | ||
decoded = Prometheus::WriteRequest.decode(inflated) | ||
decoded = WriteRequest.decode(inflated) | ||
log.trace "protobuf::parse - in: (#{text.bytesize}/#{inflated.bytesize}), out: #{decoded.timeseries.length}" | ||
record = {} | ||
record[KEY_TIMESERIES] = decoded.timeseries | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed for now, but we should look at using named ports for the targetPort so we dont have to update the Pod and Service each time.