Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Download Metrics for rawdataapi #268

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

kshitijrajsharma
Copy link
Member

@kshitijrajsharma kshitijrajsharma commented Aug 19, 2024

What does this PR do ?

  • Adds optional endpoints that can be enabled through env variable for the metrics endpoint which should allow people to download the stats , such as total downloads per day , total unique users per day etc
  • Currently only available to admin users

How to test ?

  • Enable this feature with ENABLE_METRICS_APIS env variable and you should see this endpoint
    image

Consideration

In order to fetch the total download stats raw-data-api currently depends upon setup of https://github.com/hotosm/s3-logs-analyzer/ manually so that it can populate the stats on metrics table daily . Which is available here : https://github.com/hotosm/s3-logs-analyzer/blob/master/ops/systemd/download_metrics.service

@kshitijrajsharma kshitijrajsharma marked this pull request as ready for review August 19, 2024 09:55
@kshitijrajsharma kshitijrajsharma merged commit 517db88 into develop Aug 19, 2024
5 checks passed
@kshitijrajsharma kshitijrajsharma deleted the feature/metrics branch August 19, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant