Giter VIP home page Giter VIP logo

kubernetes-app's People

Contributors

alexanderzobnin avatar daixiang0 avatar dancech avatar daniellee avatar jtlisi avatar martin-helmich avatar mattttt avatar oddlittlebird avatar woodsaj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kubernetes-app's Issues

Saved but failed to connect to MYCLUSTERNAME. Error: [object Object]

Hi, I just added the kubernetes app to my Grafana v5. I already added my prometheus data source which receives metrics from kube-metrics and from the node_exporter.

After configuring all the plugin settings, Grafana displays the following error:

Saved but failed to connect to MY CLUSTERNAME. Error: [object Object]

I guess, my settings are not correct but I am not sure how to get further help because there are no messages in the grafana log.

Some of the dashboard panels do work, for example Cluster Disk Usage.
When I open a Dashboard, the following error shows: Templating init failed Cannot read property 'length' of undefined

I saw the presentation at GrafanaCon and I would really like to use the app but the setup is not completely clear (at least for me).

Hope you can provide some further debugging help.

Best

On node dashboard, not work when select special node

On node info dashboard , it work fine for all node , but when I select one special node , nothing show !!

grafana --- > v5.2

QL:
sum((avg(irate(node_cpu_seconds_total{instance=~"$node", mode="system"}[5m])) * 100))

helm chart

Hello,

It would be awesome if one could just helm install it, eh? ;)

Permission list needed for kubernetes service user, if RBAC enabled

Hi. I tried to run this plugin on an existing kube+prometheus+grafana setup and noticed grafana needs additional permissions to complete the setup (specifically: list deployments.apps in the namespace "kube-system").
Would you guys be able to add an RBAC config to this repo? I can't really figure out what permissions this app needs beyond adding them one at a time, every time I get an error.

node_load panel not counting cpu numbers

On the K8s Node Dashboard, the node_load panel is showing the raw node_load value which for a multi-core/processor architecture always gets over the 1,2 threshold defined.
We can modify it by hand but our changes would get overridden by the next update.
Could you use count(node_cpu{mode="system"}) in the query?

Thanks in advance!

Build steps

Trying to build locally on mac. Following

$ yarn install --frozen-lockfile
$ yarn run grunt          
yarn run v1.12.3
$ /Users/edwardmcfarlane/go/src/github.com/grafana/kubernetes-app/node_modules/.bin/grunt
Running "clean:0" (clean) task
>> 1 path cleaned.

Running "copy:dist_js" (copy) task
Copied 16 files

Running "sass:dist" (sass) task

Running "typescript:build" (typescript) task
>> dist/panels/nodeData/nodeData.ts(27,5): error TS2346: Supplied parameters do not match any signature of call target.
>> dist/panels/podNav/podNav.ts(23,5): error TS2346: Supplied parameters do not match any signature of call target.
Warning: Task "typescript:build" failed. Use --force to continue.

Aborted due to warnings.
error Command failed with exit code 3.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Connecting to rancher cluster

Hi everyone.

Can please someone quickly explain how we can connect this plugin to a Rancher (2.1.1) cluster? Our kubeconfig file looks as follows:

apiVersion: v1
kind: Config
clusters:
- name: "jls"
  cluster:
    server: "https://k8s.company.tld/k8s/clusters/c-ckrdr"
    api-version: v1

users:
- name: "user-rd343"
  user:
    token: "kubeconfig-user-rd343:cxdgf235zgsdg6436g325z45ujsgsdgwegwfwd4qr2"

contexts:
- name: "company"
  context:
    user: "user-rd343"
    cluster: "company"

current-context: "company"

We're perfectly able to use kubectl with this kubeconfig. No problems at all. But the plugin for grafana to monitor our cluster seems very reluctant to integrate.

Any suggestions are highly appreciated.

Dashboard doesn't display metrics

