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

Add phase tag to pod metrics #2624

Merged
merged 3 commits into from
Dec 3, 2018
Merged

Add phase tag to pod metrics #2624

merged 3 commits into from
Dec 3, 2018

Conversation

hkaj
Copy link
Member

@hkaj hkaj commented Nov 21, 2018

What does this PR do?

Add pod phase to metrics from KSM with a label join.

Motivation

requested by several users (several support tickets + #2521 + DataDog/datadog-agent#2692)

Review checklist

  • PR has a meaningful title or PR has the no-changelog label attached
  • Feature or bugfix has tests
  • Git history is clean
  • If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes

I checked the label_joins bit in our codebase, it doesn't break anything. I'm willing to re-evaluate and put it behind an option if someone thinks of something that would break. As usual, if you see something, say something.

Also:
closes #2521

@hkaj hkaj force-pushed the haissam/ksm-add-pod-phase-tag branch from 12b3375 to aa4f31e Compare November 21, 2018 15:01
@hkaj
Copy link
Member Author

hkaj commented Nov 22, 2018

This broke hostname collection, will fix asap.

@codecov-io
Copy link

codecov-io commented Nov 23, 2018

Codecov Report

Merging #2624 into master will decrease coverage by 7.53%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2624      +/-   ##
==========================================
- Coverage   83.89%   76.35%   -7.54%     
==========================================
  Files         638       49     -589     
  Lines       36323     3612   -32711     
  Branches     4425      452    -3973     
==========================================
- Hits        30472     2758   -27714     
+ Misses       4545      738    -3807     
+ Partials     1306      116    -1190

@hkaj hkaj force-pushed the haissam/ksm-add-pod-phase-tag branch from b2dd492 to d7d5136 Compare November 25, 2018 16:30
Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

Let's put kubernetes_state change in separate PR

@ofek ofek merged commit 846480f into master Dec 3, 2018
@ofek ofek deleted the haissam/ksm-add-pod-phase-tag branch December 3, 2018 00:15
@ofek ofek changed the title [kubernetes_state] add phase tag to pod metrics Improve OpenMetrics label joins Dec 3, 2018
@ofek ofek changed the title Improve OpenMetrics label joins Add phase tag to pod metrics Dec 3, 2018
@2rs2ts
Copy link

2rs2ts commented Dec 3, 2018

Thanks for this change! When will it be released?

@hkaj
Copy link
Member Author

hkaj commented Dec 4, 2018

It's going out with 6.8 which should go out next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: monitoring resource requests only for pods in the running state
4 participants