Skip to main content

No project description provided

Project description

PyPI - Version Docker Image Version

YFinance Exporter

Metrics served

{
    "stocks": [
        {"isin": "FR0000120073", "name": "AIR LIQUIDE", "ycode": "AI.PA"}
    ]
}

Running it

For the next few bits of code, we'll suppose you have a working configuration above in ~/.config/yfinance-exporter.json.

... with python:

pip install yfinance-exporter
python -m yfinance_exporter

... with docker:

 docker run -v ~/.config/:/etc/yfinance-exporter/:ro -p 9100:9100 yfinance-exporter:main

You'll then be able retrieve some values:

curl localhost:9100/metrics

# HELP yfinance_exporter
# TYPE yfinance_exporter gauge
yfinance_exporter{status="loop"} 1.0
yfinance_exporter{status="loop-time"} 10.179875
yfinance_exporter{status="ok-stock"} 45.0
yfinance_exporter{status="ko-stock"} 2.0
[...]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yfinance_exporter-1.0.10.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yfinance_exporter-1.0.10-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file yfinance_exporter-1.0.10.tar.gz.

File metadata

  • Download URL: yfinance_exporter-1.0.10.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-19-generic

File hashes

Hashes for yfinance_exporter-1.0.10.tar.gz
Algorithm Hash digest
SHA256 cfc87c2a17a8c0313f98ead7110f1b140ad0d40fcd708520e3b8a483a1d0e1aa
MD5 6fbd857692f72e42abfc0b224c05c811
BLAKE2b-256 36762c31dc1fe440659ee67a6fd09f4a1ba2973f254e79be50f93495a2891db4

See more details on using hashes here.

File details

Details for the file yfinance_exporter-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: yfinance_exporter-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-19-generic

File hashes

Hashes for yfinance_exporter-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e97840bfebce658791915cd561e522c1c98628a2a8652d1827d324cf5f8bc7a7
MD5 56fa9387b5df1f8347d6e0e15331e9e0
BLAKE2b-256 004fb88732dbca97cf5d6b73a9aea7a9aa5419b62e770c1460ba96a9989c9f02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page