【问题标题】:Import custom dashboard template to grafana and update prometheus scape config using istioctl将自定义仪表板模板导入 grafana 并使用 istioctl 更新 prometheus scape 配置
【发布时间】:2020-12-06 07:04:28
【问题描述】:

我正在使用 istioctl 1.6.8 并且在命令 istioctl install --set profile=demo --file istio-config.yaml 的帮助下,我能够在启用 grafana 和 prometheus 的情况下将 istio 部署到我的集群。我的 istio-config.yaml 文件如下所示。

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  components:
    ingressGateways:
      - name: istio-ingressgateway
        enabled: true
        k8s:
          serviceAnnotations:
            service.beta.kubernetes.io/aws-load-balancer-internal: true
  values:
    grafana:
      security:
        enabled: true

我有一些 grafana 仪表板 json 文件需要导出到新安装的 grafana,为了使这些仪表板正常工作,我必须添加一些导出器详细信息进入我的 prometheus scrape-config

我的问题:

除了通过 grafana UI 导入仪表板之外,有什么方法可以通过将相关详细信息传递给我的 istio-config.yaml 来做到这一点?如果没有,任何人都可以建议任何其他方法吗?

(我想到的一种方法是使用 kubectl apply -f - 用自定义 yaml 覆盖现有资源)

提前致谢

【问题讨论】:

  • 我没有可用的示例,但您可以尝试通过 IstioOperator 进行设置。请参阅值文件以获取要设置的参数的参考:github.com/istio/istio/blob/1.6.8/manifests/addons/…
  • @ChristophRaab 我尝试了这种方法,但它说属性不存在失败。
  • 我添加了一个答案,自从我发表评论以来已经过去了一段时间,并且随着新的 istio versoin gerading grafana 发生了一些变化。

标签: kubernetes prometheus grafana istio


【解决方案1】:

您不应该对此进行进一步调查。在 Istio 1.7 中,使用 istioctl 安装 Prometheues/Kiali/Grafana 已被弃用,将在 Istio 1.8 中移除。

见:https://istio.io/latest/blog/2020/addon-rework/

接下来,您将不得不设置自己的 prometheus/grafana,例如使用 helm,所以我建议您朝这个方向努力。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-11-30
    • 1970-01-01
    • 1970-01-01
    • 2018-11-23
    • 2020-07-14
    • 2019-11-14
    • 1970-01-01
    相关资源
    最近更新 更多