Not able to get the metrics from prometheus
In my kubernetes cluster one node (node1)is ubuntu and the another node(node2) is a virtual machine running inside node1. I am able to get prometheus metric from node1, but not from node 2. While i am issuing get pods command i am able to see my pods running on node 2, but i coudn't get the metric information.
Is this my Vmware issue / Cluster /Prometheus issue. how to resolve it?
Thanks,
kubernetes virtual-machine prometheus
add a comment |
In my kubernetes cluster one node (node1)is ubuntu and the another node(node2) is a virtual machine running inside node1. I am able to get prometheus metric from node1, but not from node 2. While i am issuing get pods command i am able to see my pods running on node 2, but i coudn't get the metric information.
Is this my Vmware issue / Cluster /Prometheus issue. how to resolve it?
Thanks,
kubernetes virtual-machine prometheus
Can you share Prometheus configuration (prometheus.yaml
) file?
– Emruz Hossain
Nov 22 '18 at 13:58
Odd pattern here (a k8s node in a virtual machine within a k8s node): what are you trying to achieve with it? If you just want to experiment, what about picking a local machine solution with multi-node capabilities like kubeadm-dind-cluster?
– Clorichel
Nov 22 '18 at 17:14
add a comment |
In my kubernetes cluster one node (node1)is ubuntu and the another node(node2) is a virtual machine running inside node1. I am able to get prometheus metric from node1, but not from node 2. While i am issuing get pods command i am able to see my pods running on node 2, but i coudn't get the metric information.
Is this my Vmware issue / Cluster /Prometheus issue. how to resolve it?
Thanks,
kubernetes virtual-machine prometheus
In my kubernetes cluster one node (node1)is ubuntu and the another node(node2) is a virtual machine running inside node1. I am able to get prometheus metric from node1, but not from node 2. While i am issuing get pods command i am able to see my pods running on node 2, but i coudn't get the metric information.
Is this my Vmware issue / Cluster /Prometheus issue. how to resolve it?
Thanks,
kubernetes virtual-machine prometheus
kubernetes virtual-machine prometheus
asked Nov 22 '18 at 12:25
Vivek Hegade M SVivek Hegade M S
103
103
Can you share Prometheus configuration (prometheus.yaml
) file?
– Emruz Hossain
Nov 22 '18 at 13:58
Odd pattern here (a k8s node in a virtual machine within a k8s node): what are you trying to achieve with it? If you just want to experiment, what about picking a local machine solution with multi-node capabilities like kubeadm-dind-cluster?
– Clorichel
Nov 22 '18 at 17:14
add a comment |
Can you share Prometheus configuration (prometheus.yaml
) file?
– Emruz Hossain
Nov 22 '18 at 13:58
Odd pattern here (a k8s node in a virtual machine within a k8s node): what are you trying to achieve with it? If you just want to experiment, what about picking a local machine solution with multi-node capabilities like kubeadm-dind-cluster?
– Clorichel
Nov 22 '18 at 17:14
Can you share Prometheus configuration (
prometheus.yaml
) file?– Emruz Hossain
Nov 22 '18 at 13:58
Can you share Prometheus configuration (
prometheus.yaml
) file?– Emruz Hossain
Nov 22 '18 at 13:58
Odd pattern here (a k8s node in a virtual machine within a k8s node): what are you trying to achieve with it? If you just want to experiment, what about picking a local machine solution with multi-node capabilities like kubeadm-dind-cluster?
– Clorichel
Nov 22 '18 at 17:14
Odd pattern here (a k8s node in a virtual machine within a k8s node): what are you trying to achieve with it? If you just want to experiment, what about picking a local machine solution with multi-node capabilities like kubeadm-dind-cluster?
– Clorichel
Nov 22 '18 at 17:14
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53430984%2fnot-able-to-get-the-metrics-from-prometheus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53430984%2fnot-able-to-get-the-metrics-from-prometheus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you share Prometheus configuration (
prometheus.yaml
) file?– Emruz Hossain
Nov 22 '18 at 13:58
Odd pattern here (a k8s node in a virtual machine within a k8s node): what are you trying to achieve with it? If you just want to experiment, what about picking a local machine solution with multi-node capabilities like kubeadm-dind-cluster?
– Clorichel
Nov 22 '18 at 17:14