GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Gerapy/GerapyPrometheusExporter: Gerapy Prometheus Exporter

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
gerapy_prometheus_exporter
gerapy_prometheus_exporter
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

Gerapy Prometheus Exporter

This is a package for supporting Prometheus in Scrapy, also this package is a module in Gerapy.

And the source code is modified from https://github.com/rangertaha/scrapy-prometheus-exporter.

Installation

pip3 install gerapy-prometheus-exporter

Usage

Set it to settings.py:

EXTENSIONS = {
    'gerapy_prometheus_exporter.extension.WebService': 500,
}

By default the extension is enabled. To disable the extension you need to set PROMETHEUS_EXPORTER_ENABLED to False.

The web server will listen on a port specified in PROMETHEUS_EXPORTER_PORT (by default, it will try to listen on port 9410)

The endpoint for accessing exported metrics is:

http://0.0.0.0:9410/metrics

Settings

These are the settings that control the metrics exporter:

PROMETHEUS_EXPORTER_ENABLED

Default: True

A boolean which specifies if the exporter will be enabled (provided its extension is also enabled).

PROMETHEUS_EXPORTER_PORT

Default: [6080]

The port to use for the web service. If set to None or 0, a dynamically assigned port is used.

PROMETHEUS_EXPORTER_HOST

Default: '0.0.0.0'

The interface the web service should listen on.

PROMETHEUS_EXPORTER_PATH

Default: 'metrics'

The url path to access exported metrics Example:

http://0.0.0.0:9410/metrics

PROMETHEUS_EXPORTER_UPDATE_INTERVAL

Default: 5

This extensions periodically collects stats for exporting. The interval in seconds between metrics updates can be controlled with this setting.

About

Gerapy Prometheus Exporter

Resources

Readme
Activity
Custom properties

Stars

3 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.