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.2.tar.gz (2.6 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.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yfinance_exporter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6d91a578480307997968bcfc1453136ef8c8cbae12f3b8c6966e7377add211bd
MD5 ea70b713435795b2045b63187420353e
BLAKE2b-256 07a00a4c67b9d7640d7c139205a106d1e1dac2dc8cc7d63ce6840c5abd159489

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yfinance_exporter-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c437d5106b03a82f51430969d5a1d7a9c4e2576cd48759d21ebd329bd5d01665
MD5 b7dd22bc8c5b08f85b0ead785fc7c6f6
BLAKE2b-256 6c13422123c9c41b5909edce6d98ba374014ddc741812d5d43594fd7db084339

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