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

describe/implement for kube_managedresource_uid metric #20

Open
haarchri opened this issue Jan 8, 2024 · 0 comments
Open

describe/implement for kube_managedresource_uid metric #20

haarchri opened this issue Jan 8, 2024 · 0 comments
Labels
bug Something isn't working needs-epic-link Needs a link to an epic needs-points-label Needs a story point label needs-project Needs a project

Comments

@haarchri
Copy link
Member

haarchri commented Jan 8, 2024

What happened?

we using here kube_managedresource_uid metric

"expr": "sum(kube_managedresource_uid{namespace=\"$namespace\"}) by (customresource_group, customresource_kind, customresource_version)",
please add a description - that these metric is created via customresourcestate-metrics: https://github.com/kubernetes/kube-state-metrics/blob/5da24c250f342751981a7e4bd33cee3fd5d718cb/docs/customresourcestate-metrics.md#info

one example can be found here:
kubernetes/kube-state-metrics#2015

spec:
  resources:
    - metricNamePrefix: kube_managedresource
      groupVersionKind:
        group: acm.aws.upbound.io
        version: v1beta1
        kind: Certificate
      commonLabels: {}
      labelsFromPath: {}
      metrics:
        - name: uid
          help: The UID of a acm.aws.upbound.io/v1beta1 Certificate.
          each:
            type: Info
            gauge: null
            stateSet: null
            info:
                labelsFromPath:
                    uid:
                        - metadata
                        - uid
                path: []
                labelFromKey: ""
          commonLabels: {}
          labelsFromPath: {}
          errorLogV: 0
      errorLogV: 0
      resourcePlural: certificates
    - metricNamePrefix: kube_managedresource
      groupVersionKind:
        group: acmpca.aws.upbound.io
        version: v1beta1
        kind: Certificate
      commonLabels: {}
      labelsFromPath: {}
      metrics:
        - name: uid
          help: The UID of a acmpca.aws.upbound.io/v1beta1 Certificate.
          each:
            type: Info
            gauge: null
            stateSet: null
            info:
                labelsFromPath:
                    uid:
                        - metadata
                        - uid
                path: []
                labelFromKey: ""
          commonLabels: {}
          labelsFromPath: {}
          errorLogV: 0
      errorLogV: 0
      resourcePlural: certificates

Epic #

How can we reproduce it?

What environment did it happen in?

@haarchri haarchri added bug Something isn't working needs-epic-link Needs a link to an epic needs-points-label Needs a story point label needs-project Needs a project labels Jan 8, 2024
@haarchri haarchri changed the title please describe the kube_managedresource_uid metric describe/implement for kube_managedresource_uid metric Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-epic-link Needs a link to an epic needs-points-label Needs a story point label needs-project Needs a project
Projects
None yet
Development

No branches or pull requests

1 participant