-
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
plugin: Init prometheus plugin #14
Conversation
9c2eee2
to
428f5f7
Compare
9b12216
to
43b80e9
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.
Thanks. Here is the review with a few things we had discussed in the call.
c810b79
to
3989b3f
Compare
3989b3f
to
274c1e0
Compare
0bc4145
to
428f5f7
Compare
b294b12
to
e30f9ad
Compare
e30f9ad
to
9fedb39
Compare
fdf0b88
to
607db26
Compare
c0e7c27
to
cd9f1d1
Compare
a2b6375
to
5289523
Compare
5289523
to
5adee22
Compare
Signed-off-by: yolossn <[email protected]>
We have gotten the design indication that there should be a chart skeleton to incite users to enable prometheus, as well as a toggle button to hide/show the chart. Signed-off-by: Joaquim Rocha <[email protected]>
So far it's just whether it's visible or not. Also refactors the code a bit so we don't have a lot of things mixed up. Signed-off-by: Joaquim Rocha <[email protected]>
This makes it easy for the test suites to pass in a custom mock function Signed-off-by: ashu8192 <[email protected]> Signed-off-by: ashu8192 <[email protected]>
5adee22
to
b2166a6
Compare
plots: Array<{ | ||
query: string; | ||
name: string; | ||
fillColor: string; | ||
strokeColor: string; | ||
dataProcessor: (data: any) => any[]; | ||
}>; | ||
fetchMetrics: (query: object) => Promise<any>; |
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.
We should avoid having any
types unless we really accept/expect anything.
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.
it is the type of request function return which is itself any
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.
That's... not really what we should expect but let's take it just so we can move on.
Signed-off-by: ashu8192 <[email protected]> Signed-off-by: ashu8192 <[email protected]>
b2166a6
to
ebdf0b2
Compare
Tasks: