-
Notifications
You must be signed in to change notification settings - Fork 142
Nr 370484 fb metrics (#2033) #2034
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
base: master
Are you sure you want to change the base?
Conversation
* feat: Updated Fb metrics by default * feat: Updated test cases * feat:Updated host details * feat: Updated test cases and scrape interval
Pull Request Test Coverage Report for Build 14462832288Details
💛 - Coveralls |
@@ -185,7 +186,8 @@ func isBasicFeatureFlag(flag string) bool { | |||
return flag == FlagProtocolV4 || | |||
flag == FlagFullProcess || | |||
flag == FlagDmRegisterDeprecated || | |||
flag == FlagFullInventoryDeletion | |||
flag == FlagFullInventoryDeletion || | |||
flag == FlagFluentBitMetrics |
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.
How does this feature flag work? At what stage its being used? During installation?
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.
Right now this works on start of agent , so on every FF change we need to restart the Agent. Let me check if there is a way to not restart
pkg/integrations/v4/logs/cfg.go
Outdated
MetricsPath: "/api/v2/metrics/prometheus", | ||
ScrapeInterval: "60s", |
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.
make them constant.
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.
- Please provide details about how changes were tested.
- Any changes in default logging.yml?
- What changes will be required to get it working with super agent?
- Here option to turn off metrics would be more important as there is no way to update this.
- Have you looked at health check options. Can this be useful in future ?https://docs.fluentbit.io/manual/administration/monitoring#health-check-for-fluent-bit
pkg/integrations/v4/logs/cfg.go
Outdated
@@ -282,6 +317,8 @@ func NewFBConf(loggingCfgs LogsCfg, logFwdCfg *config.LogForward, entityGUID, ho | |||
var fbOSConfig FBOSConfig | |||
addOSDependantConfig(&fbOSConfig) | |||
|
|||
enableMetrics := isMetricsEnabled(ff) |
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.
Will user have option to turn it off? Do we have PM alignment on this if we are not offering the ability to turn it off?
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.
Yes. we has a alignment with PM
cc: @nr-rkallempudi
Log_Level {{ .LogLevel }} | ||
{{- end }} | ||
{{- if .Daemon }} | ||
Daemon {{ .Daemon }} | ||
{{- end }} | ||
{{- if .ParsersFile }} | ||
Parsers_File {{ .ParsersFile }} | ||
{{- end }} | ||
{{- if .HTTPServer }} | ||
HTTP_Server {{ .HTTPServer }} | ||
{{- end }} | ||
{{- if .HTTPListen }} | ||
HTTP_Listen {{ .HTTPListen }} | ||
{{- end }} | ||
{{- if .HTTPPort }} | ||
HTTP_Port {{ .HTTPPort }} | ||
{{- end }} |
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.
from where we are getting these values?
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.
sorry?
// Newrelic OUTPUT plugin will send all the collected logs to Vortex | ||
fb.Output = newNROutput(logFwdCfg) | ||
// Including Prometheus scrapper input plugin by default to pull Fluent bit metrics based on ff | ||
includePrometheusScrapperInputPlugin(&fb, enableMetrics) |
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.
Are we planning to send all metrics? What are the cost implications here?
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.
Yes. We are planning to send all the metrics. Will share the Cost analysis doc
@maya-jha 1. Please provide details about how changes were tested. |
This PR includes Fluentbit metrics forwarder in the default IA based on feature flag : "fluent_bit_metrics"
For more details please refer jira: https://new-relic.atlassian.net/browse/NR-370484