I use one local grafana server with one prometheus on k8s as datasource, I had verified the prometheus datasource's correctness, and the configured kubernetes-app kubernetes datasource showed up too. But the metrics on all dashboard are not displayed. For example, on K8s Cluster dashboard, I found the reason is that the node variable is not parsed correctly although the cluster variable is parsed. I don't understand the query of node variable , will the prometheus accept the node string as one query parameter, I guess that the plugin does some other work to support this.
So my question is why the dashboard doesn't work and why the variables defined is not parsed correctly, for example node in K8s Cluster dashboard?
Another question is the what's the implementation guide of the kubernetes-app plugin, I can't find other documentation to know it deeply, such as the defined variable.

Issue with adding a second or third cluster

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

could not connect to kubernetes cluster?

I have Grafana / prometheus installed and working fine. I had modified prometheus.yaml for collecting metrics data (cluster url ). I had installed Kubernetes app plugin in Grafana and trying to connecting our cluster. I am following the URL But I do not have authentication details. But I am getting error message saying that could not connect to cluster. what is wrong with me config ?

https://grafana.com/plugins/grafana-kubernetes-app

Prometheus and cluster not working together

I have some problems getting Prometheus and the Kubernetes cluster to work together. When created a proxy to the cluster with kubectl proxy all the Prometheus metric disappear from the Kuberntes overview, and if I stop the proxy connection, Prometheus matric comes back. There is no problem accessing the Prometheus service directly in the browser or on a Prometheus dashboard when a proxy port is running. Both the Data sources have proxy access with TLS client auth, Prometheus URL is the service IP from kubectl get services, while kubernetes is accessed from the localhost when proxy is running.

Failed to send requesterrorApi returned invalid status: 404 Not Found

root@grafana:~# grafana-cli plugins install kubernetes-app
Failed to send requesterrorApi returned invalid status: 404 Not Found
Error: ✗ Failed to send request. error: Api returned invalid status: 404 Not Found

NAME:
   Grafana cli plugins install - install <plugin id> <plugin version (optional)>

USAGE:
   Grafana cli plugins install [arguments...]

Issue with GKE cluster

Hi,

I have a standalone grafana server with the plugin installed.
Was able to successfully connect to the GKE cluster (the node-exporter and kube-state-metrics) were also successfully deployed automatically.
I went ahead and deployed Prometheus in the cluster and updated the scrape config to match the one provided in the add-cluster page.

Thought I can see the node list, services, namespaces and PODs, none of the metrics are shown. All I get in the dashboard is NA and an error stating 'Datasource named $datasource was not found'.

screen shot 2018-06-06 at 10 00 48 am

Please help.

Thanks,
Vikas

InCluster Discovery/Configuration

When running in the cluster, it would be nice if the kubernetes app would create a kubernetes datasource for the cluster automatically.

[Question] Reuse container labels

Hello,

In "K8s Container" i can select multiple labels about my container, i can see too that the variable "$pod" is used in Metrics, my doubt is if i can use the other labels (selected in "Pod filtering") in my metrics?

Regards

Container dashboard showing doubled metrics

Hi!

I have a kubernetes cluster on which I recently installed prometheus, through prometheus operator, following official prometheus guide.

I connected Grafana Kubernetes App to kubernetes/prometheus then I noticed that the metrics exposed at K8s container dashboard for memory and cpu was been showing doubled.

After some debug, I discovered the bellow query for cpu usage:

sum(irate(container_cpu_usage_seconds_total{pod_name=~"my-pod"}[2m])) by (pod_name)

Executing the same query but removing aggregate (container_cpu_usage_seconds_total{pod_name=~"my-pod"}) I could see that there is an extra item that represents the sum of all containers in POD as in table bellow:

==============================
‣Element
‣Value

