-
Notifications
You must be signed in to change notification settings - Fork 409
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
Dynamic prometheus #1127
Dynamic prometheus #1127
Conversation
Signed-off-by: Brian Forbis <[email protected]>
Signed-off-by: Brian Forbis <[email protected]>
Signed-off-by: Brian Forbis <[email protected]>
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.
Nice! Thanks
## Using callback with `EntityPrometheusAlertCard` | ||
|
||
You can add callbacks that will be executed when the user clicks on a row in the table of the `EntityPrometheusAlertCard` component. This callback is optional, and the rows become clickable only when the callback is supplied. The callback function is also provided with data of type JSON. It contains the information from the row of the table. | ||
The component with callback can look like this: | ||
|
||
```typescript | ||
<EntityPrometheusAlertCard onRowClick={callbackFunction} /> | ||
``` | ||
```` |
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.
Looks like I screwed up the code fence. Will fix this.
Signed-off-by: Brian Forbis <[email protected]>
Step 2: Hijack this path by writing your own proxy middleware extension. | ||
**packages/backend/src/plugins/proxy.ts** | ||
|
||
````diff |
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.
````diff | |
```diff |
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.
Yep, that was it!
Signed-off-by: Brian Forbis <[email protected]>
Signed-off-by: Brian Forbis <[email protected]>
CI run seems to not have downloaded Cypress correctly. |
Yup, GitHub does tht sometimes. I'll kick it off again |
@Xantier thanks for merging :) Just curious, do you have a scheduled date this will be released? |
Was thinking of releasing it with upgrades to 1.18, but I just shipped this now as a standalone shipment |
Closes #1125
✔️ Checklist
yarn changeset
in the root)