Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 scrapeFailureLogLevel config to smartagent prometheus receivers #3260
Add scrapeFailureLogLevel config to smartagent prometheus receivers #3260
Changes from 5 commits
afdb362
13f8a82
ed481fc
6d558b8
c31b42b
f75d500
505ae6a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is there any README with config explanations and examples? I know this is a smartagent receiver so we may not be as open with usage, but if we're adding a config option it makes sense to me at least document it somewhere as well. I'm up for discussion though, I don't have as much context for this as others.
It looks like it may be
internal/signafx-agent/pkg/monitors/prometheusexporter/metadata.yaml
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.
I was wondering the same about updating documentation and examples. Still looking around. I don't think the documentation from the SA repo has been migrated to this repo.
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 docs
and the docs directory weren't ported from the agent project since the go dependencies were the initial concern. Taking some of their doc generation scripts and embedding them as generate directives for<monitor-pkg>/README.md
creation* would be my vote (in unrelated changes).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.
Would support the
make docs
option, I can create a gh ticket and supporting materials for this if it is not already captured in another effort.Would support a similar approach where possible in the chart repo for docs automation.
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.
Does it make sense for this be moved to Validate() and have the set there to not discard its validation behavior?
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.
Good point, done
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.
nit, Instead of calling twice I think you could add an unexpected
logLevel
logrus level field that's set in Validate()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.
Updated this, let me know if you wanted something else.