container_cpu_usage_seconds_total{container_name="POD",cpu="total",endpoint="http-metrics",id="/kubepods/burstable/pod1bb36063-bcf4-11e8-bba4-00505684c990/da0ebc2deef52414bc2f1cc8cb874956b6c3dc478ea8df0d2eb3106a605ba21c",image="k8s.gcr.io/pause:3.1",instance="10.17.14.237:10255",job="kubelet",name="k8s_POD_my-pod-b54bc7874-bpmhd_pocs_1bb36063-bcf4-11e8-bba4-00505684c990_0",namespace="pocs",pod_name="my-pod-b54bc7874-bpmhd",service="kubelet"}
0.012306132

container_cpu_usage_seconds_total{container_name="my-pod-rev2",cpu="total",endpoint="http-metrics",id="/kubepods/burstable/pod1bb36063-bcf4-11e8-bba4-00505684c990/f712e91d11913f01daa863fd3e5d59179afb40a7f1e8ff67cf8f24874d7fd44c",image="sha256:2f41732fe757bb8dc7739b5a536ea38ed3aa9c4bc8f6c3e3c342e4952b0e63e7",instance="10.17.14.237:10255",job="kubelet",name="k8s_my-pod-rev2_my-pod-b54bc7874-bpmhd_pocs_1bb36063-bcf4-11e8-bba4-00505684c990_1",namespace="pocs",pod_name="my-pod-b54bc7874-bpmhd",service="kubelet"}
107.36438691

container_cpu_usage_seconds_total{cpu="total",endpoint="http-metrics",id="/kubepods/burstable/pod1bb36063-bcf4-11e8-bba4-00505684c990",instance="10.17.14.237:10255",job="kubelet",namespace="pocs",pod_name="my-pod-b54bc7874-bpmhd",service="kubelet"}
145.636093587

So, this justify the doubled metrics.

The extra item with the sum of containers (the 3th item on the above table) don't contains the container_name attribute.

In order to avoid Grafana Kubernetes App showing doubled values, I edited queries on dashboard definition by adding container_name=~".+" to filter, so the query for cpu_usage now looks as:

sum(irate(container_cpu_usage_seconds_total{pod_name=~"my-pod", container_name=~".+"}[2m])) by (pod_name)

I'm wondering if there is a better way to handle this. Have you ever seen this scenario before?

Can someone give the detail steps for creating new cluster

HI All,

Can someone please send the documentation for creating a new cluster, bcoz after i click on new cluster and fill in the details i am stuck, i get error like datasource name already exists, 404 http error etc...

Would be really helpful if someone has a documentation for this.Also would request the grafana team to please update it.

How to configure cluster

I've been able to install the kubernetes-app plugin into grafana running on our kubernetes cluster, but I'm not able to get the plugin to work. I think I probably don't have it configured correctly, but I'm not sure how to correct it. In my cluster config I have datasource set to "prometheus", and access set to "Server (Default)". But I'm not sure what to set for the http url or the auth settings. I have grafana and prometheus running as pods on the k8s cluster. (Installed via core-os prometheus-operator kube-prometheus.) So I'm not sure what http url to use: url of the kubernetes system? url of the prometheus service? The docs/help system aren't clear. Would appreciate if someone could help get this issue addressed, as the plugin looks quite nice. Thanks!

automatic plugin provisioning via API

We try to deploy grafana with kubernetes-app plugin.
Installing plugins is easy but I can't see any simple way to:
a) Enabling plugin
b) Configure plugin via API call ( i.e datasource )

Additonally as we modify default dashboards it should be possible to not import default ones when plugin is enabled ( maybe additional option for it )

RAM units are wrong

the node dashboard says memory is in bits, i believe it is bytes
so we have 8 times less ram available than what the dashboard leads you to believe

Permission denied error for non admin users

I have successfully configured the plugin to monitore my GKE kubernetes cluster, I have Grafana installed using the official stable helm chart (same for prometheus).

My problem is that non admin users have permission denied errors while trying to access the plugin page, with the list of clusters, same thing for some of the dashboards (node and container ones). I checked the chrome console while trying to reproduce and it seems to be the call made to /api/datasources that results in a 403 for non admin users.

Is there anything to configure to fix this ?

Thanks

Deploying on existing Prometheus

Hi,

  1. What happens if I've got an existing Prometheus configuration?
  2. The main readme says

detailed instructions to deploy them manually them with kubectl

I don't see them.

Thanks!

node variable parameter.... fulls stop are being rewritten to underscores.

https://www.dropbox.com/s/1ecgy6foslcczxj/Screenshot%202018-08-24%2009.54.44.png?dl=0

api/datasources/proxy/1/api/v1/query_range?query=sum((avg(irate(node_cpu%7Bnodename%3D~%22ip-10-10-2-217_ap-southeast-2_compute_internal%22%2C%20mode%3D%22iowait%22%7D%5B5m%5D))%20*%20100))&start=1535068162&end=1535068462&step=60"

In the k8s-node dashboard you can select per node metrics, I find in the query inspector all . are being rewritten to _ so the hostnames do not exist in prometheus and so... it returns nothing.

questions; how is this controlled and why is the char changing?

cronjobs.batch is forbidden

[root@localhost prometheus]# kubectl version
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.5", GitCommit:"51dd616cdd25d6ee22c83a858773b607328a18ec", GitTreeState:"clean", BuildDate:"2019-01-16T18:24:45Z", GoVersion:"go1.10.7", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.5", GitCommit:"51dd616cdd25d6ee22c83a858773b607328a18ec", GitTreeState:"clean", BuildDate:"2019-01-16T18:14:49Z", GoVersion:"go1.10.7", Compiler:"gc", Platform:"linux/amd64"}

image version:

prom/prometheus:v2.4.3
grafana/grafana:5.3.4

Then I deploy the grafana-kubernetes-app plugin, here is the configmap of prometheus:

[root@localhost prometheus]# cat prometheus-cm.yaml 
apiVersion: v1
kind: ConfigMap
metadata:
  name: prometheus-config
  namespace: monitoring
data:
  prometheus.yml: |
    global:
      scrape_interval: 15s
      scrape_timeout: 15s
    scrape_configs:
    - job_name: 'prometheus'
      static_configs:
      - targets: ['localhost:9090']

    - job_name: 'kubernetes-nodes'
      kubernetes_sd_configs:
      - role: node
      relabel_configs:
      - source_labels: [__address__]
        regex: '(.*):10250'
        replacement: '${1}:9100'
        target_label: __address__
        action: replace
      - action: labelmap
        regex: __meta_kubernetes_node_label_(.+)

    - job_name: 'kubernetes-kubelet'
      kubernetes_sd_configs:
      - role: node
      relabel_configs:
      - source_labels: [__address__]
        regex: '(.*):10250'
        replacement: '${1}:10255'
        target_label: __address__
        action: replace
      - action: labelmap
        regex: __meta_kubernetes_node_label_(.+)

    - job_name: 'kubernetes-cadvisor'
      kubernetes_sd_configs:
      - role: node
      scheme: https
      tls_config:
        ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
      bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
      relabel_configs:
      - action: labelmap
        regex: __meta_kubernetes_node_label_(.+)
      - target_label: __address__
        replacement: kubernetes.default.svc:443
      - source_labels: [__meta_kubernetes_node_name]
        regex: (.+)
        target_label: __metrics_path__
        replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor

    - job_name: 'kubernetes-apiservers'
      kubernetes_sd_configs:
      - role: endpoints
      scheme: https
      tls_config:
        ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
      bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
      relabel_configs:
      - source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
        action: keep
        regex: default;kubernetes;https

    - job_name: 'kubernetes-service-endpoints'
      kubernetes_sd_configs:
      - role: endpoints
      relabel_configs:
      - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
        action: keep
        regex: true
      - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
        action: replace
        target_label: __scheme__
        regex: (https?)
      - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
        action: replace
        target_label: __metrics_path__
        regex: (.+)
      - source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
        action: replace
        target_label: __address__
        regex: ([^:]+)(?::\d+)?;(\d+)
        replacement: $1:$2
      - action: labelmap
        regex: __meta_kubernetes_service_label_(.+)
      - source_labels: [__meta_kubernetes_namespace]
        action: replace
        target_label: kubernetes_namespace
      - source_labels: [__meta_kubernetes_service_name]
        action: replace
        target_label: kubernetes_name

After completion:

[root@localhost prometheus]# kubectl get pod -n kube-system
NAME                                    READY   STATUS    RESTARTS   AGE
coredns-779ffd89bd-rvd42                1/1     Running   0          3h29m
kube-state-metrics-fcdc7d964-qmbfg      1/1     Running   0          87m
kubernetes-dashboard-659798bd99-j6rj2   1/1     Running   0          3h26m
node-exporter-bhvvt                     1/1     Running   0          87m
node-exporter-jrncb                     1/1     Running   0          87m
node-exporter-q8tzh                     1/1     Running   0          87m
node-exporter-r52fg                     1/1     Running   0          87m
[root@localhost prometheus]# kubectl get pod -n monitoring
NAME                          READY   STATUS      RESTARTS   AGE
grafana-c7bf74c8-sbmmp        1/1     Running     0          93m
grafana-chown-rd96q           0/1     Completed   0          99m
prometheus-7c958795dd-6ndfj   1/1     Running     0          106m

When I visit grafana:




Only the k8s-container dashboard has data,I also see that the kube-state-metrics pod has the following exceptions:

E0204 09:33:42.538610       1 reflector.go:205] k8s.io/kube-state-metrics/collectors/pod.go:187: Failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "pods" in API group "" at the cluster scope
E0204 09:33:42.738156       1 reflector.go:205] k8s.io/kube-state-metrics/collectors/persistentvolumeclaim.go:78: Failed to list *v1.PersistentVolumeClaim: persistentvolumeclaims is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "persistentvolumeclaims" in API group "" at the cluster scope
E0204 09:33:42.923342       1 reflector.go:205] k8s.io/kube-state-metrics/collectors/daemonset.go:82: Failed to list *v1beta1.DaemonSet: daemonsets.extensions is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "daemonsets" in API group "extensions" at the cluster scope
E0204 09:33:42.924153       1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: cronjobs.batch is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "cronjobs" in API group "batch" at the cluster scope
E0204 09:33:42.925186       1 reflector.go:205] k8s.io/kube-state-metrics/collectors/replicaset.go:87: Failed to list *v1beta1.ReplicaSet: replicasets.extensions is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "replicasets" in API group "extensions" at the cluster scope
E0204 09:33:42.937971       1 reflector.go:205] k8s.io/kube-state-metrics/collectors/namespace.go:80: Failed to list *v1.Namespace: namespaces is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "namespaces" in API group "" at the cluster scope
E0204 09:33:43.138574       1 reflector.go:205] k8s.io/kube-state-metrics/collectors/node.go:142: Failed to list *v1.Node: nodes is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "nodes" in API group "" at the cluster scope

god.. who can help me.
Thanks.

Add info that kubernetes legacy authorization is a requirement to run the plugin

After some debugging on why the plugin was working on our dev cluster but was not working for our staging one, I've found that it requires legacy authorization to be enabled on the cluster.

See https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control for more details on the legacy authorization model.

On GKE this can be changed here:
image

