mirror of
https://git.wownero.com/lza_menace/totrader.git
synced 2024-08-15 00:33:13 +00:00
make improvements to dashboards and logic of trading script
This commit is contained in:
parent
e121cc8920
commit
2c1d398465
14 changed files with 3999 additions and 2171 deletions
|
@ -1,13 +0,0 @@
|
|||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'default'
|
||||
orgId: 1
|
||||
folder: ''
|
||||
type: file
|
||||
disableDeletion: true
|
||||
editable: true
|
||||
updateIntervalSeconds: 60
|
||||
allowUiUpdates: true
|
||||
options:
|
||||
path: /var/lib/grafana/dashboards
|
|
@ -21,7 +21,7 @@
|
|||
"panels": [
|
||||
{
|
||||
"content": "\n# Orders\n\nOrders placed on TradeOgre\n\n\n\n",
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"gridPos": {
|
||||
"h": 3,
|
||||
"w": 24,
|
||||
|
@ -72,7 +72,7 @@
|
|||
"cacheTimeout": null,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"decimals": 8,
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
|
@ -360,7 +360,7 @@
|
|||
"rgba(237, 129, 40, 0.89)",
|
||||
"#d44a3a"
|
||||
],
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"format": "none",
|
||||
"gauge": {
|
||||
"maxValue": 100,
|
||||
|
@ -506,7 +506,7 @@
|
|||
"rgba(237, 129, 40, 0.89)",
|
||||
"#d44a3a"
|
||||
],
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"format": "none",
|
||||
"gauge": {
|
||||
"maxValue": 100,
|
||||
|
@ -643,7 +643,7 @@
|
|||
},
|
||||
{
|
||||
"content": "\n# Balances\n\nBalances and trade info of your account.\n\n\n\n",
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"gridPos": {
|
||||
"h": 3,
|
||||
"w": 24,
|
||||
|
@ -663,7 +663,7 @@
|
|||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"decimals": 8,
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
|
@ -884,7 +884,7 @@
|
|||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"decimals": 8,
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
|
@ -1104,7 +1104,7 @@
|
|||
},
|
||||
{
|
||||
"content": "\n# Markets\n\nGeneral stats and metrics of the $currency markets\n\n\n\n",
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"gridPos": {
|
||||
"h": 3,
|
||||
"w": 24,
|
||||
|
@ -1124,7 +1124,7 @@
|
|||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"decimals": 8,
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
|
@ -1260,7 +1260,7 @@
|
|||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"decimals": 0,
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
|
@ -1394,7 +1394,7 @@
|
|||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"decimals": 8,
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
|
@ -1547,7 +1547,7 @@
|
|||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
|
@ -1678,7 +1678,7 @@
|
|||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"datasource": "postgres",
|
||||
"decimals": null,
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
1909
grafana/dashboards/wow_trading_desk.json
Normal file
1909
grafana/dashboards/wow_trading_desk.json
Normal file
File diff suppressed because it is too large
Load diff
1909
grafana/dashboards/xmr_trading_desk.json
Normal file
1909
grafana/dashboards/xmr_trading_desk.json
Normal file
File diff suppressed because it is too large
Load diff
29
grafana/grafana.ini
Normal file
29
grafana/grafana.ini
Normal file
|
@ -0,0 +1,29 @@
|
|||
[analytics]
|
||||
reporting_enabled = false
|
||||
check_for_updates = false
|
||||
|
||||
[auth]
|
||||
disable_login_form = true
|
||||
|
||||
[auth.anonymous]
|
||||
enabled = true
|
||||
org_role = Admin
|
||||
|
||||
[dashboards]
|
||||
min_refresh_interval = 1m
|
||||
default_home_dashboard_path = /var/lib/grafana/dashboards/xmr_trading_desk.json
|
||||
|
||||
[paths]
|
||||
provisioning = /etc/grafana/provisioning
|
||||
|
||||
[server]
|
||||
root_url = https://127.0.0.1
|
||||
enable_gzip = true
|
||||
read_timeout = 2m
|
||||
|
||||
[snapshots]
|
||||
external_enabled = false
|
||||
|
||||
[security]
|
||||
admin_user = admin
|
||||
admin_password = admin
|
|
@ -1,9 +0,0 @@
|
|||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: PostgreSQL
|
||||
type: postgresql
|
||||
url: http://prometheus:9090
|
||||
access: proxy
|
||||
isDefault: true
|
||||
timeInterval: 10s
|
12
grafana/provisioning/dashboards/all.yaml
Normal file
12
grafana/provisioning/dashboards/all.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'fs'
|
||||
orgId: 1
|
||||
folder: ''
|
||||
type: 'file'
|
||||
updateIntervalSeconds: 30
|
||||
allowUiUpdates: true
|
||||
options:
|
||||
path: '/var/lib/grafana/dashboards'
|
||||
foldersFromFilesStructure: true
|
17
grafana/provisioning/datasources/all.yaml
Normal file
17
grafana/provisioning/datasources/all.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: postgres
|
||||
type: postgres
|
||||
url: trader_postgres:5432
|
||||
database: trader
|
||||
user: trader
|
||||
secureJsonData:
|
||||
password: "trader"
|
||||
jsonData:
|
||||
sslmode: "disable"
|
||||
maxOpenConns: 0
|
||||
maxIdleConns: 2
|
||||
connMaxLifetime: 14400
|
||||
postgresVersion: 906
|
||||
timescaledb: false
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue