-
Notifications
You must be signed in to change notification settings - Fork 38
[Blockstore] Use templatable Volume Monitoting dashboard URL on the monitoring pages #4826
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
base: main
Are you sure you want to change the base?
[Blockstore] Use templatable Volume Monitoting dashboard URL on the monitoring pages #4826
Conversation
akilvein
commented
Dec 11, 2025
- Add config settings for grafana dashboards
- GetMonitoringVolumeUrl returns link to grafana volume dashboard if grafana url is configured
|
Hi! Thank you for contributing! |
| optional string MonitoringUrlTemplate = 10; | ||
|
|
||
| // monitoring datasource pid for this ClusterName | ||
| optional string MonitoringDataSourcePid = 11; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessary in opensource. we can safely use MonitoringProject
| << data.MonitoringClusterName << "&p.volume=" << diskId; | ||
|
|
||
| if (data.MonitoringUrlTemplate.empty()) { | ||
| // backward compatibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to keep the old intact
|
|
||
| auto substitute = [&result](TStringBuf placeholder, TStringBuf value) | ||
| { | ||
| SubstGlobal(result, placeholder, value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lambda is not needed
| return out; | ||
| } | ||
|
|
||
| TString GetUrlFromTemplate( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to move to anonymous namespace
685f1b3 to
aa3b9bc
Compare
|
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 125d148.
🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 125d148.
🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 125d148.
|
|
|
||
| if (data.MonitoringUrlTemplate.empty()) { | ||
| return TStringBuilder() | ||
| << data.MonitoringUrl << "/projects/" << data.MonitoringProject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут беда с форматированием, до этого было правильное
| << data.MonitoringClusterName << "&p.volume=" << diskId; | ||
| } | ||
|
|
||
| return GetUrlFromTemplate( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут тоже. В целом clang прогнать на новый код и не надо об этом думать.