43 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MetricAliexpressExchangeRate
[![MIT License](https://img.shields.io/github/license/serega404/EasyESPRealy)](https://github.com/serega404/MetricAliexpressExchangeRate)
Экспортер курса Aliexpress и ЦБ РФ
Для сбора метрик я использую [Victoria Metric](https://github.com/VictoriaMetrics/VictoriaMetrics) в режиме CSV
Особая благадарность сайту [cbr-xml-daily.ru](https://cbr-xml-daily.ru) за предоставление данных с сайта [cbr.ru](https://cbr.ru)
### Запуск через Cron
``` Cron
*/10 * * * * python3 /home/bots/KursExporter/main.py
```
### Отображение в Grafana
Файл для импорта: [grafana.json](./grafana.json)
<img src="./grafana.png" width="400" height="300" />
### Запуск в Docker
``` Docker
docker run -d --name MetricAliexpressExchangeRate \
--restart=always \
-e METRIC_SERVER_URL='http(s)://<IP_ADDR>:<PORT>/' \
ghcr.io/serega404/metricaliexpressexchangerate:main
```
#### Дополнительные переменные среды:
* `CBRF_APISITE_URL`
* `ALI1USD_PAGE_URL`
### Библиотеки
* [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/)
### Лицензия
Распространяется под MIT License. Смотри файл [`LICENSE`](./LICENSE) для того что бы узнать подробности.