gocrane / crane

Crane is a FinOps Platform for Cloud Resource Analytics and Economics in Kubernetes clusters. The goal is not only to help users to manage cloud cost easier but also ensure the quality of applications.
https://gocrane.io
Apache License 2.0
1.87k stars 382 forks source link

对接已有的需要授权的prometheus和grafana #814

Open little-guy-lxr opened 1 year ago

little-guy-lxr commented 1 year ago

对接已有的需要授权(basic auth)的promtheus和grafana时,如何配置crane

crane当前支持配置basic auth吗?

qmhu commented 1 year ago

都支持的。

craned的启动参数,有2种配置方法:

1.账号密码 --prometheus-auth-username --prometheus-auth-password 2.bearertoken --prometheus-auth-bearertoken

grafana的账号和是否能内嵌到dashboard没有关系,参考安装文档的这部分:

https://gocrane.io/zh-cn/docs/getting-started/installation/installation/#%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%E7%9A%84-grafana%E5%8F%AF%E9%80%89

qmhu commented 1 year ago

都支持的。

craned的启动参数,有2种配置方法:

1.账号密码 --prometheus-auth-username --prometheus-auth-password 2.bearertoken --prometheus-auth-bearertoken

grafana的账号和是否能内嵌到dashboard没有关系,参考安装文档的这部分:

https://gocrane.io/zh-cn/docs/getting-started/installation/installation/#%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%E7%9A%84-grafana%E5%8F%AF%E9%80%89

xinsir88 commented 1 year ago

如果prometheus是https访问的,该如何连接呢?

xinsir88 commented 1 year ago

都支持的。

craned的启动参数,有2种配置方法:

1.账号密码 --prometheus-auth-username --prometheus-auth-password 2.bearertoken --prometheus-auth-bearertoken

grafana的账号和是否能内嵌到dashboard没有关系,参考安装文档的这部分:

https://gocrane.io/zh-cn/docs/getting-started/installation/installation/#%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%E7%9A%84-grafana%E5%8F%AF%E9%80%89

crane-scheduler-controller日志中报错x509, certificate signed by unknown authority, 在controller的启动参数中,只能指定prometheus的地址,请问怎样配置账号和密码呢?

qmhu commented 1 year ago

都支持的。 craned的启动参数,有2种配置方法: 1.账号密码 --prometheus-auth-username --prometheus-auth-password 2.bearertoken --prometheus-auth-bearertoken grafana的账号和是否能内嵌到dashboard没有关系,参考安装文档的这部分: https://gocrane.io/zh-cn/docs/getting-started/installation/installation/#%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%E7%9A%84-grafana%E5%8F%AF%E9%80%89

crane-scheduler-controller日志中报错x509, certificate signed by unknown authority, 在controller的启动参数中,只能指定prometheus的地址,请问怎样配置账号和密码呢?

你的prometheus是https的吗? https的不支持

xinsir88 commented 1 year ago

大佬好,如果我使用http的Prometheus,但是Prometheus开启了auth认证, 这样我们的Crane-Schedule-Controller是否支持呢?

mobeixiaoxin commented 1 year ago

都支持的。

craned的启动参数,有2种配置方法:

1.账号密码 --prometheus-auth-username --prometheus-auth-password 2.bearertoken --prometheus-auth-bearertoken

grafana的账号和是否能内嵌到dashboard没有关系,参考安装文档的这部分:

https://gocrane.io/zh-cn/docs/getting-started/installation/installation/#%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%E7%9A%84-grafana%E5%8F%AF%E9%80%89

crane scheduler controller当前支持配置basic auth吗?

qmhu commented 1 year ago

都支持的。 craned的启动参数,有2种配置方法: 1.账号密码 --prometheus-auth-username --prometheus-auth-password 2.bearertoken --prometheus-auth-bearertoken grafana的账号和是否能内嵌到dashboard没有关系,参考安装文档的这部分: https://gocrane.io/zh-cn/docs/getting-started/installation/installation/#%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%E7%9A%84-grafana%E5%8F%AF%E9%80%89

crane scheduler controller当前支持配置basic auth吗?

scheduler controller还没支持的。

mobeixiaoxin commented 1 year ago

都支持的。 craned的启动参数,有2种配置方法: 1.账号密码 --prometheus-auth-username --prometheus-auth-password 2.bearertoken --prometheus-auth-bearertoken grafana的账号和是否能内嵌到dashboard没有关系,参考安装文档的这部分: https://gocrane.io/zh-cn/docs/getting-started/installation/installation/#%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%E7%9A%84-grafana%E5%8F%AF%E9%80%89

crane scheduler controller当前支持配置basic auth吗?

scheduler controller还没支持的。

好的,感谢。您方便提供一下crane的技术交流群么?谢谢