Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Evaluate and implement comprehensive API monitoring

Abierto
#3,816 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
python
Área
api, devops

Línea de trabajo

Empieza por inventariar las operaciones de la API de PolicyEngine mencionadas en el issue y revisar las comprobaciones existentes a nivel de host, incluida la cobertura de grupos de rutas de #2155. Compara las opciones de monitorización personalizadas, autoalojadas y alojadas con los requisitos enumerados y, después, documenta la decisión, la cobertura de endpoints, la implementación, las notificaciones, las instrucciones operativas y las comprobaciones conservadas o aplazadas.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Problem

PolicyEngine needs functional monitoring across substantially more API behavior than the Better Stack free tier can cover. Existing host-level checks do not detect failures limited to particular route groups, and realistic calculation monitoring may require authenticated requests, response validation, and polling asynchronous operations.

Adding paid Better Stack coverage immediately would commit us to a service and recurring cost before we have compared it with an internally operated solution or other hosted products.

This issue supersedes #2155 and should preserve its required coverage while broadening the work to include option evaluation and platform design.

Objective

Evaluate and implement a cost-effective monitoring approach for PolicyEngine APIs. The selected approach may be:

  • a small custom service operated by PolicyEngine;
  • an existing self-hosted monitoring product; or
  • a paid hosted monitoring service, including Better Stack, if its cost and capabilities are the best fit.

Do not select an implementation until the alternatives have been compared against explicit requirements.

Investigation

  1. Inventory the API endpoints and complete user operations that need monitoring, including metadata, household, policy, user-profile, household-calculation, economy, and budget-window behavior.
  2. Define request frequency, acceptable response time, failure conditions, environments, and required geographic coverage.
  3. Determine requirements for:
    • public and authenticated requests;
    • safe test data and credential storage;
    • multi-request and asynchronous operations;
    • response status, content, and schema validation;
    • Slack failure and recovery notifications, including duplicate suppression;
    • execution history, latency reporting, and diagnostic evidence;
    • configuration stored in version control;
    • maintenance ownership, security updates, reliability, and data retention.
  4. Compare custom, self-hosted, and hosted approaches. Document expected recurring cost, implementation effort, operational burden, service limits, and vendor dependence.
  5. Prototype the leading candidates where documentation alone does not establish whether they satisfy the requirements.

Implementation

After recording the decision, implement the selected approach and migrate or supplement the existing checks. Monitoring should exercise representative successful operations with safe inputs rather than only checking API root responses.

Completion criteria

  • The requirements and endpoint coverage inventory are documented.
  • The alternatives and their expected costs and maintenance requirements are compared in writing.
  • The selected approach and reasons for selecting it are documented.
  • Required public, authenticated, and asynchronous API operations can be checked where applicable.
  • Failures and recoveries produce actionable Slack notifications without excessive duplicate messages.
  • Monitor definitions, credentials guidance, operating instructions, and ownership are documented.
  • Existing checks are retained, migrated, or deliberately removed with the reason recorded.
  • The route-group coverage previously tracked in #2155 is implemented or explicitly deferred in follow-up issues.
Lenguaje dominante
Python
Estrellas
18
Forks
33
Merge medio
1 d 4 h
PR fusionados (30 d)
21

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PolicyEngine/policyengine-api

Todos los issues de PolicyEngine/policyengine-api

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.