-
Notifications
You must be signed in to change notification settings - Fork 9
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
Added a step describing how to include the new integration files into… #28
Open
otisg
wants to merge
1
commit into
master
Choose a base branch
from
otisg-patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Hm, few problems...
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. I can rephrase that to make that clear.
Right. I think if I rephrase for 1. I'll also automatically clarify this.
We can indeed add info about that, too, but shouldn't that be elsewhere and not in a doc for adding new integrations? e.g. in how-to, under something like "How do I add or change metrics for an existing integration?"
Isn't the (obvious) answer there "Don't submit the PR with anything non-generic, anything that is private or specific to you and your setup"?
To me it makes sense to add here the info about what to do with a new integration to actually put it to use after initially preparing the integration yamls. What I think we can do is add a pointer to "how do I add a new integration" to the how-to doc, along with entries for things you mentioned under 3. WDYT?
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.
That part is obvious, but people may not know how to distribute this config internally and how that will clash with future spm-client upgrades (if they use it).
Sounds good.
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 the answer to that what I wrote, though - (re)build your own agent?
OR, if you are using spm-client package, but the yamls in that collectors dir (and restart the agent?)?
What is the answers, so I can add that?
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.
It isn't, at least not with our scripts since they build it with public repo integrations (and here we have something private that user doesn't commit). We'd probably have to explain that they want to modify build script to include their own specific yml configs or just manually distribute their own version of
/opt/spm/spm-monitor/collectors
to all their machines separately from agent installation. For users using spm-client it is the same story.Yeah, if same file gets changed in public repo, user will end up with conflict which he'll have to resolve on his own. So we should suggest if changes are needed in any of existing public yml configs, they probably make most sense to be done on public repo and they should issue a PR with said change. If it is something private, users should probably create new yml file which doesn't have to be published in public repo, but then they have to take care of what we described in previous question.