无法在 grafana 仪表板中添加 sysdig 插件

问题描述

我已经在 kubernetes 集群中安装了 grafana,我正在尝试添加 sysdig 数据源。 但是,它显示未找到 sysdig 插件,我尝试使用以下命令使用 sysdig 插件设置 grafana:

docker run -d -p 3000:3000 --name grafana sysdiglabs/grafana:latest

但是,我无法使用以下方法在浏览器中打开 grafana 仪表板:

http://localhost:3000

我还在 kubernetes 集群中安装了 grafana,如下所示:

kubectl get services -n monitoring                                   
NAME                 TYPE       CLUSTER-IP       EXTERNAL-IP    PORT(S)          AGE
grafana              NodePort   179.9.17.16   192.168.1.23   3000:32001/TCP   96m
prometheus-service   NodePort   172.29.3.43     <none>         8080:30000/TCP   6d21h

我在上面使用了 sysdiglabs/grafana:latest image,但仍然无法在 grafana 数据源中找到 sysdig 插件

在本地笔记本电脑设置中,grafana 工作并显示 sysdig 插件,但我想使用安装在带有 sysdig 插件的集群中的 grafana。请帮忙。

解决方法

我使用了以下链接 (https://docs.sysdig.com/en/configure-sysdig-with-grafana.html),并且能够将 Sysdig 指标导入 Grafana。 enter image description here

你能检查一下你是否已经定义了身份验证:

enter image description here

,

我使用 LoadBalancer 做到了。集群防火墙设置导致了连接问题。