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: prom support tls plaintext #2002

Closed

Conversation

catdogpandas
Copy link
Contributor

No description provided.

for (auto& c : tmpJobName) {
c = (c == '/') ? '_' : c;
}
string caFile = "/tmp/" + tmpJobName + "_ca.pem";
Copy link
Collaborator

Choose a reason for hiding this comment

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

/tmp固定这种实现基本上都是不合理的

看上去整个实现从流程上不太合理,先评审下设计吧

@@ -353,6 +353,21 @@ void ScrapeConfig::InitEnableCompression(bool enableCompression) {
}

bool ScrapeConfig::InitTLSConfig(const Json::Value& tlsConfig) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

conf文件应该写在AppConfig::GetInstance()->GetLoongcollectorConfDir()这个目录里

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.

3 participants