Closed
Bug 1450108
Opened 7 years ago
Closed 7 years ago
Process Dev and Stage AMO nginx logs using EMR Mango
Categories
(Data Platform and Tools Graveyard :: Operations, enhancement, P1)
Data Platform and Tools Graveyard
Operations
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jason, Assigned: jason)
References
Details
(Whiteboard: [DataOps])
AMO stats related changes are difficult to test today because we do not process and import stats data into these environments. With the EMR mango setup we can process these logs and have the available for the environments.
We would need to:
* Start shipping nginx logs on a daily basis to a S3 bucket
* Configure S3 ACLs between environments
* Configure mango log processing job to process the logs in the S3 bucket
| Assignee | ||
Updated•7 years ago
|
Whiteboard: [DataOps]
Hi Jason,
Let us know what we need to do from amo perspective. (maybe create sub tickets of this one and assign to me?)
From amo perspective, we prefer that each our environment ships logs to a different S3 bucket. It's clearer for us to configure that way.
Thanks.
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jthomas
Priority: -- → P1
Add a note to myself to update https://github.com/mozilla/addons-server/issues/5207 when this is done.
| Assignee | ||
Comment 4•7 years ago
|
||
I've begun work on this and realized that there are some days when there are no downloads or update pings for these environments.
We should drive some traffic to these environments and simulate add-on download and updates.
:mat do you have a preference for which add-on and theme we use here? Maybe the qa team has some input here?
Flags: needinfo?(mpillard)
Priority: P2 → P1
Comment 5•7 years ago
|
||
Ideally, it would be several add-ons.
5-10 add-ons of each type (addontypeid in 1, 3, 5, 10 are the ones that matter the most for extensions) that are public (status = 4, _current_version is NOT NULL) would be ideal. To get you started you could pick the last x ones matching those criteria and ORDER BY average_daily_users DESC, then hardcode their ids (since the average_daily_users value is going to change once you're done)
Flags: needinfo?(mpillard)
| Assignee | ||
Comment 6•7 years ago
|
||
> Ideally, it would be several add-ons.
I am going to file another bug for this request.
https://github.com/mozilla/telemetry-airflow/pull/320 for airflow dag addition.
https://github.com/mozilla-services/weblog_processing/pull/9 to add support for multiple amo environments.
| Assignee | ||
Comment 7•7 years ago
|
||
https://github.com/mozilla/addons-server/pull/8783 for addons-server changes
https://github.com/mozilla-services/cloudops-deployment/pull/2209 for puppet and config changes.
| Assignee | ||
Comment 8•7 years ago
|
||
https://workflow.telemetry.mozilla.org/admin/airflow/tree?dag_id=mango_log_processing_amo_dev_stage for log processing status.
Deployed changes to addons-dev, stats are available https://addons-dev.allizom.org/en-US/firefox/addon/multi-account-containers/statistics/?last=30
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Hi Jason, I'm getting a 400 error when accessing the telemetry link above.
```
The redirect URI in the request, https://workflow.telemetry.mozilla.org/oauth2callback?next=%2Fadmin%2Fairflow%2Ftree%3Fdag_id%3Dmango_log_processing_amo_dev_stage, does not match the ones authorized for the OAuth client.
```
I may need READ permission for that URL.
Also could you remind me the dag_id for -prod?
| Assignee | ||
Comment 10•7 years ago
|
||
You should already have access. Can you try https://workflow.telemetry.mozilla.org first and then going to that page? mango_log_processing_amo is prod.
Comment 11•7 years ago
|
||
Thanks Jason. It works for me now.
Updated•2 years ago
|
Product: Data Platform and Tools → Data Platform and Tools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•