Skip to content

[Draft] Initial implementation of FilCDN Service Level Indicators #75 - #23

Draft
Fatumayattani wants to merge 2 commits into
filbeam:mainfrom
Fatumayattani:filcdn/sli-draft
Draft

[Draft] Initial implementation of FilCDN Service Level Indicators #75#23
Fatumayattani wants to merge 2 commits into
filbeam:mainfrom
Fatumayattani:filcdn/sli-draft

Conversation

@Fatumayattani

Copy link
Copy Markdown

This draft PR shows the current work on measuring and visualizing FilCDN SLAs using the data provided.

Progress So Far:

  • Added a new section above "All time stats" called "Service Level Indicators (30-day moving average)".
  • Added three cards for the three SLIs we want to track.
  • Extracted metrics from the provided dataset.
  • Integrated the badbits table from the D1 database snapshot.

Current Observations / Challenges:

  • Metrics are currently showing 0% cache hit ratio and 0 ms TTFB.
  • Some fields in badbits appear to be missing, which may be affecting calculations.

Looking forward to continuing work on this under your guidance.

@Fatumayattani
Fatumayattani marked this pull request as draft September 22, 2025 09:56

@bajtos bajtos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you, @Fatumayattani, for the pull request. I see many unrelated changes and new files with unclear purpose. Can you please clean up your pull request to contain only the relevant and necessary changes?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove all .wrangler/ files. Consider adding .wrangler to .gitignore.

Comment thread _file/data/[client]-daily-stats.json.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where is the _file directory coming from? It looks like a duplicate of what we have in src/data. Can you please remove the _file folder from the pull request?

Comment thread src/data/[client]-daily-stats.json.js Outdated
Comment on lines +33 to +34


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unrelated whitespace changes, please revert.

Suggested change

Comment on lines +34 to +35


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unrelated whitespace changes, please revert.

Suggested change

Comment thread src/data/d1_migrations.json Outdated
{"id":11,"name":"0011_add_wallet_details_table.sql","applied_at":"2025-09-09 11:44:23"},
{"id":12,"name":"0012_add_proof_set_stats.sql","applied_at":"2025-09-09 11:44:23"},
{"id":13,"name":"0013_add_wallet_screened_at.sql","applied_at":"2025-09-09 11:44:24"},
{"id":14,"name":"0014_m2_5_upgrades.sql","applied_at":"2025-09-09 11:44:24"}]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What do we need this file for? Can you please remove it from the PR?

Comment thread observablehq.config.js
// preserveExtension: false, // drop .html from URLs
// preserveIndex: false, // drop /index from URLs
dynamicPaths: [...clientPaths],
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please preserve our current Observable configuration.

Comment thread wrangler.toml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This does not feel right to me. What is this wrangler.toml file for?

@Fatumayattani

Copy link
Copy Markdown
Author

Hi @bajtos ,

Thanks for the detailed review and guidance! I’m working on cleaning up the PR to remove unrelated files, revert unintended changes, and focus solely on the relevant SLA implementation. I’ll update the PR once the cleanup is complete.

Appreciate your patience and feedback!

@bajtos
bajtos self-requested a review October 24, 2025 15:06
@bajtos
bajtos removed their request for review March 13, 2026 15:42
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.

2 participants