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

Cannot read the timestamp field from Custom Resource metadata with the new customresource metrics capability #1765

Closed
dontan001 opened this issue Jun 27, 2022 · 2 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@dontan001
Copy link
Contributor

dontan001 commented Jun 27, 2022

What would you like to be added:
It could be either a bug or feature request, assume it is a feature request for now

We would like to expose the creationTimestamp of Custom Resource with the capability from #1710 , then we could visualize it via Grafana annoation.

During the testing, the major config looks like below

          - --custom-resource-state-config
          -  |
              spec:
                resources:
                  - groupVersionKind:
                      group: scheduling.volcano.sh
                      version: "v1beta1"
                      kind: PodGroup
                    labelsFromPath:
                      name: [metadata, name]
                      namespace: [metadata, namespace]
                    metrics:
                    - name: creation_timestamp
                      help: "Creation time of PodGroup"
                      each:
                        path: [metadata, creationTimestamp]

However we cannot find any metrics in the backend though custom resources exist

# HELP kube_scheduling_volcano_sh_v1beta1_PodGroup_creation_timestamp Creation time of PodGroup
# TYPE kube_scheduling_volcano_sh_v1beta1_PodGroup_creation_timestamp gauge
EMPTY HERE

It seems the timestamps field is not supported yet, could anyone help clarify further?

Why is this needed:
The ability to expose the creationTimestamp of Custom Resource with the capability from #1710

Describe the solution you'd like

Additional context

@dontan001 dontan001 added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 27, 2022
@dontan001 dontan001 changed the title Cannot read the timestamp from Custom Resource metadata Cannot read the timestamp field from Custom Resource metadata with the new customresource metrics capability Jun 27, 2022
@dontan001
Copy link
Contributor Author

Please have a look when get chance @mrueg @dgrisonnet @fpetkovski, thanks a lot

@dontan001
Copy link
Contributor Author

Thanks guys and closed this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant