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

feat: support follow_redirects, tls #1896

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

catdogpandas
Copy link
Contributor

No description provided.

@catdogpandas catdogpandas changed the title feat: support follow_redirections, tls feat: support follow_redirects, tls Nov 18, 2024
core/prometheus/Constants.h Show resolved Hide resolved
core/prometheus/schedulers/ScrapeConfig.cpp Show resolved Hide resolved
core/prometheus/schedulers/ScrapeConfig.cpp Show resolved Hide resolved
core/common/http/Curl.cpp Show resolved Hide resolved
core/prometheus/async/PromHttpRequest.cpp Outdated Show resolved Hide resolved
core/common/http/HttpResponse.h Outdated Show resolved Hide resolved
core/common/http/HttpRequest.h Outdated Show resolved Hide resolved
struct CurlTLS {
std::string mCaFile;
std::string mCertFile;
std::string mKeyFile;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k8s场景这几个文件从哪里来?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一般配置是:ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt,这个是 POD 里面自带的
如果用户有额外需求,就自己配置

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我这里说一下,在ACK组件形态下,肯定不允许客户自己配置的。这块我之前提过固定挂一个configmap到某个路径下,这样客户自己可以去configmap中修改,而不动部署模版

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我这里说一下,在ACK组件形态下,肯定不允许客户自己配置的。这块我之前提过固定挂一个configmap到某个路径下,这样客户自己可以去configmap中修改,而不动部署模版

这里不单是 ACK 组件形态,后面托管探针、集团生产环境(另一套组件)需要用到自定义挂载 CA File 才能采集

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants