-
Notifications
You must be signed in to change notification settings - Fork 215
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
chore: add APP_INSIGHTS_ID to image build #1266
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Alex Castilio dos Santos <[email protected]>
fd1f6a8
to
e175158
Compare
e175158
to
585155c
Compare
Signed-off-by: Alex Castilio dos Santos <[email protected]>
585155c
to
b82c68c
Compare
@@ -35,5 +37,10 @@ func GetConfig(cfgFileName string) (*OperatorConfig, error) { | |||
return nil, fmt.Errorf("error unmarshalling config: %w", err) | |||
} | |||
|
|||
// If unset, default telemetry interval to 5 minutes. | |||
if cfg.TelemetryInterval == 0 { | |||
cfg.TelemetryInterval = 5 * time.Minute |
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.
let's keep to 15min, and since this is a configmap change we'll need to notify a few people
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.
time to add CODEOWNERS?
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 think it would be better if a zero value TelemetryInterval
means no telemetry/the previous behavior. That keeps any changed behavior intentionally opt-in, backcompat, and obvious
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.
@matmerr currently it is 15 min for the daemonset heartbeat. This config is for operator, which is 5 min. No change in default values:
https://github.com/microsoft/retina/pull/1266/files#diff-3707c2e5d521fb2df733befba56a5cf6044f7a0d08e8a2ffd1b8ce2a2351731dL59
@rbtr currently a different key in the yaml will enable telemetry:
enableTelemetry: false |
Do you think enableTelemetry
key should be removed and keep only the telemetryInterval
? (disable telemetry if time is set to 0)
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.
@huntergregory is there a specific reason operator heartbeat is so frequent at 5min?
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 think it would be better if a zero value TelemetryInterval means no telemetry/the previous behavior. That keeps any changed behavior intentionally opt-in, backcompat, and obvious
@rbtr in this specific case I think reading telemetryInterval
as 0 may require a user to jump to docs. I could see it being interpreted as disabled and don't send telemetry at all, or send telemetry in a continuous stream with a 0 second delay. I kinda prefer keeping the whole telemetry functionality behind the explicit enableTelemetry
bool
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.
if there's a separate enable flag that bypasses this entirely, on objection. let's just make sure that if this is unset it defaults to the previous behavior
@@ -9,3 +9,4 @@ metricsIntervalDuration: "10s" | |||
# used to export telemetry to AppInsights | |||
telemetryEnabled: true | |||
dataAggregationLevel: "low" | |||
telemetryInterval: "15m" |
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.
we can be careful, but is it possible to add a test around the behavior if someone just uses 15
instead of 15m
?
Description
deploy/standard/manifests/controller/helm/retina/values.yaml
Related Issue
If this pull request is related to any issue, please mention it here. Additionally, make sure that the issue is assigned to you before submitting this pull request.
Checklist
git commit -S -s ...
). See this documentation on signing commits.Screenshots (if applicable) or Testing Completed
Manual test was also done to validate that the configuration was propagated from helm chart
values.yaml
file to both operator and agent. Value set was printed to log:Additional Notes
Add any additional notes or context about the pull request here.
Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.