-
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
[vSphere] add triggered alarm to existing metricsets. #40714
[vSphere] add triggered alarm to existing metricsets. #40714
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
@niraj-elastic : Can we please keep this change for just the alarms as we have to do it for all metricsets. It becomes difficult to review otherwise. |
This pull request is now in conflicts. Could you fix it? 🙏
|
…phere_add_alerts_metrics Conflicts: metricbeat/module/vsphere/fields.go
Please update sample jsons of all the metricsets. |
This pull request is now in conflicts. Could you fix it? 🙏
|
…phere_add_alerts_metrics Conflicts: metricbeat/module/vsphere/datastore/datastore.go metricbeat/module/vsphere/host/host.go
|
for _, alarmState := range triggeredAlarmState { | ||
var triggeredAlarm triggerdAlarm | ||
var alarm mo.Alarm | ||
err := pc.RetrieveOne(ctx, alarmState.Alarm, nil, &alarm) |
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.
Where is the alarm state being compared to red "critical alarms ?
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.
@ishleenk17 As we discussed yesterday, we will fetch all the triggered alarms and ingest them, filtering will be done in pipeline of kibana.
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.
Are we able to access triggered_alarms.state
in the triggered alarms object
, if user wants to get only red alarms there?
Can you share here the processor
We will be able to do it in ingest pipeline in Integrations.
Are we mentioning somewhere which processors can they use to achieve the same result in beats ?
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.
Yes i have tried to access triggered_alarm.state
and fetch red alarms.
In beats also Processors are supported which can be used to fetch red alarms. user can use something like script processor.
{ | ||
"name": "Host memory usage", | ||
"id": "alarm-4.host-12", | ||
"status": "yellow", |
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 list only the critical alarms, yellow ones should not be listed.
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 can filleter out yellow ones by using pipeline in kibana. we have kept the yellow ones as well so that in future we don't have to update vshphere metricsets to add yellow
alarms if customer requires it.
…-elastic/beats into vsphere_add_alerts_metrics
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!
Can we update data.json of other metricsets also with dummy values is also fine. |
This pull request is now in conflicts. Could you fix it? 🙏
|
The changes look fine. |
…phere_add_alerts_metrics Conflicts: metricbeat/module/vsphere/datastore/datastore.go metricbeat/module/vsphere/fields.go metricbeat/module/vsphere/host/host.go metricbeat/module/vsphere/virtualmachine/virtualmachine.go
462e997
to
911dbfc
Compare
* add alert names * update host metricset * add alert metrics to all the metricsets * add changelog entry * update data_test * add triggerd alarms * added entity name * mage check --------- Co-authored-by: Niraj Rathod <niraj.rathod@crestdatasys.com> Co-authored-by: Kush Rana <kush.rana@elastic.co> Co-authored-by: harnish-elastic <harnish.chavda@elastic.co> (cherry picked from commit 885a2db) # Conflicts: # metricbeat/module/vsphere/datastore/datastore.go # metricbeat/module/vsphere/datastorecluster/datastorecluster.go # metricbeat/module/vsphere/fields.go # metricbeat/module/vsphere/host/host.go # metricbeat/module/vsphere/virtualmachine/virtualmachine.go
* add alert names * update host metricset * add alert metrics to all the metricsets * add changelog entry * update data_test * add triggerd alarms * added entity name * mage check --------- Co-authored-by: Niraj Rathod <niraj.rathod@crestdatasys.com> Co-authored-by: Kush Rana <kush.rana@elastic.co> Co-authored-by: harnish-elastic <harnish.chavda@elastic.co> (cherry picked from commit 885a2db)
…ricsets. (#40835) * [vSphere] add triggered alarm to existing metricsets. (#40714) * add alert names * update host metricset * add alert metrics to all the metricsets * add changelog entry * update data_test * add triggerd alarms * added entity name * mage check --------- Co-authored-by: Niraj Rathod <niraj.rathod@crestdatasys.com> Co-authored-by: Kush Rana <kush.rana@elastic.co> Co-authored-by: harnish-elastic <harnish.chavda@elastic.co> (cherry picked from commit 885a2db) * Address CI issue --------- Co-authored-by: niraj-elastic <124254029+niraj-elastic@users.noreply.github.com> Co-authored-by: ishleenk17 <ishleen.kaur@elastic.co>
…icsets. (#40812) * [vSphere] add triggered alarm to existing metricsets. (#40714) * add alert names * update host metricset * add alert metrics to all the metricsets * add changelog entry * update data_test * add triggerd alarms * added entity name * mage check --------- Co-authored-by: Niraj Rathod <niraj.rathod@crestdatasys.com> Co-authored-by: Kush Rana <kush.rana@elastic.co> Co-authored-by: harnish-elastic <harnish.chavda@elastic.co> (cherry picked from commit 885a2db) # Conflicts: # metricbeat/module/vsphere/datastore/datastore.go # metricbeat/module/vsphere/datastorecluster/datastorecluster.go # metricbeat/module/vsphere/fields.go # metricbeat/module/vsphere/host/host.go # metricbeat/module/vsphere/virtualmachine/virtualmachine.go * fix existing conflicts * fix changelog entry --------- Co-authored-by: niraj-elastic <124254029+niraj-elastic@users.noreply.github.com> Co-authored-by: Kush Rana <89848966+kush-elastic@users.noreply.github.com> Co-authored-by: Kush Rana <kush.rana@elastic.co>
Description
Added
alert.names
field to fetch information related to alert in all the metricsets.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues