Refatorar pipeline de métricas: services, counter, opensearch#111
Merged
pitangainnovare merged 43 commits intomainfrom May 2, 2026
Merged
Refatorar pipeline de métricas: services, counter, opensearch#111pitangainnovare merged 43 commits intomainfrom
pitangainnovare merged 43 commits intomainfrom
Conversation
…erge_production_dotenvs)
ab15601 to
8429109
Compare
…, index, cleanup)
8429109 to
bdf2e00
Compare
This was
linked to
issues
May 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
O que esse PR faz?
Reestrutura completamente o pipeline de métricas em 3 novos pacotes:
metrics/services/— pipeline de parse/export:jobs.py(ciclo de vida DailyMetricJob),resources.py(fetch robots/mmdb),parser.py(parse + heartbeat),export.py(OpenSearch),daily_payloads.py(I/O em disco)metrics/opensearch/— cliente OpenSearch:client.py,mappings.py(4 esquemas de índice),scripts.py(Painless upsert),names.py(index naming)metrics/counter/— lógica COUNTER R5.1:access.py(extração/validação),aggregation.py(unique metrics),documents.py(build de documentos OpenSearch),identifiers.py,parser.pymetrics/tasks/— tasks Celery divididas:parse.py,process.py,resume.py,index.py,cleanup.pyRemove
metrics/es.py,metrics/utils/(indexing, parser_utils, file_utils). Corrige imports e mock paths nos testes.Onde a revisão poderia começar?
metrics/counter/access.py— extração de dados de acesso COUNTER R5.1metrics/opensearch/client.py— OpenSearchUsageClientmetrics/services/parser.py— orquestração do pipelineScreenshots
N/A
Quais são tickets relevantes?
N/A
Referências
N/A