It would be much better if the plugin could support token authentication (like mentioned in one of the issues below), or allow to use service account directly (in case it was deployed to the same cluster it's going to connect).

Currently I've just removed everything related to the Kubernetes Datasource provided by this plugin and changed the dashboards according, so basically the plugin is not used anymore.

Most of the variables can be replaced to use some prometheus metric:

$node can be label_values(kube_node_info, node)
$namespace can be label_values(kube_namespace_created, namespace)

Both metrics are from kube-state-metrics.

There are other issues that are probably related to this one:
#12
#22
#34
#41
#47

incomplete install instructions?

It appears that in addition to the Node Exporter and Kube State Metrics, a 3rd component (prometheus scraper) must be manually added by the user in order for this to function.

A user must manually do the following for this to work:

  • install the configmap (provided in the grafana kubernetes app configuration interface)
  • run a prometheus pod which uses said configmap to scrape metrics.

Without these steps, almost no metrics will work. These requirements are missing from the readme.

The Deploy button will deploy the following:
(1) A promtheus configmap which contains the prometheus jobs that collect metrics used by the dashboards in the kubernetes app
  - Incorrect, the grafana kuberentes app does not do this ^^
(2) a Node Exporter deployment, and 
(3) a Kube-State Metrics deployment

Unless I am missing something else possibly?

App should support token auth

It would be so much simpler to install if the app were to use token auth not just private key auth because then people could create service accounts and use the app with a proper RBAC setup.

As it stands, the way you create TLS certs you have to use openssl and have access to the CA private key, at least with token you can use kubectl.

Problem when connecting to gke cluster

Hello.

I have prometheus and grafana implemented into my gke (Google Kubernetes Engine) cluster and when I try to test your app it can't connect to the cluster and shows a Bad Request or Bad gateway error.

Have tried for hours and can't find out how to connect my cluster to this app.

I would really appreciate your help.

Node dashboards don't show node metrics

In the node dashboard, when selecting a node in the "filter by node" panel, the metrics are not shown.

The reason is the "slugify" of . to _, thus prometheus doesn't find the nodename:

var slug = str.replace("@", "at").replace("&", "and").replace(/[.]/g, "_").replace("/\W+/", "");

On AWS, the nodes are named like ip-172-20-xxx-xx.ec2.internal, thus, it results in a wrong query.

What is the reason for replacing . with _?

Can we easily remove it?

Could not connect to AWS EKS cluster

Hello, following the setup instructions, i'm not being able to connect our grafana to the AWS EKS cluster. the following message is given:

captura de pantalla 2019-01-21 a las 15 28 16

Tried to deploy cluster node exporters manually with given json, but still not able to connect grafana with eks. There are some rbac files that i should also deploy?

Thanks in advance.

Broken icon for grafana-kubernetes datasource

Grafana 5.1.3.

When going /datasources page, the icon for the datasource http://HOSTNAME/public/plugins/grafana-kubernetes-datasource/img/logo.svgalways 404.

Grafana is running as a pod within K8s.

The logo is present in the repo, but the app seems to point at a wrong path.

deploy dashboards to existing external Grafana

I already have a full prometheus stack deployed in my cluster. I want to use these dashboards on my existing grafana server (outside of K8s). I have exposed my prometheus-server service using a LoadBalancer @ port 9090 and have added that datasource to my grafana. I've got about 80 of the panels working.

'K8s container' dashboard pod filtering is broken in case of many pods

Looks like pod filtering doesn't work in case you have many pods in the cluster and be default filtering tries to request everything. As it is done via GET request, it can no be handled well and fails with errors like:

Annotation Query Failed
{"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"api/annotations","params":{"from":1526539366174,"to":1526541166174,"dashboardId":19},"retry":0,"headers":{"X-Grafana-Org-Id":1,"Accept":"application/json, text/plain, */*"}},"statusText":"","xhrStatus":"abort"}

Unexpected error

To reproduce: create the cluster with few hundreds of pods and open the 'K8s container' dashboard.

Workaround: limit a scope of pods by selecting the small time range, specific application, node and overwrite this dashboard.
However, as this dashboard comes with the plugin, it will be reverted after next redeployment or plugin update => still will be nice to have some better fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.