Skip to content

Conversation

@jlashner
Copy link
Contributor

This PR adds quantiles for stats into session data for iv and bias step ops, and publishes them, so we can have some data quality metrics in grafana.

Description

Adds quantiles from Rn to IV op, and Rtes, Rfrac, and Si for bias steps / bias waves ops.

Motivation and Context

We would like to be able to tell immediately from grafana if there is an issue with detector data quality.

How Has This Been Tested?

Not yet tested. I'd like to test on satp1 or satp3 before merging.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@jlashner jlashner requested a review from BrianJKoopman May 23, 2024 20:52
@jlashner jlashner requested a review from msilvafe May 23, 2024 20:52
Copy link
Contributor

@msilvafe msilvafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, can you add one for take_noise method as well?

block_data.update(QuantileData(**qd).to_block_data())
data = {
'timestamp': time.time(),
'block_name': 'bias_steps_results',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be bias_wave_results

Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to test on satp1 or satp3 before merging.

Let me know when it's tested and I'll take a look.

@jlashner
Copy link
Contributor Author

This has now been tested on satp1, and quantiles are viewable in grafana:
image

We need to figure out a good way to display these and set alarms on them, but I think this is ready for review @BrianJKoopman.

@jlashner jlashner merged commit 6688b61 into main Jun 11, 2024
@jlashner jlashner deleted the pysmurf-op-data-quality-checks branch June 11, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants