/
Consumption Metrics
Consumption Metrics
This document details the setup processes required to get consumption metrics report generation scripts installed and running on a Virtual Machine. This document is split in two stage: a one time setup and maintenance tasks.
One Time Setup
- Git Fork the branch https://github.com/DIKSHA-NCTE/telemetryreports/tree/portal_dashboards to https://github.com/project-sunbird/sunbird-analytics/tree/release-2.2.0
- Spark 2.3.1 with JARs:
- azure-storage-2.0.0.jar
- hadoop-azure-2.7.3.jar
- Credentials in bashrc for:
- Azure blob: ntpproduction
- Azure blob: ntpproductionall
- Google API's (Implementation team ID)(is a JSON file)
- Python 3.4.3 virtual environment with package listed in requirements.txt
- pip install --user virtualenv
- virtualenv ENV
- source ENV/bin/activate
- pip install -r scripts/requirements.txt
- nodeJS
- cd dags/tasks/node_csv_to_json
- npm install
- local data folder location
Instructions for Daily Metrics
- Git Pull branch
- python scripts/daily_metrics_refactored.py $local_data_folder_location
Instructions for Creation Metrics
- Git Pull branch
- python scripts/dialcode_exception_etb_reports.py.py $local_data_folder_location
Related articles
, multiple selections available,
Related content
Design for automated reports from Druid
Design for automated reports from Druid
More like this
Sunbird Monitoring
Sunbird Monitoring
More like this
API for Metrics Summary
API for Metrics Summary
More like this