Added in a cdx filesize count statistic for the Grafana Dashboard to report on sizing
This commit is contained in:
parent
2dddda28bf
commit
b2a9c44c9e
@ -22,6 +22,10 @@ def run_cdxsummary(file_path, json_filepath):
|
|||||||
# Add "cdxcount" entry with value 1
|
# Add "cdxcount" entry with value 1
|
||||||
json_output["cdxcount"] = 1
|
json_output["cdxcount"] = 1
|
||||||
|
|
||||||
|
# Add "cdxsize" entry with the size of the cdx.gz file in bytes
|
||||||
|
cdx_size_bytes = os.path.getsize(file_path)
|
||||||
|
json_output["cdxsize"] = cdx_size_bytes
|
||||||
|
|
||||||
# Remove "pathquery" and "samples" keys
|
# Remove "pathquery" and "samples" keys
|
||||||
if "pathquery" in json_output:
|
if "pathquery" in json_output:
|
||||||
del json_output["pathquery"]
|
del json_output["pathquery"]
|
||||||
|
Loading…
Reference in New Issue
Block a user