Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Issue with adding a second or third cluster #48

Closed
cbluth opened this issue Nov 5, 2018 · 2 comments
Closed

Issue with adding a second or third cluster #48

cbluth opened this issue Nov 5, 2018 · 2 comments

Comments

@cbluth
Copy link

cbluth commented Nov 5, 2018

Hello, I seemingly have added my first k8s cluster without issue, I have explained the process I used to add the first cluster here: #46 (comment)

My issue is that when I want to add another cluster, my dashboards end up looking like this:

image

image

@cbluth
Copy link
Author

cbluth commented Nov 5, 2018

I see this:

replacement: kubernetes.default.svc:443

Does this mean that the dashboard can only connect to the cluster that it is running in? or can it still connect to clusters outside the current cluster?

@cbluth
Copy link
Author

cbluth commented Nov 5, 2018

I think I found the solution to my issue:

  1. make sure prometheus-server is installed on each cluster.
  2. add config for prometheus federation, see here: https://prometheus.io/docs/prometheus/latest/federation/
    my config looks like this:
    - job_name: federate
      scrape_interval: 15s
      honor_labels: true
      metrics_path: '/federate'
      params:
        'match[]':
          - '{job="prometheus"}'
          - '{job=~"^kubernetes.+"}'
          - '{__name__=~"job:.*"}'
      static_configs:
        - targets:
          - 'ip-of-other-prometheus-server:9090'

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

No branches or pull requests

1 participant