-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add StarAcq event type and infrastructure for emailed alerts #94
Conversation
I don't really have an opinion on the sending mail choice. It looks like our original requirement during GAG migration was that local "sendmail" and direct connections to head.cfa.harvard.edu would continue to work. It looks like direct SMTP connections to localhost are doing the right thing too and we've been moving to that in more and more code. |
For sot/attitude_error_mon#9 I was also planning to add the one shot pitch/yaw breakdown (or a delta quaternion), and I figured it made sense to do it in kadi, so nice to have it done. Where is this running on the side? |
It's running on /proj/sot/ska/dev-kadi every 2 hours (except not at 2 and 4am, no point). I'll change alerts to aca_alert, just wanted to make sure it didn't blow up. |
|
||
alerts = [] | ||
|
||
if abs(event['one_shot_pitch']) > 60 or abs(event['one_shot_yaw']) > 60: |
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.
Is 60 a little low? I thought the warning on 50220 wasn't that helpful with estimated maneuver error of ~53 arcsec. (Granted, anything over the maneuver error estimate seems worth a trending-style warning, but not sure if we need an alert at 60 unless all the boxes are 80).
One shot at 2017:081:20:16:31.008
Roll : 2.11
Pitch : 63.38
Yaw : 7.40
I purposely set these limits pretty low for increased awareness in the near term. But note that 60 is not that low from a historical perspective since fewer than 70 of 9000 one-shots in the last 5 years exceed that. So seeing 60 means something slightly unusual has happened and if we see it every week that means one shots are worse. The alert on |
I don't immediately see why this kicked off two different notes for the 19504 acquisition:
|
I'm seeing events_staracq in /proj/sot/ska/data/kadi/events.db3, so did this end up in flight or was that a previously-existing thing? |
Will leave this as a branch but closing since we have no plans to merge to master. |
This adds a new kadi event that has the number of acq stars ID'd and which ones, along with the size of one-shots. This is slightly messy and might not end up being merged. However, it will be run in the short term on the side at 2 hour intervals to provide visibility into metrics related to gyro bias variations and mitigation. This might belong elsewhere (like attitude_error_mon), but decided the existing infrastructure in kadi was useful for this.
Note also the new flag to use MAUDE instead of CXC as the telemetry data source.
To do:
@jeanconn - any opinion on the difference between using
localhost
vs.head.cfa.harvard.edu
for the SMTP server?