Skip to content

dylanharper/vaqmr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vaqmr

a data collection tool

Manual (non-scheduled) collection

Web-scrape is able to handle collection requests outside of its config.

gcloud pubsub topics publish vaqmr --message '{"collector":"web_scrape", "work_list":[{"url":"http://blah.meh","storage_key":"blah"}]}'

Adding a new collector

Add new function in main.py

Add new config in config.yml

Test locally:

import main

main.vaqmr_worker({'collector':'your_new_collector'}, 'context')
  • check output in gs://dotufp-raw/

  • deploy vaqmr

Create a schedule:

Test function:

Testing partial worklist

Test locally:

import main

main.vaqmr_worker(event={'collector':'your_new_collector',
                         'work_list':[{'url':'http://blah.meh',
                                       'storage_key':'blah'}]},
                  context='context')

Or refer Manual (non-scheduled) collection.

Monitoring

Errors: https://console.cloud.google.com/errors?service=vaqmr_worker&time=P7D&order=COUNT_DESC&resolution=OPEN&resolution=ACKNOWLEDGED&project=dotufp&folder&organizationId

Reference: https://cloud.google.com/functions/docs/monitoring/

About

data collection tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors