Telemetry follow-up: tier 2, endpoint hardening, retention
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, python
- Lĩnh vực
- backend-api-design, databases, observability, security
Hướng nghiên cứu
Read related issues #1106 and #1200, then inspect the /telemetry endpoint and carbonserver/docker/entrypoint.sh, especially its proxy-header configuration. Resolve the open tier-2 publication and token questions, choose an endpoint-hardening approach, define retention and its purge job, and replace the schema drift approach with one-way generation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
#1200 ships a reduced version of the telemetry proposed in #1106: only the minimal tier, sent once per process to an open /telemetry endpoint, with no API token and no coordinates. This issue tracks what was left out so #1200 could stay small.
Describe the solution you'd like
- Tier 2 (
extensive). Reintroduce the usage fields from #1106 (integration, output methods, notebook/IDE/CI detection, energy and emissions summary). Open questions: are the fields sent to/telemetryonly, or also published as runs and emissions in a public CodeCarbon experiment, as #1106 proposed? The second needs a write token, and a token shipped in an open-source package is public, so it must only be able to write to that one experiment. - Endpoint hardening. The in-process per-IP limit on
/telemetry(60 requests per minute) can be bypassed: uvicorn runs with--proxy-headers --forwarded-allow-ips=*(carbonserver/docker/entrypoint.sh), so a client can set its ownX-Forwarded-For. It is also per process. Options: trust only the load balancer's addresses, or rate-limit at the proxy. - Retention. Decide how long telemetry rows are kept, document it, and add the purge job.
- Schema generation. Generate the server schema from the client one (or the reverse) instead of relying on the drift test.
Describe alternatives you've considered
Keeping tier 2 in #1200. Dropped to get the minimal tier reviewed and deployed first.
Additional context
Related: #1106 (original proposal), #1200 (minimal tier).
- Ngôn ngữ chính
- Python
- Star
- 1.9k
- Fork
- 351
- Merge trung bình
- 3 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mlco2/codecarbon
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
mlco2/codecarbon#1460 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CLI: get_config() returns None without [codecarbon] section; get_api_endpoint() appends api_endpoint under wrong sectionCó thể đã có người làm @sohammishra864-wq đã nhận 38 ngày trước. Đang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 82/100
mlco2/codecarbon#1432 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update the screen shot of the dashboardCó thể đã có người làm @KLGani đã nhận 12 ngày trước. Đang mởdocumentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mlco2/codecarbon#1423 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OfflineEmissionsTracker silently returns a half-built object when construction failsCó thể đã có người làm @davidberenstein1957 đã nhận 86 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mlco2/codecarbon#1311 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
mlco2/codecarbon#1428 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của mlco2/codecarbon
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Textualize/textual#6753 · 1 bình luận ·
-
priority:low size:small
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
RonaldHensbergen/composable-data-stack#1177 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Use registered media types for HDF5 and NetCDF, and stop claiming media_type must be IANA-registeredĐang mởdocumentation metadata
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 1 ngày
-
check-typing: ty 0.0.98+ fails on the renamed rule `unresolved-import` (now `import-not-found`)Có thể đã có người làm @oberstet đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
crossbario/cfxdb#145 ·