Skip to content
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

metrics: add namespace label to allocation metrics #5847

Merged
merged 4 commits into from
Jun 18, 2019

Conversation

cgbaker
Copy link
Contributor

@cgbaker cgbaker commented Jun 17, 2019

also, add them to job summary metrics.

the resulting changes (current, in both open-source and enterprise) are:

resolves #5554 by adding the namespace label to all nomad.client.allocs.* metrics. in addition to not discriminating by namespace, there was a bug where identical jobs in different namespaces would cause one metric to "shadow" another one.

similarly, added a namespace label to all nomad.nomad.job_summary.* metrics.

Copy link
Contributor

@notnoop notnoop left a comment

Choose a reason for hiding this comment

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

The changes look good overall but have few questions/suggestions inlined. Also, the failing static check in https://travis-ci.org/hashicorp/nomad/jobs/546949777 is relevant.

client/allocrunner/taskrunner/task_runner.go Outdated Show resolved Hide resolved
client/allocrunner/taskrunner/task_runner_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@notnoop notnoop left a comment

Choose a reason for hiding this comment

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

lgtm - thanks!

client/allocrunner/taskrunner/task_runner_test.go Outdated Show resolved Hide resolved
@cgbaker cgbaker merged commit 2eacf19 into master Jun 18, 2019
@notnoop notnoop deleted the f-5554-metrics-namespace-label branch June 22, 2019 06:11
@github-actions
Copy link

github-actions bot commented Feb 8, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] - add namespace label to nomad.client.allocs.*
2 participants