Skip to content

netflame/scraprom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scraprom

scrapy stats collector for prometheus

how to use

  1. pip3 install -U scraprom
  2. STATS_CLASS = 'scraprom.PromStatsCollector'
  3. SCRAPROM_PUSHGATEWAY_URL = 'host:port' # default is '0.0.0.0:9091'
  4. SCRAPROM_JOB_NAME = 'job_name' # default is scrapy
  5. SCRAPROM_PUSH_TIMEOUT = 'timeout_in_seconds' # default is 3
  6. SCRAPROM_UPDATE_INTERVAL = 'interval_in_seconds' # default is 5
  7. SCRAPROM_METRICS_PREFIX = 'metrics_prefix' # default is 'scraprom'

Releases

No releases published

Packages

No packages published

Languages