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

Some metrics are missing from the kubeletstats receiver #26300

Closed
chenlujjj opened this issue Aug 30, 2023 · 3 comments
Closed

Some metrics are missing from the kubeletstats receiver #26300

chenlujjj opened this issue Aug 30, 2023 · 3 comments
Labels
needs triage New item requiring triage receiver/kubeletstats

Comments

@chenlujjj
Copy link
Contributor

chenlujjj commented Aug 30, 2023

Component(s)

receiver/kubeletstats

Describe the issue you're reporting

Hi Team,

We are using the kubeletstats receiver to collect metrics of pods and containers. But we found that some metrics are missing. For example, container.memory.usage is collected but container.memory.page_faults is missing.

The collector version is 0.79.0 and we didn't exclude any metrics in filter processor.

The config for kubeletstats receiver is:

kubeletstats:
        auth_type: serviceAccount
        collection_interval: 10s
        endpoint: ${K8S_NODE_IP}:10250
        extra_metadata_labels:
        - container.id
        metric_groups:
        - container
        - pod
        - node
        - volume

We have also confirmed that the response of /stats/summary endpoint from kubelet do include container memory page faults infos using following command:

kubectl get --raw /api/v1/nodes/<node_name>:10250/proxy/stats/summary

Any suggestions would be much appreciated.

@chenlujjj chenlujjj added the needs triage New item requiring triage label Aug 30, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@TylerHelmuth
Copy link
Member

TylerHelmuth commented Aug 30, 2023

@chenlujjj this is a strange one, I am not able to reproduce the issue. Are you missing any other container.memory.* metrics? The receiver will ignore datapoints if the metric is nil:

func recordIntDataPoint(mb *metadata.MetricsBuilder, recordDataPoint metadata.RecordIntDataPointFunc, value *uint64, currentTime pcommon.Timestamp) {
if value == nil {
return
}
recordDataPoint(mb, currentTime, int64(*value))
}
, but you're saying the stats/summary definitely has it?

@chenlujjj
Copy link
Contributor Author

sorry, the problem is probably cause by signalfx exporter we use. i'll close this. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage New item requiring triage receiver/kubeletstats
Projects
None yet
Development

No branches or pull requests

2 participants