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.14.tar.gz (2.8 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.14-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yfinance_exporter-1.0.14.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Linux/6.14.0-15-generic

File hashes

Hashes for yfinance_exporter-1.0.14.tar.gz
Algorithm Hash digest
SHA256 962b499258e64d9b1779ee8d1a1db992cf207e16a23cafe9fdda31b7b6add16d
MD5 de4c1b77e3d862b423535ac9546b9c38
BLAKE2b-256 2fd77cea7b6aa8084be78c80003491ba263c3abceefe5bdbcf036749c7761baa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yfinance_exporter-1.0.14-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Linux/6.14.0-15-generic

File hashes

Hashes for yfinance_exporter-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 d574501bdb48607c479a95dea5797f8779196da4549e2363641a1b45fd9ae8b1
MD5 25c9a128110c557162de69c4d770ee24
BLAKE2b-256 db58b1ae93747af56597480d0c3bd03cc232c5a539b077548f953b2aa1aa7b0d

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