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

Support port for "node" role under "kubernetes_sd_config" #2199

Closed
aerokite opened this Issue Nov 18, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@aerokite
Copy link

aerokite commented Nov 18, 2016

The node role discovers one target per cluster node with the address defaulting to the Kubelet's HTTP port.

If I have another service running on each node directly and exposes metrics on a particular port, what should I do?

If node role supports port, I can create another job to collect metrics with that port.

- job_name: 'kubernetes-node-metrics'
  kubernetes_sd_configs:
  - role: node
  port: 10240

Suppose, I have a service running on each node exposing metrics on port 10240. I can collect using your existing node role if you support port for kubernetes_sd_config.

@fabxc

This comment has been minimized.

Copy link
Member

fabxc commented Nov 18, 2016

Generally, you would discover this with the endpoints discovery, which
doesn't care about on which node the endpoints run. The underlying
DaemonSet just makes it that way.

On Fri, Nov 18, 2016 at 9:39 AM Mir Shahriar Sabuj notifications@github.com
wrote:

The node role discovers one target per cluster node with the address
defaulting to the Kubelet's HTTP port.

If I have another service running on each node directly and exposes
metrics on a particular port, what should I do?

If node role supports port, I can create another job to collect metrics
with that port.

  • job_name: 'kubernetes-node-metrics'
    kubernetes_sd_configs:
    • role: node
      port: 10240

Suppose, I have a service running on each node exposing metrics on port
10240. I can collect using your existing node role if you support that.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2199, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEuA8mXwaUFPRw0JO5MdA7-MkxQAdgqLks5q_WRJgaJpZM4K2PV6
.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.