-
Notifications
You must be signed in to change notification settings - Fork 201
PMM-12832 Timeouts for exporters. #5134
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
Open
JiriCtvrtka
wants to merge
101
commits into
v3
Choose a base branch
from
PMM-12832-exporter-timeouts
base: v3
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
Show all changes
101 commits
Select commit
Hold shift + click to select a range
d01d2da
PMM-12832 Rough implementation.
JiriCtvrtka ca36e37
PMM-12832 Fix.
JiriCtvrtka eb9dc4e
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka 342e4c0
PMM-12832 More exporters, refactor.
JiriCtvrtka 75c0854
Merge remote-tracking branch 'origin/PMM-12832-exporter-timeouts' int…
JiriCtvrtka e009b06
PMM-12832 Another parts.
JiriCtvrtka fe76cec
PMM-12832 Mongo change, list.
JiriCtvrtka 3dd7cb4
PMM-12832 Changes, refactor.
JiriCtvrtka 3831afd
PMM-12832 Refactor of agent model.
JiriCtvrtka 27895b3
PMM-12832 Lint.
JiriCtvrtka dad3e75
PMM-12832 Inventory timeout for all.
JiriCtvrtka 64d37ca
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka d1c530e
PMM-12832 Add change func after merge.
JiriCtvrtka 3c358f0
PMM-12832 Fix for now.
JiriCtvrtka 658fc92
PMM-12832 Changes.
JiriCtvrtka 58db609
PMM-12832 Fix tests.
JiriCtvrtka b3d65c7
PMM-12832 Changes.
JiriCtvrtka 8f44fc6
PMM-12832 Changes.
JiriCtvrtka c329c2a
PMM-12832 Changes.
JiriCtvrtka 1b924cd
PMM-12832 Changes.
JiriCtvrtka 098d50e
PMM-12832 Change for RTA.
JiriCtvrtka 5811d1b
PMM-12832 Fix.
JiriCtvrtka 42f5b86
PMM-12832 Fix.
JiriCtvrtka 69ed781
PMM-12832 Fix.
JiriCtvrtka bccea8d
PMM-12832 Refactor.
JiriCtvrtka 80226ed
PMM-12832 Remove not related types.
JiriCtvrtka c6dd6e7
PMM-12832 Changes.
JiriCtvrtka 963a998
PMM-12832 Remote, valkey, etc.
JiriCtvrtka 4e09994
PMM-12832 Fix.
JiriCtvrtka 04514be
PMM-12832 Lint.
JiriCtvrtka 64a5e7a
PMM-12832 Lint.
JiriCtvrtka fb125cb
PMM-12832 New tests.
JiriCtvrtka f503841
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka fe7a7fe
PMM-12832 Better comment.
JiriCtvrtka 3949531
PMM-12832 Fix for missed parts.
JiriCtvrtka 0a05b27
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka 8632984
PMM-12832 Format.
JiriCtvrtka a0a72b8
Merge remote-tracking branch 'origin/PMM-12832-exporter-timeouts' int…
JiriCtvrtka 69fd130
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka afefbea
PMM-12832 Valkey refactor.
JiriCtvrtka 1c01e3a
Merge remote-tracking branch 'origin/PMM-12832-exporter-timeouts' int…
JiriCtvrtka c6246b9
PMM-12832 Requested changes.
JiriCtvrtka c84fc3f
PMM-12832 RDS fix.
JiriCtvrtka 089c328
PMM-12832 Correct timeout flag for Valkey/Redis.
JiriCtvrtka 0eb4514
PMM-12832 Lint.
JiriCtvrtka 85c6bbd
Merge branch 'v3' into PMM-12832-exporter-timeouts
ademidoff 9205dd8
PMM-12832 Fix for Mongo in DSN helpers.
JiriCtvrtka 7eada45
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka 630db88
PMM-12832 EffectiveDialTimeout refactor based on Max suggestion.
JiriCtvrtka 1f34478
PMM-12832 Increase exporters default timeout based on Alex suggestion.
JiriCtvrtka dd25717
PMM-12832 Adjust test for new exporters default timeouts.
JiriCtvrtka 5660c37
PMM-12832 Fix tests for new timeouts of exporters.
JiriCtvrtka 6d421b1
PMM-12832 Small refactor.
JiriCtvrtka 1648cba
PMM-12832 Rename to connection timeout.
JiriCtvrtka 150c7a8
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka 41c11c2
PMM-12832 Fix rest of timeouts in tests.
JiriCtvrtka 8e7f5cf
PMM-12832 Lint.
JiriCtvrtka cfedb14
PMM-12832 Lint.
JiriCtvrtka 4901944
PMM-12832 Better comment.
JiriCtvrtka dcb5913
PMM-12832 Optional connection timeout in change.
JiriCtvrtka 427cfea
PMM-12832 Connection timeout optional in change.
JiriCtvrtka 6217582
PMM-12832 Another changes to change and copilot suggestions.
JiriCtvrtka f392e4b
PMM-12832 Fully optional connection timeout.
JiriCtvrtka 0ffbccd
PMM-12832 FIx test.
JiriCtvrtka f495b6d
PMM-12832 Better coverage.
JiriCtvrtka b4eb5be
PMM-12832 Fix prometheus scrape interval for tiny intervals.
JiriCtvrtka 579a597
PMM-12832 Cap for connection timeout.
JiriCtvrtka 9ffdc58
PMM-12832 Management no longer return connection interval when not set.
JiriCtvrtka 8d6a739
PMM-12832 Validation for connection interval.
JiriCtvrtka 2fb962a
PMM-12832 Gen fix.
JiriCtvrtka e5bd119
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka e7bffb5
PMM-12832 Fix mongo test.
JiriCtvrtka 14041b9
PMM-12832 Update comments/name from timeout to connection timeout.
JiriCtvrtka 0b08fc1
PMM-12832 Copilot suggestion.
JiriCtvrtka 59184b8
PMM-12832 Rounding for MySQL timeouts.
JiriCtvrtka 7bd223b
PMM-12832 Add missed connection timeout in ChangeNodeExporter.
JiriCtvrtka a1f36ae
PMM-12832 Add missed connection timeout in ChangeExternalExporter.
JiriCtvrtka f5d9dbc
PMM-12832 RDS missed places.
JiriCtvrtka 92445aa
PMM-12832 Fix Azure missed places.
JiriCtvrtka 7af5d3a
PMM-12832 Format.
JiriCtvrtka b500a7b
PMM-12832 Test for 0 and nil timeouts.
JiriCtvrtka e209d54
PMM-12832 Fix concern from Copilot.
JiriCtvrtka 05e15a0
PMM-12832 Typo.
JiriCtvrtka 70a078f
PMM-12832 Missed places after RDS discovery.
JiriCtvrtka f0c4b6a
PMM-12832 Format.
JiriCtvrtka fdefc8c
PMM-12832 Use variable instead hardcoded value.
JiriCtvrtka d8bd0bc
Update admin/commands/inventory/change_agent_helpers.go
JiriCtvrtka 0994458
PMM-12832 Update comment.
JiriCtvrtka 9f8167f
PMM-12832 List only supported exporters type in switch case.
JiriCtvrtka 6bd86cc
PMM-12832 More explaining comments for Copilot.
JiriCtvrtka d82da03
PMM-12832 Round timeout value for PG.
JiriCtvrtka 6f87420
PMM-12832 Lint.
JiriCtvrtka f5a9fd7
PMM-12832 Better comment.
JiriCtvrtka b3dc97b
PMM-12832 Shared method for Node, External, Azure and RDS exporter.
JiriCtvrtka 518b33c
PMM-12832 More precise description for connection timeout flag.
JiriCtvrtka 5ec76de
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka 61f05f9
PMM-12832 Flags from string to duration.
JiriCtvrtka 5d8ea95
PMM-12832 Duration helper moved to utils.
JiriCtvrtka d707ce9
PMM-12832 All creates has connection timeouts passed as pointers.
JiriCtvrtka b34943b
PMM-12832 Use generic method for pointer.
JiriCtvrtka 9f20473
PMM-12832 Remove unnecessary checks.
JiriCtvrtka 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 hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // Copyright (C) 2023 Percona LLC | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| package commands | ||
|
|
||
| import ( | ||
| "time" | ||
|
|
||
| "github.com/AlekSi/pointer" | ||
| ) | ||
|
|
||
| // DurationString returns the string representation of a duration flag. | ||
| func DurationString(value *time.Duration) *string { | ||
| if value == nil { | ||
| return nil | ||
| } | ||
|
|
||
| return pointer.ToString(value.String()) | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Lint. Here and all other places.
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.
While they are functionally equivalent, that must have been done for documentation purpose.
What was the lint error?
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.
Error: admin/commands/inventory/add_agent_postgres_exporter.go:121:28: QF1008: could remove embedded field "LogLevelNoFatalFlags" from selector (staticcheck)
LogLevel: cmd.LogLevelNoFatalFlags.LogLevel.EnumValue(),