-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Collect license expiry date fields as well #11652
Collect license expiry date fields as well #11652
Conversation
Pinging @elastic/stack-monitoring |
@ycombinator Do you have any recommendations on how to test this? |
Unfortunately there's no easy way to test this PR until elastic/elasticsearch#40872 is resolved first. |
jenkins, test this |
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
@cachedout I've updated this PR per @tvernum's comment here: elastic/elasticsearch#40872 (comment). This is ready for review now. Thanks! |
jenkins, test this |
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.
👍
a541a44
to
331a0d0
Compare
jenkins, test this |
* Collect license expiry date fields as well * Omit expiration date fields if absent
* Collect license expiry date fields as well * Omit expiration date fields if absent
This PR teaches the
elasticsearch.cluster_stats
metricset (x-pack code path) to collect and index the license expiration fields,expiry_date
andexpiry_date_in_millis
as well.Testing this PR
Basic license
.monitoring-es-*
indices to start with a clean slate (making it easier to test)..monitoring-es-*
.license
field indexed into a.monitoring-es-*
document withtype:cluster_stats
. In particular, note that it is missing theexpiry_date
andexpiry_date_in_millis
sub-fields..monitoring-es-*
indices to start with a clean slate (making it easier to test)..monitoring-es-*
.license
field indexed into a.monitoring-es-*
document withtype:cluster_stats
. In particular, verify that it is missing theexpiry_date
andexpiry_date_in_millis
sub-fields.Trial license
.monitoring-es-*
indices to start with a clean slate (making it easier to test)..monitoring-es-*
.license
field indexed into a.monitoring-es-*
document withtype:cluster_stats
. In particular, note that it includes theexpiry_date
andexpiry_date_in_millis
sub-fields..monitoring-es-*
indices to start with a clean slate (making it easier to test)..monitoring-es-*
.license
field indexed into a.monitoring-es-*
document withtype:cluster_stats
. In particular, verify that it includes theexpiry_date
andexpiry_date_in_millis
sub-fields.