-
Notifications
You must be signed in to change notification settings - Fork 5
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(metrics): Add rest of master chartdata metrics #152
base: dev
Are you sure you want to change the base?
Conversation
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.
LGTM.
I see you are almost not using anymore #include "common/platform.h". I don't remember the last decision about it, can you please remaind it.
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.
Very good job @uristdwarf 👍 🔥 🚀
I added some minor suggestions to improve readability and other aspects, but they are not stoppers for merging.
5ee28e1
to
d7b266a
Compare
For new libraries, I think we are not adding it but for existing/refactored ones we are |
455fd60
455fd60
to
e768efb
Compare
e768efb
to
a2e9778
Compare
a2e9778
to
b805df5
Compare
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.
LGTM 👍 🔥 🚀
The only suggestion I have before merging (if not done) is to run test_prometheus.sh
with ENABLE_PROMETHEUS = 0
to confirm everything works as expected.
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.
Requesting changes about bytes sent and received. The call to increment should use the second argument (by default it is 1).
Maybe this kind of decisions should be communicated to all devs. |
233bc13
to
9fe8614
Compare
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.
LGTM
1a87bce
to
da455ba
Compare
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.
Great job @uristdwarf 👍 🔥 🚀
I shared some minor suggestions for your consideration, but none of them are stoppers to merge.
However, I had compilation errors when building the project without installing prometheus-cpp-dev
package. Can you confirm whether this scenario works as expected?
83fd218
c2e4813
to
3a94d51
Compare
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.
Great job @uristdwarf 👍 🔥 🚀
a8e4f04
to
3d16686
Compare
This commit finishes adding metric data from master chartsdata. Since all the chartsdata was counters in Prometheus terminology, there was no need to add other types, however a a small refactor was needed to accomodate master metrics and in the future other service metrics. Notably removed was CPU usage and memory, since there are better ways to gather this data, including with a prometheus server itself (which will scrape this data). This commit deprecates master chartsdata, and is the first step in deprecating the CGI monitoring Signed-off-by: Urmas Rist <[email protected]>
Specifically, it checks that the master operations are working Signed-off-by: Urmas Rist <[email protected]>
Previously it required you to have the library installed on the system. Using FetchContent in CMake, it is now acquired externally if the CMake config does not exist on the system and the build option is correctly set (which it is by default). This will statically compile the library into the binary. Signed-off-by: Urmas Rist <[email protected]>
3d16686
to
cb8e3f2
Compare
This commit finishes adding metric data from master chartsdata. Since all the chartsdata was counters in Prometheus terminology, there was no need to add other types, however a a small refactor was needed to accomodate master metrics and in the future other service metrics. Notably removed was CPU usage and memory, since there are better ways to gather this data, including with a prometheus server itself (which will scrape this data).
This commit deprecates master chartsdata, and is the first step in deprecating the CGI monitoring