-
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
base: v3
Are you sure you want to change the base?
Changes from 1 commit
d01d2da
ca36e37
eb9dc4e
342e4c0
75c0854
e009b06
fe76cec
3dd7cb4
3831afd
27895b3
dad3e75
64d37ca
d1c530e
3c358f0
658fc92
58db609
b3d65c7
8f44fc6
c329c2a
1b924cd
098d50e
5811d1b
42f5b86
69ed781
bccea8d
80226ed
c6dd6e7
963a998
4e09994
04514be
64a5e7a
fb125cb
f503841
fe7a7fe
3949531
0a05b27
8632984
a0a72b8
69fd130
afefbea
1c01e3a
c6246b9
c84fc3f
089c328
0eb4514
85c6bbd
9205dd8
7eada45
630db88
1f34478
dd25717
5660c37
6d421b1
1648cba
150c7a8
41c11c2
8e7f5cf
cfedb14
4901944
dcb5913
427cfea
6217582
f392e4b
0ffbccd
f495b6d
b4eb5be
579a597
9ffdc58
8d6a739
2fb962a
e5bd119
e7bffb5
14041b9
0b08fc1
59184b8
7bd223b
a1f36ae
f5d9dbc
92445aa
7af5d3a
b500a7b
e209d54
05e15a0
70a078f
f0c4b6a
fdefc8c
d8bd0bc
0994458
9f8167f
6bd86cc
d82da03
6f87420
f5a9fd7
b3dc97b
518b33c
5ec76de
61f05f9
5d8ea95
d707ce9
b34943b
9f20473
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 |
|---|---|---|
|
|
@@ -101,6 +101,7 @@ type AddAgentMysqldExporterCommand struct { | |
| PushMetrics bool `help:"Enables push metrics model flow, it will be sent to the server by an agent"` | ||
| ExposeExporter bool `help:"Expose the address of the exporter publicly on 0.0.0.0"` | ||
| DisableCollectors []string `help:"Comma-separated list of collector names to exclude from exporter"` | ||
| Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"` | ||
|
|
||
| flags.LogLevelNoFatalFlags | ||
| } | ||
|
|
@@ -150,6 +151,7 @@ func (cmd *AddAgentMysqldExporterCommand) RunCmd() (commands.Result, error) { | |
| PushMetrics: cmd.PushMetrics, | ||
| ExposeExporter: cmd.ExposeExporter, | ||
| DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), | ||
| Timeout: cmd.Timeout, | ||
| LogLevel: cmd.LogLevelNoFatalFlags.LogLevel.EnumValue(), | ||
|
Contributor
Author
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. Lint. Here and all other places.
Member
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. While they are functionally equivalent, that must have been done for documentation purpose. What was the lint error?
Contributor
Author
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. Error: admin/commands/inventory/add_agent_postgres_exporter.go:121:28: QF1008: could remove embedded field "LogLevelNoFatalFlags" from selector (staticcheck) |
||
| }, | ||
| }, | ||
|
|
||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
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.
here and at the rest of commands
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 makes sense to use *time.Duration? It will want string in AddAgentParams on API level anyway.