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.9.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.9-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yfinance_exporter-1.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 993ca92122f2cfa0c0f0391bb17562f6361de1cd07f4d5e825b9afd7b5b28100
MD5 2430bd9f2d3f47615505934babdfbe48
BLAKE2b-256 4e71cecff99b1bbaba21a97c7d590113f2a88a9b000efc857feb79b3a6537b5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yfinance_exporter-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c895505bb2421714bf16161cefc050d4b004c9eb2869b39c8cdaf421b81f2aa8
MD5 3f413201ef98174ec6c9de9c65225123
BLAKE2b-256 40d469c466a1c61fb13116bf7cc2682083a555f00f1e9f4723646160166c7409

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