安装监控及日志问题

  • Choerodon平台版本: 1.0

  • 遇到问题的执行步骤:

按照官方文档来安装监控和日志服务,测试prometheus数据源的时候报以下错误:

请问是因为prometheus安装有问题吗?

安装的时候提示以下信息:

但pod好像也都正常:

请官方的大佬们帮忙看下这个问题,都4-5天了。。

@Noodles

manifest_sorter.go:192: info: skipping unknown hook: “crd-install” 这个提示不影响安装。

可以后续手动创建

kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_probes.yaml
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml

是你配置 prometheus 网关配置错了。

prometheus的网关是在哪里配?我好像没有看到有配置网关的地方。

在 Data Sources 中配置数据源 http://kube-prometheus-prometheus:9090/

也是报同样的错。@Vista