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

[Feature] can we partition nodes when monitor kubernetes nodes? #1880

Closed
liuguoming opened this Issue Aug 9, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@liuguoming
Copy link

liuguoming commented Aug 9, 2016

What did you do?
monitoring part of all nodes of kubernetes

What did you expect to see?
just monitoring some nodes of kubernetes nodes, not all of them.

there are 3 nodes under my k8s. I just want to monitor one of them.
but there's no item to config that.

  • Prometheus configuration file:

global:
  scrape_interval:     15s # By default, scrape targets every 15 seconds.
  evaluation_interval: 15s # By default, scrape targets every 15 seconds.
  # scrape_timeout is set to the global default (10s).

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
      monitor: 'codelab-monitor'

# Load and evaluate rules in this file every 'evaluation_interval' seconds.
rule_files:
  # - "first.rules"
  # - "second.rules"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  - job_name: 'k8s-cluster'
    scheme: https
    kubernetes_sd_configs:
      - api_servers:
        - 'http://localhost:8080'
        in_cluster: false
        role: node
    tls_config:
      insecure_skip_verify: true

@grobie

This comment has been minimized.

Copy link
Member

grobie commented Aug 10, 2016

You can filter targets with relabel config.

@liuguoming

This comment has been minimized.

Copy link
Author

liuguoming commented Aug 11, 2016

Thank you

@liuguoming liuguoming closed this Aug 11, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 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 24, 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.