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

Autoscale based on node metrics exposed to Prometheus by Node exporter #45

Open
swatisehgal opened this issue Nov 2, 2018 · 2 comments

Comments

@swatisehgal
Copy link

swatisehgal commented Nov 2, 2018

I am trying to access the values of node metrics (exposed by node exporter to Prometheus) in custom metrics API which appear e.g. jobs.batch/node_memory_MemTotal. But when I do kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/batch.jobs/node_memory_MemTotal" | jq . I get Error from server (NotFound): the server could not find the requested resource

@swatisehgal
Copy link
Author

swatisehgal commented Nov 2, 2018

When I run kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1" | jq . I see the following metrics but am unable to access their values
{
"name": "jobs.batch/node_memory_MemTotal",
"singularName": "",
"namespaced": false,
"kind": "MetricValueList",
"verbs": [
"get"
]
},
{
"name": "jobs.batch/node_netstat_TcpExt_TCPHPHits",
"singularName": "",
"namespaced": false,
"kind": "MetricValueList",
"verbs": [
"get"
]
},
{
"name": "jobs.batch/node_netstat_TcpExt_TCPReqQFullDrop",
"singularName": "",
"namespaced": false,
"kind": "MetricValueList",
"verbs": [
"get"
]
},
{
"name": "jobs.batch/node_netstat_Icmp6_InEchoReplies",
"singularName": "",
"namespaced": false,
"kind": "MetricValueList",
"verbs": [
"get"
]
}

@swatisehgal
Copy link
Author

I referred to kubernetes-sigs/metrics-server#90 (comment) in the issue kubernetes-sigs/metrics-server#90 but wasn't able to access the metric values

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

No branches or pull requests

1 participant