Skip to content
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

feat: add JSON testing data #175

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Conversation

robbat2
Copy link
Contributor

@robbat2 robbat2 commented Nov 8, 2023

  • Add README about test data.
  • Add script to redact sensitive fields.
  • Add JSON testing data collected from many systems, with redaction of sensitive fields.

The initial corpus includes:

  • NVME drives
  • SAS drives - HDD only, no SSD
  • SCSI drives - HDD only, no SSD
  • SATA drives - SSD & HDD

- Add README about test data.
- Add script to redact sensitive fields.
- Add JSON testing data collected from many systems, with redaction of
  sensitive fields.

The initial corpus includes:
- NVME drives
- SAS drives - HDD only, no SSD
- SCSI drives - HDD only, no SSD
- SATA drives - SSD & HDD

Signed-off-by: Robin H. Johnson <[email protected]>
@robbat2
Copy link
Contributor Author

robbat2 commented Nov 8, 2023

@NiceGuyIT here's the test data PR as requested; with some redaction tooling.

@k0ste
Copy link
Contributor

k0ste commented Nov 15, 2023

This will be merged and used for CI? 🤔
In that case we are interested in providing more JSON's

@robbat2
Copy link
Contributor Author

robbat2 commented Nov 15, 2023

@k0ste yes, I would plan to use this for CI; do you have drives that differ significantly from these models I collected?

@NiceGuyIT
Copy link
Member

Thank you @robbat2 !

The current implementation uses smartctl --json --scan for fake data. A switch needs to be added similar to PR #107 that adds support for which devices to scan. Any takers?

@NiceGuyIT NiceGuyIT merged commit 172bfb3 into prometheus-community:master Nov 15, 2023
2 checks passed
@k0ste
Copy link
Contributor

k0ste commented Nov 16, 2023

do you have drives that differ significantly from these models I collected?

I don’t know what to mean by significant, but yes, - I will prepare data on models that do not currently exist

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.

3 participants