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

nfd-gc: add metrics #1407

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented Oct 9, 2023

Implements three metrics for nfd-gc:

  • nfd_gc_build_info: version information of nfd-gc.
  • nfd_gc_objects_deleted_total: total number of NodeFeature and NodeResourceTopology objects deleted by nfd-gc.
  • nfd_gc_object_delete_failures_total: number of errors encountered when deleting NodeFeature and NodeResourceTopology objects.

Implements three metrics for nfd-gc:

- nfd_gc_build_info: version information of nfd-gc.
- nfd_gc_objects_deleted_total: total number of NodeFeature and
  NodeResourceTopology objects deleted by nfd-gc.
- nfd_gc_object_delete_failures_total: number of errors encountered when
  deleting NodeFeature and NodeResourceTopology objects.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 9, 2023
@netlify
Copy link

netlify bot commented Oct 9, 2023

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit 98c3b07
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/652402bda15fc80008f45037
😎 Deploy Preview https://deploy-preview-1407--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marquiz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 9, 2023
@marquiz
Copy link
Contributor Author

marquiz commented Oct 9, 2023

/assign @PiotrProkop @ArangoGutierrez

@PiotrProkop
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 10, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 4a3bca2373ea65ff989210211d1c690800aa156e

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #1407 (98c3b07) into master (44b26e3) will decrease coverage by 0.03%.
The diff coverage is 21.05%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1407      +/-   ##
==========================================
- Coverage   30.35%   30.33%   -0.03%     
==========================================
  Files          57       58       +1     
  Lines        7462     7481      +19     
==========================================
+ Hits         2265     2269       +4     
- Misses       4951     4965      +14     
- Partials      246      247       +1     
Files Coverage Δ
cmd/nfd-gc/main.go 39.13% <100.00%> (+2.76%) ⬆️
pkg/nfd-gc/metrics.go 0.00% <0.00%> (ø)
pkg/nfd-gc/nfd-gc.go 32.85% <13.33%> (-2.35%) ⬇️

@k8s-ci-robot k8s-ci-robot merged commit c927bf5 into kubernetes-sigs:master Oct 10, 2023
14 checks passed
@marquiz marquiz deleted the devel/gc-metrics branch October 10, 2023 07:22
@marquiz marquiz mentioned this pull request Dec 20, 2023
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants