Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
little-guy-lxr opened this issue Jun 8, 2023 · 9 comments
Open

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

little-guy-lxr opened this issue Jun 8, 2023 · 9 comments
Labels
kind/bug Something isn't working

Comments

@little-guy-lxr
Copy link

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

crane当前支持配置basic auth吗?

@little-guy-lxr little-guy-lxr added the kind/bug Something isn't working label Jun 8, 2023
@qmhu
Copy link
Member

qmhu commented Jun 8, 2023

都支持的。

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

1 similar comment
@qmhu

This comment was marked as duplicate.

@xinsir88
Copy link

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

@xinsir88
Copy link

xinsir88 commented Sep 4, 2023

都支持的。

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
Copy link
Member

qmhu commented Sep 4, 2023

都支持的。
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
Copy link

xinsir88 commented Sep 4, 2023

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

@mobeixiaoxin
Copy link

都支持的。

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
Copy link
Member

qmhu commented Sep 4, 2023

都支持的。
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
Copy link

都支持的。
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的技术交流群么?谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants