-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Kpi host #34769
Kpi host #34769
Conversation
Pinging @elastic/secops |
@angorayc, yeah, we'll want to calculate the host count using |
💚 Build Succeeded |
💔 Build Failed |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
Hey, @angorayc (cc @tsg). Great job putting this together. Here are my questions and suggestions regarding these KPI additions:
All that said, please let me know if you'd like to have a chat about this, or if you'd like me to mock something up based on the answers to the above, and I'd be happy to accommodate. |
}, | ||
}; | ||
|
||
export const getKpiHostsQueryMock = (logger: Logger) => ({ |
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 this doesn't have any usages, is this intended as a helper for a future schema
test?
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.
I think I will have to make a unit test for schema in this case 🤣
} | ||
|
||
extend type Source { | ||
KpiHosts(id: String, timerange: TimerangeInput!, filterQuery: String): KpiHostsData |
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.
Do you want a !
at the end of KpiHostsData
? Without the !
the source resolver generated will accept a null:
export namespace SourceResolvers {
export interface Resolvers<Context = SiemContext, TypeParent = Source> {
KpiHosts?: KpiHostsResolver<KpiHostsData | null, TypeParent, Context>;
}
Looking at the other resolvers under SourceResolvers
in /server/graphql/types.ts
, it seems most most only accept their explicit type (so with a !
above).
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.
Good catch, thanks! It makes no sense if KpiHosts
is null and accepted.
Hey @MichaelMarcialis, thanks for the feedback :) There's an issue regarding to what matrix we are going to show on this page. I'll merge some of the KPIs, split them into two rolls if there are still more than four or five left, and double check with the team and see if all the KPIs are useful. In my next PR I'll align the KPI widget on both hosts and network page with the latest design. Please feel free to let me know if there's other thing I should cover in this PR. Thank you so much!
I agree that we should make the most out of the space and keep only something super useful.
|
Hey Michael, I updated it accordingly, any suggestions are welcome.
|
Can't reopen this PR, so please refer to this one instead. |
💚 Build Succeeded |
This PR is to add kpi matrix on hosts page: https://github.com/elastic/ingest-dev/issues/352
Questions:
Auditbeat FIM|Auditd Events
to jsut showAuditbeat Events
as we probably have more numbers to show in the future.3. Number of user
matrix seems to be only valid forAuditbeat
, would we want that?cardinality
ofsocket.entity_id
), or maybe number of unique IP addresses (cardinality
ofsource.ip
/destination.ip
). - general_query.dsl