Telemetry follow-up: tier 2, endpoint hardening, retention
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- docker, python
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Python
- Estrellas
- 1.9k
- Forks
- 351
- Merge medio
- 3 d 12 h
- PR fusionados (30 d)
- 22
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mlco2/codecarbon
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
mlco2/codecarbon#1460 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
CLI: get_config() returns None without [codecarbon] section; get_api_endpoint() appends api_endpoint under wrong sectionPosiblemente ocupada @sohammishra864-wq la tomó hace 38 días. Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 82/100
mlco2/codecarbon#1432 ·
Los mantenedores suelen responder en 1 día
-
Update the screen shot of the dashboardPosiblemente ocupada @KLGani la tomó hace 13 días. Abiertodocumentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mlco2/codecarbon#1423 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
OfflineEmissionsTracker silently returns a half-built object when construction failsPosiblemente ocupada @davidberenstein1957 la tomó hace 86 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mlco2/codecarbon#1311 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
mlco2/codecarbon#1428 ·
Los mantenedores suelen responder en 1 día
Todos los issues de mlco2/codecarbon
Issues similares
-
Remove the `pull_request_target` workflow before GitHub blocks itPosiblemente ocupada @jat255 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
IBM/mcp-context-forge#7483 ·
Los mantenedores suelen responder en 2 días
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[Bug Report]: OpenAI 辅助 API 连通性测试因输出上限仅 1 token 误报“未知错误”Posiblemente ocupada @fjfanjian la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Project-N-E-K-O/N.E.K.O#3640 ·
Los mantenedores suelen responder en 1 día
-
author-page correction
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
acl-org/acl-anthology#10808 · 1 comentario ·
Los mantenedores suelen responder en 1 día