No project description provided
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yfinance_exporter-1.0.11.tar.gz.
File metadata
- Download URL: yfinance_exporter-1.0.11.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54dffab9e90a6ab214c8825a9a2f51347d41e900074ec4f4ce2787a69fa8d2b3
|
|
| MD5 |
f66a4375b1113eebcc9fa55625f2690b
|
|
| BLAKE2b-256 |
ee9f3b62b29b596887e624aa3d3a56a0d19d88691c061f115178750714bed947
|
File details
Details for the file yfinance_exporter-1.0.11-py3-none-any.whl.
File metadata
- Download URL: yfinance_exporter-1.0.11-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aa003331c5bb40b17ef411a658c551083b51a67aee05e088727dd417cafe36d
|
|
| MD5 |
41cd7fb13c8fc60ad557764c0985313d
|
|
| BLAKE2b-256 |
62c04b6984ea28ece7d840ae7a6baaedad055fb5f8616c1e08f175c3bd5da8b0
|