Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(coderd): export metric indicating each experiment's status#12657

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
dannykopping merged 5 commits intocoder:mainfromdannykopping:dk/experiments-prom
Mar 19, 2024

Conversation

dannykopping
Copy link
Contributor

Relates to#12070

Exposes a metric indicating which experiments are active/inactive.
I chose to expose the experiments that are not active as well because this will allow operators to get the same view in metrics as what we expose in the frontend.

Signed-off-by: Danny Kopping <danny@coder.com>
@dannykoppingdannykopping changed the titlefeat(prometheusmetrics): export metric indicating each experiment's statusfeat(coderd): export metric indicating each experiment's statusMar 19, 2024
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Feel free to raise the linter limit a bit to avoid the gocognit issue. This is best adressed in a follow up PR but isn’t critical.

Except for a few nits looks good otherwise.

Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM!

Signed-off-by: Danny Kopping <danny@coder.com>
var active codersdk.Experiments
for _, exp := range options.DeploymentValues.Experiments.Value() {
active = append(active, codersdk.Experiment(exp))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is fine, but optionally to keep it cleaner, you could move this tocodersdk, something likecodersdk.ExperimentsFromString(Value()...).

@dannykoppingdannykopping merged commit9cfd5ba intocoder:mainMar 19, 2024
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 19, 2024
@dannykoppingdannykopping deleted the dk/experiments-prom branchMarch 19, 2024 12:19
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@mtojekmtojekmtojek approved these changes

Assignees

@dannykoppingdannykopping

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@dannykopping@mafredri@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp