From 9ad6b06e536dd5849ff4c94cd6b3e3835162e62b Mon Sep 17 00:00:00 2001 From: muXxer Date: Tue, 3 Oct 2023 11:13:01 +0200 Subject: [PATCH 1/2] Release v1.0.0 --- README.md | 5 +- chrysalis/README.md | 4 - .../assets/grafana/dashboards/dashboard.yaml | 11 - .../grafana/dashboards/node_dashboard.json | 3318 ----------------- .../grafana/datasources/datasource.yaml | 11 - chrysalis/assets/prometheus/prometheus.yml | 21 - chrysalis/config.json | 52 - chrysalis/config_devnet.json | 76 - chrysalis/docker-compose-https.yml | 47 - chrysalis/docker-compose.yml | 140 - chrysalis/peering.json | 3 - chrysalis/prepare_docker.sh | 27 - legacy/README.md | 4 - .../assets/grafana/dashboards/dashboard.yaml | 11 - .../grafana/dashboards/node_dashboard.json | 1520 -------- .../grafana/datasources/datasource.yaml | 11 - legacy/assets/prometheus/prometheus.yml | 21 - legacy/config.json | 43 - legacy/docker-compose-https.yml | 47 - legacy/docker-compose.yml | 145 - legacy/peering.json | 3 - legacy/prepare_docker.sh | 28 - stardust/config_alphanet.json | 92 - stardust/config_defaults.json | 49 +- stardust/config_mainnet.json | 91 + stardust/config_shimmer.json | 91 + stardust/config_testnet.json | 8 + stardust/docker-compose.yml | 16 +- 28 files changed, 225 insertions(+), 5670 deletions(-) delete mode 100644 chrysalis/README.md delete mode 100644 chrysalis/assets/grafana/dashboards/dashboard.yaml delete mode 100644 chrysalis/assets/grafana/dashboards/node_dashboard.json delete mode 100644 chrysalis/assets/grafana/datasources/datasource.yaml delete mode 100644 chrysalis/assets/prometheus/prometheus.yml delete mode 100644 chrysalis/config.json delete mode 100644 chrysalis/config_devnet.json delete mode 100644 chrysalis/docker-compose-https.yml delete mode 100644 chrysalis/docker-compose.yml delete mode 100644 chrysalis/peering.json delete mode 100755 chrysalis/prepare_docker.sh delete mode 100644 legacy/README.md delete mode 100644 legacy/assets/grafana/dashboards/dashboard.yaml delete mode 100644 legacy/assets/grafana/dashboards/node_dashboard.json delete mode 100644 legacy/assets/grafana/datasources/datasource.yaml delete mode 100644 legacy/assets/prometheus/prometheus.yml delete mode 100644 legacy/config.json delete mode 100644 legacy/docker-compose-https.yml delete mode 100644 legacy/docker-compose.yml delete mode 100644 legacy/peering.json delete mode 100755 legacy/prepare_docker.sh delete mode 100644 stardust/config_alphanet.json create mode 100644 stardust/config_mainnet.json create mode 100644 stardust/config_shimmer.json diff --git a/README.md b/README.md index 1450691..8be1d9e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,4 @@ # Node Docker Setup This setup lets you run an [IOTA Hornet node](https://wiki.iota.org/hornet/welcome) and additional services using Docker and Traefik as [a reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy) to enable (optional) TLS using [Let's Encrypt](https://letsencrypt.org/), control access to your node and route requests to the correct endpoints. -There are three different versions: -- [Chrysalis (IOTA Mainnet)](chrysalis/README.md) -- [Stardust (Shimmer)](stardust/README.md) -- [Legacy (IOTA Legacy Mainnet)](legacy/README.md) \ No newline at end of file +See [this guide](https://wiki.iota.org/shimmer/hornet/how_tos/using_docker/) to set up your node. \ No newline at end of file diff --git a/chrysalis/README.md b/chrysalis/README.md deleted file mode 100644 index adfa539..0000000 --- a/chrysalis/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Node Docker Setup - Chrysalis -This setup lets you run an [IOTA Hornet node](https://wiki.iota.org/hornet/welcome) and additional services using Docker and Traefik as [a reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy) to enable (optional) TLS using [Let's Encrypt](https://letsencrypt.org/), control access to your node and route requests to the correct endpoints. - -See [this guide](https://wiki.iota.org/hornet/how_tos/using_docker/) to set up your node. diff --git a/chrysalis/assets/grafana/dashboards/dashboard.yaml b/chrysalis/assets/grafana/dashboards/dashboard.yaml deleted file mode 100644 index d664fe3..0000000 --- a/chrysalis/assets/grafana/dashboards/dashboard.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: 1 - -providers: - - name: 'Prometheus' - orgId: 1 - folder: '' - type: file - disableDeletion: true - allowUiUpdates: false - options: - path: /etc/grafana/provisioning/dashboards diff --git a/chrysalis/assets/grafana/dashboards/node_dashboard.json b/chrysalis/assets/grafana/dashboards/node_dashboard.json deleted file mode 100644 index 0778693..0000000 --- a/chrysalis/assets/grafana/dashboards/node_dashboard.json +++ /dev/null @@ -1,3318 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "description": "Dashboard for the IOTA node software", - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 3, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "panels": [], - "title": "Status", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Node Version", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 0, - "y": 1 - }, - "id": 4, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "name" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "iota_node_app_info", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{version}}", - "range": false, - "refId": "A" - } - ], - "title": "Version", - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "0": { - "color": "red", - "index": 0, - "text": "Unhealthy" - }, - "1": { - "color": "green", - "index": 1, - "text": "Healthy" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 2, - "y": 1 - }, - "id": 64, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "iota_node_health", - "refId": "A" - } - ], - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "The sync status of the node", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "0": { - "color": "green", - "index": 0, - "text": "Synced" - } - }, - "type": "value" - }, - { - "options": { - "from": 1, - "result": { - "color": "yellow", - "index": 1, - "text": "Synced" - }, - "to": 2 - }, - "type": "range" - }, - { - "options": { - "from": 3, - "result": { - "color": "red", - "index": 2, - "text": "Not Synced" - }, - "to": 100000000000000000000 - }, - "type": "range" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 4, - "y": 1 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "value" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "(iota_node_milestones{type=\"latest\"} - on () iota_node_milestones{type=\"confirmed\"})", - "hide": false, - "refId": "A" - } - ], - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "MPS in the last hour", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - }, - { - "color": "green", - "value": 500 - }, - { - "color": "super-light-yellow", - "value": 1000 - }, - { - "color": "dark-yellow", - "value": 1500 - }, - { - "color": "dark-orange", - "value": 2000 - }, - { - "color": "#ff0000", - "value": 3000 - }, - { - "color": "rgb(64, 0, 0)", - "value": 4000 - } - ] - }, - "unit": "MPS" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 6, - "y": 1 - }, - "id": 60, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "sum(avg_over_time(iota_node_messages_per_second[1h]))", - "refId": "A" - } - ], - "timeFrom": "1h", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "MPS in the last 10 minutes", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - }, - { - "color": "green", - "value": 500 - }, - { - "color": "super-light-yellow", - "value": 1000 - }, - { - "color": "yellow", - "value": 1500 - }, - { - "color": "dark-orange", - "value": 2000 - }, - { - "color": "#ff0000", - "value": 3000 - }, - { - "color": "rgb(64, 0, 0)", - "value": 4000 - } - ] - }, - "unit": "MPS" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 1 - }, - "id": 59, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(avg_over_time(iota_node_messages_per_second[10m]))", - "instant": true, - "range": false, - "refId": "A" - } - ], - "timeFrom": "10m", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "MPS in the last day", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - }, - { - "color": "green", - "value": 500 - }, - { - "color": "super-light-yellow", - "value": 1000 - }, - { - "color": "dark-yellow", - "value": 1500 - }, - { - "color": "dark-orange", - "value": 2000 - }, - { - "color": "#ff0000", - "value": 3000 - }, - { - "color": "rgb(64, 0, 0)", - "value": 4000 - } - ] - }, - "unit": "MPS" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 1 - }, - "id": 61, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "sum(avg_over_time(iota_node_messages_per_second[1d]))", - "refId": "A" - } - ], - "timeFrom": "1d", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Uptime of the node", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 1 - }, - "id": 5, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "time()-container_start_time_seconds{name=\"hornet\"}", - "instant": true, - "range": false, - "refId": "A" - } - ], - "title": "Uptime", - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "CPU usage", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 14, - "y": 1 - }, - "id": 10, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(rate(container_cpu_usage_seconds_total{name=\"hornet\"}[5m]))/sum(machine_cpu_cores)*100", - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "A" - } - ], - "title": "CPU Usage", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "RAM usage", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 16, - "y": 1 - }, - "id": 49, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "container_memory_working_set_bytes{name=\"hornet\"}", - "hide": false, - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "B" - } - ], - "title": "RAM Usage", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Size of the ledger database", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 18, - "y": 1 - }, - "id": 12, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_database_utxo_size_bytes{}", - "range": true, - "refId": "A" - } - ], - "title": "UTXO database size", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Size of the tangle database", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 20, - "y": 1 - }, - "id": 69, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_database_tangle_size_bytes{}", - "range": true, - "refId": "A" - } - ], - "title": "Tangle database size", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Neighbors count", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 1 - }, - { - "color": "green", - "value": 3 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 22, - "y": 1 - }, - "id": 23, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_gossip_peers_connected_count{}", - "range": true, - "refId": "A" - } - ], - "title": "Neighbors", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Milestone stats", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 3 - }, - "id": 48, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 18, - "valueSize": 25 - }, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_node_milestones{}", - "interval": "", - "legendFormat": "{{type}}", - "range": true, - "refId": "A" - } - ], - "title": "Milestones", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Ratio of referenced messages in relation to new messages of the last confirmed milestone.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "#EAB839", - "value": 61.8 - }, - { - "color": "green", - "value": 85.4 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 4, - "y": 3 - }, - "id": 14, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "avg(iota_node_referenced_rate{})", - "range": true, - "refId": "A" - } - ], - "title": "Conf.Ratio", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Current MPS", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [], - "max": 5000, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - }, - { - "color": "green", - "value": 500 - }, - { - "color": "super-light-yellow", - "value": 1000 - }, - { - "color": "yellow", - "value": 1500 - }, - { - "color": "dark-orange", - "value": 2000 - }, - { - "color": "rgb(255, 0, 0)", - "value": 3000 - }, - { - "color": "rgb(64, 0, 0)", - "value": 4000 - } - ] - }, - "unit": "MPS" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 6, - "x": 6, - "y": 3 - }, - "id": 57, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_node_messages_per_second{}", - "range": true, - "refId": "A" - } - ], - "title": "Current", - "type": "gauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Size of the databases", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 3 - }, - "id": 63, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_database_tangle_size_bytes{}", - "interval": "", - "legendFormat": "Tangle", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_database_utxo_size_bytes{}", - "hide": false, - "legendFormat": "Ledger", - "range": true, - "refId": "B" - } - ], - "title": "Database size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Amount of tips per second", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 4, - "y": 6 - }, - "id": 19, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_node_tip_count{}", - "legendFormat": "{{type}}", - "range": true, - "refId": "A" - } - ], - "title": "Tips", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "CPU usage of every single container running", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 9 - }, - "id": 79, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "(rate(container_cpu_usage_seconds_total{name=~\".+\"}[5m])) / scalar(machine_cpu_cores) * 100", - "legendFormat": "{{name}}", - "range": true, - "refId": "A" - } - ], - "title": "CPU usage per container", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Memory usage of every single container running", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 9 - }, - "id": 80, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "sum(container_memory_working_set_bytes{name=~\".+\"}) by (name)", - "legendFormat": "{{name}}", - "range": true, - "refId": "A" - } - ], - "title": "Memory usage per container", - "type": "timeseries" - }, - { - "collapsed": true, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 28, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Cache sizes per type", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 21, - "x": 0, - "y": 18 - }, - "id": 30, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_caches_size", - "legendFormat": "{{type}}", - "range": true, - "refId": "A" - } - ], - "title": "Caches Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Pruning and compaction status", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "0": { - "color": "green", - "index": 0, - "text": "No" - }, - "1": { - "color": "red", - "index": 1, - "text": "Yes" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 18 - }, - "id": 55, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_database_utxo_compaction_running or iota_database_tangle_compaction_running", - "legendFormat": "Compacting", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_database_pruning_running", - "hide": false, - "interval": "", - "legendFormat": "Pruning", - "range": true, - "refId": "B" - } - ], - "title": "Is compacting/pruning", - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Compaction and pruning counts", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 22 - }, - "id": 32, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_database_tangle_compaction_count{}+iota_database_utxo_compaction_count{}", - "legendFormat": "Compaction", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_database_pruning_count{}", - "hide": false, - "interval": "", - "legendFormat": "Pruning", - "range": true, - "refId": "B" - } - ], - "title": "Compaction / pruning counts", - "type": "stat" - } - ], - "title": "Storage", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 18 - }, - "id": 21, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 19 - }, - "id": 18, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_node_messages_per_second{}", - "legendFormat": "MPS", - "range": true, - "refId": "A" - } - ], - "title": "Messages per second", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Requests per second per type", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 19 - }, - "id": 38, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "irate(iota_node_request_count{type=\"pending\"}[1m])", - "interval": "", - "legendFormat": "{{type}}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "irate(iota_node_request_count{type=\"queued\"}[1m])", - "hide": false, - "legendFormat": "{{type}}", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "irate(iota_node_request_count{type=\"processing\"}[1m])", - "hide": false, - "legendFormat": "{{type}}", - "range": true, - "refId": "C" - } - ], - "title": "Requests per second", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "MPS per peer per type", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 27 - }, - "id": 25, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_gossip_peers_message_count{type=~\"$peer_message_type\", id=~\"$peers\"}[1m])", - "legendFormat": "{{id}} - {{type}}", - "range": true, - "refId": "A" - } - ], - "title": "Messages per second per peer", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Requests per second per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 27 - }, - "id": 26, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "sum by (id) (rate(iota_gossip_peers_request_count{type=~\"$peer_request_type\"}[1m]))", - "legendFormat": "{{id}}", - "range": true, - "refId": "A" - } - ], - "title": "Requests per second per peer", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Heartbeats per second", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 0, - "y": 35 - }, - "id": 34, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_gossip_node_heartbeat_count[1m])", - "legendFormat": "{{type}}", - "range": true, - "refId": "A" - } - ], - "title": "Heartbeats per second", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Sum of dropped packages", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 5, - "y": 35 - }, - "id": 36, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_gossip_node_dropped_count{}", - "legendFormat": "{{type}}", - "range": true, - "refId": "A" - } - ], - "title": "Dropped packages", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Distribution of sent heartbeats per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 9, - "y": 35 - }, - "id": 42, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_gossip_peers_heartbeat_count{type=\"sent\", id=~\"$peers\"}[1m])", - "interval": "", - "legendFormat": "{{id}}", - "range": true, - "refId": "A" - } - ], - "title": "Sent heartbeats per peer", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Distribution of received heartbeats per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 14, - "y": 35 - }, - "id": 41, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_gossip_peers_heartbeat_count{type=\"received\", id=~\"$peers\"}[1m])", - "legendFormat": "{{id}}", - "range": true, - "refId": "A" - } - ], - "title": "Received heartbeats per peer", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Distribution of dropped packages per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 19, - "y": 35 - }, - "id": 40, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_gossip_peers_dropped_count{id=~\"$peers\", type=\"sent\"}[1m])", - "legendFormat": "{{id}}", - "range": true, - "refId": "A" - } - ], - "title": "Dropped packages per peer", - "type": "timeseries" - } - ], - "title": "Gossip", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 19 - }, - "id": 73, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Distribution of dropped packages per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 20, - "x": 0, - "y": 44 - }, - "id": 75, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "(label_replace(rate(iota_restapi_requests_total[1m]),\"short_url\",\"$1$2$3\",\"url\",'(.*)'))", - "legendFormat": "{{code}} {{short_url}}", - "range": true, - "refId": "A" - } - ], - "title": "API requests by code / URL", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "HTTP request errors", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 4, - "x": 20, - "y": 44 - }, - "id": 52, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_restapi_http_request_error_count{}", - "legendFormat": "{{job}}", - "range": true, - "refId": "A" - } - ], - "title": "HTTP request errors", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 51 - }, - "id": 77, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(traefik_service_requests_total{service=\"hornet@docker\"}[1m])", - "legendFormat": "{{code}}", - "range": true, - "refId": "A" - } - ], - "title": "Traefik requests ( Success + / Error - )", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 51 - }, - "id": 81, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_restapi_pow_count{}", - "legendFormat": "{{job}}", - "range": true, - "refId": "A" - } - ], - "title": "PoW requests", - "type": "timeseries" - } - ], - "title": "API", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 20 - }, - "id": 44, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Stats for the migration receipts", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 46, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "iota_migrator_receipt_count{}", - "instant": false, - "interval": "", - "legendFormat": "Receipt Count", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_migrator_receipt_entries_applied_count{}", - "hide": false, - "interval": "", - "legendFormat": "Receipt Entries Applied Count", - "range": true, - "refId": "B" - } - ], - "title": "Receipts metrics", - "type": "timeseries" - } - ], - "title": "Migrator", - "type": "row" - } - ], - "refresh": "10s", - "schemaVersion": 37, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(iota_gossip_node_message_count, type)", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "message_type", - "options": [], - "query": { - "query": "label_values(iota_gossip_node_message_count, type)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(iota_gossip_peers_message_count, id)", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "peers", - "options": [], - "query": { - "query": "label_values(iota_gossip_peers_message_count, id)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(iota_gossip_peers_message_count, type)", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "peer_message_type", - "options": [], - "query": { - "query": "label_values(iota_gossip_peers_message_count, type)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(iota_gossip_peers_request_count, type)", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "peer_request_type", - "options": [], - "query": { - "query": "label_values(iota_gossip_peers_request_count, type)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Node Dashboard Chrysalis", - "uid": "ysXSIr9Mk", - "version": 1, - "weekStart": "" -} \ No newline at end of file diff --git a/chrysalis/assets/grafana/datasources/datasource.yaml b/chrysalis/assets/grafana/datasources/datasource.yaml deleted file mode 100644 index fe5e1ae..0000000 --- a/chrysalis/assets/grafana/datasources/datasource.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: 1 - -deleteDatasources: - - name: Prometheus - orgId: 1 - -datasources: - - name: Prometheus - type: prometheus - access: proxy - url: http://prometheus:9090 diff --git a/chrysalis/assets/prometheus/prometheus.yml b/chrysalis/assets/prometheus/prometheus.yml deleted file mode 100644 index 2ab778e..0000000 --- a/chrysalis/assets/prometheus/prometheus.yml +++ /dev/null @@ -1,21 +0,0 @@ -scrape_configs: - - job_name: cadvisor - scrape_interval: 5s - scrape_timeout: 5s - static_configs: - - targets: - - 'cadvisor:8080' - - - job_name: hornet - scrape_interval: 5s - scrape_timeout: 5s - static_configs: - - targets: - - 'hornet:9311' - - - job_name: traefik - scrape_interval: 5s - scrape_timeout: 5s - static_configs: - - targets: - - 'traefik:8080' \ No newline at end of file diff --git a/chrysalis/config.json b/chrysalis/config.json deleted file mode 100644 index 6ea983b..0000000 --- a/chrysalis/config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "restAPI": { - "publicRoutes": [ - "/health", - "/mqtt", - "/api/routes", - "/api/v1/info", - "/api/v1/tips", - "/api/v1/messages*", - "/api/v1/transactions*", - "/api/v1/milestones*", - "/api/v1/outputs*", - "/api/v1/addresses*", - "/api/v1/treasury", - "/api/v1/receipts*", - "/api/plugins/participation/events*", - "/api/plugins/participation/outputs*", - "/api/plugins/participation/addresses*" - ], - "protectedRoutes": [ - "/api/v1/*", - "/api/plugins/*" - ], - "powEnabled": false - }, - "pruning": { - "size": { - "targetSize": "30GB" - } - }, - "node": { - "alias": "HORNET mainnet node", - "disablePlugins": [], - "enablePlugins": [ - "Autopeering", - "Participation", - "Prometheus", - "Spammer", - "POI" - ] - }, - "p2p": { - "autopeering": { - "entryNodes": [ - "/dns/entry-hornet-0.h.chrysalis-mainnet.iotaledger.net/udp/14626/autopeering/iotaPHdAn7eueBnXtikZMwhfPXaeGJGXDt4RBuLuGgb", - "/dns/entry-hornet-1.h.chrysalis-mainnet.iotaledger.net/udp/14626/autopeering/iotaJJqMd5CQvv1A61coSQCYW9PNT1QKPs7xh2Qg5K2", - "/dns/entry-0.iota-mainnet.tanglebay.com/udp/14626/autopeering/iot4By1FD4pFLrGJ6AAe7YEeSu9RbW9xnPUmxMdQenC", - "/dns/entry-1.iota-mainnet.tanglebay.com/udp/14626/autopeering/CATsx21mFVvQQPXeDineGs9DDeKvoBBQdzcmR6ffCkVA" - ] - } - } -} diff --git a/chrysalis/config_devnet.json b/chrysalis/config_devnet.json deleted file mode 100644 index 1123126..0000000 --- a/chrysalis/config_devnet.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "restAPI": { - "publicRoutes": [ - "/health", - "/mqtt", - "/api/routes", - "/api/v1/info", - "/api/v1/tips", - "/api/v1/messages*", - "/api/v1/transactions*", - "/api/v1/milestones*", - "/api/v1/outputs*", - "/api/v1/addresses*", - "/api/v1/treasury", - "/api/v1/receipts*", - "/api/plugins/participation/events*", - "/api/plugins/participation/outputs*", - "/api/plugins/participation/addresses*" - ], - "protectedRoutes": [ - "/api/v1/*", - "/api/plugins/*" - ], - "powEnabled": false - }, - "snapshots": { - "downloadURLs": [ - { - "full": "http://dbfiles.chrysalis-devnet.iota.cafe/snapshots/hornet/latest-full_snapshot.bin", - "delta": "http://dbfiles.chrysalis-devnet.iota.cafe/snapshots/hornet/latest-delta_snapshot.bin" - } - ] - }, - "pruning": { - "size": { - "targetSize": "30GB" - } - }, - "protocol": { - "networkID": "chrysalis-devnet", - "bech32HRP": "atoi", - "minPoWScore": 2000.0, - "milestonePublicKeyCount": 2, - "publicKeyRanges": [ - { - "key": "31ea3169abd40ee4096dfa4940962c64c8500066ca2ec1eedb2c5ee9aa0db5d8", - "start": 0, - "end": 0 - }, - { - "key": "5a1f0250640fb1ba82315b8aee4ebbe466da083a13adf77347c4516376cb4431", - "start": 0, - "end": 0 - } - ] - }, - "node": { - "alias": "HORNET devnet node", - "disablePlugins": [], - "enablePlugins": [ - "Autopeering", - "Participation", - "Prometheus", - "Spammer", - "POI" - ] - }, - "p2p": { - "autopeering": { - "entryNodes": [ - "/dns/entry-hornet-0.h.chrysalis-devnet.iota.cafe/udp/14626/autopeering/iotab4LmPqc3GLin7voytPr8oQnHToQad3ULbvhPZwq", - "/dns/entry-hornet-1.h.chrysalis-devnet.iota.cafe/udp/14626/autopeering/iotaUTEYvLskg8ZqLHBaCK5BiYNt6R1byksZQXobVUn" - ] - } - } -} diff --git a/chrysalis/docker-compose-https.yml b/chrysalis/docker-compose-https.yml deleted file mode 100644 index 930a6ff..0000000 --- a/chrysalis/docker-compose-https.yml +++ /dev/null @@ -1,47 +0,0 @@ -# -# node-docker-setup __VERSION__ -# https://github.com/iotaledger/node-docker-setup -# - -version: '3' -services: - -################################################################## -# HORNET - Chysalis # -################################################################## - - hornet: - labels: - - "traefik.http.routers.hornet.entrypoints=websecure" - - "traefik.http.routers.hornet.tls=true" - - "traefik.http.routers.hornet.tls.certresolver=myresolver" - - "traefik.http.routers.hornet-dashboard.entrypoints=websecure" - - "traefik.http.routers.hornet-dashboard.tls=true" - -################################################################## -# Reverse Proxy and SSL # -################################################################## - - traefik: - command: - - "--providers.docker=true" - - "--providers.docker.exposedbydefault=false" - - "--metrics.prometheus=true" - - "--entrypoints.web.address=:80" - - "--entrypoints.websecure.address=:443" - - "--entrypoints.web.http.redirections.entrypoint.to=websecure" - - "--entrypoints.web.http.redirections.entrypoint.scheme=https" - - "--certificatesresolvers.myresolver.acme.tlschallenge=true" - - "--certificatesresolvers.myresolver.acme.email=${ACME_EMAIL}" - - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json" - ports: - - "443:443/tcp" - -################################################################## -# Monitoring # -################################################################## - - grafana: - labels: - - "traefik.http.routers.grafana.entrypoints=websecure" - - "traefik.http.routers.grafana.tls=true" diff --git a/chrysalis/docker-compose.yml b/chrysalis/docker-compose.yml deleted file mode 100644 index 70d6403..0000000 --- a/chrysalis/docker-compose.yml +++ /dev/null @@ -1,140 +0,0 @@ -# -# node-docker-setup __VERSION__ -# https://github.com/iotaledger/node-docker-setup -# - -version: '3' -services: - -################################################################## -# HORNET - Chysalis # -################################################################## - - hornet: - container_name: hornet - image: iotaledger/hornet:1 - ulimits: - nofile: - soft: 16384 - hard: 16384 - stop_grace_period: 5m - depends_on: - traefik: - condition: service_started - ports: - - "15600:15600/tcp" - - "14626:14626/udp" - labels: - - "traefik.enable=true" - - "traefik.http.routers.hornet.service=hornet" - - "traefik.http.routers.hornet.rule=Host(`${NODE_HOST:-localhost}`)" - - "traefik.http.routers.hornet.entrypoints=web" - - "traefik.http.services.hornet.loadbalancer.server.port=14265" - - "traefik.http.routers.hornet.middlewares=redirect-dashboard" - - "traefik.http.middlewares.redirect-dashboard.redirectregex.regex=^(https?://[^/]+)/?$$" - - "traefik.http.middlewares.redirect-dashboard.redirectregex.replacement=$$1/dashboard/" - - "traefik.http.middlewares.redirect-dashboard.redirectregex.permanent=true" - - "traefik.http.routers.hornet-dashboard.service=hornet-dashboard" - - "traefik.http.routers.hornet-dashboard.rule=Host(`${NODE_HOST:-localhost}`) && (Path(`/dashboard`) || PathPrefix(`/dashboard/`))" - - "traefik.http.routers.hornet-dashboard.entrypoints=web" - - "traefik.http.services.hornet-dashboard.loadbalancer.server.port=8081" - cap_drop: - - ALL - volumes: - - ./${HORNET_CONFIG_FILE:-config.json}:/app/config.json:ro - - ./peering.json:/app/peering.json - - ./data:/app/data - command: - - "-c" - - "config.json" - - "--db.path=data/database" - - "--snapshots.fullPath=data/snapshots/full_snapshot.bin" - - "--snapshots.deltaPath=data/snapshots/delta_snapshot.bin" - - "--p2p.db.path=data/p2pstore" - - "--p2p.bindMultiAddresses=/ip4/0.0.0.0/tcp/15600,/ip6/::/tcp/15600" - - "--dashboard.bindAddress=hornet:8081" - - "--dashboard.auth.username=${DASHBOARD_USERNAME:-admin}" - - "--dashboard.auth.passwordHash=${DASHBOARD_PASSWORD:-0000000000000000000000000000000000000000000000000000000000000000}" - - "--dashboard.auth.passwordSalt=${DASHBOARD_SALT:-0000000000000000000000000000000000000000000000000000000000000000}" - - "--prometheus.bindAddress=hornet:9311" - -################################################################## -# Reverse Proxy and SSL # -################################################################## - - traefik: - container_name: traefik - image: traefik:v2.10 - command: - - "--providers.docker=true" - - "--providers.docker.exposedbydefault=false" - - "--metrics.prometheus=true" - - "--entrypoints.web.address=:80" - ports: - - "${HTTP_PORT:-80}:80/tcp" - volumes: - - "/var/run/docker.sock:/var/run/docker.sock:ro" - - "./data/letsencrypt:/letsencrypt" - -################################################################## -# Monitoring # -################################################################## - - prometheus: - container_name: prometheus - image: prom/prometheus:latest - restart: unless-stopped - user: "65532" - volumes: - - ./data/prometheus/:/prometheus - - ./assets/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml - - /etc/localtime:/etc/localtime:ro - profiles: - - monitoring - - cadvisor: - container_name: cadvisor - image: gcr.io/cadvisor/cadvisor:latest - privileged: true - command: - - --housekeeping_interval=30s # kubernetes default args - - --max_housekeeping_interval=35s - - --event_storage_event_limit=default=0 - - --event_storage_age_limit=default=0 - - --store_container_labels=false - - --global_housekeeping_interval=30s - - --event_storage_event_limit=default=0 - - --event_storage_age_limit=default=0 - - --disable_metrics=accelerator,advtcp,cpu_topology,disk,hugetlb,memory_numa,percpu,referenced_memory,resctrl,sched,tcp,udp - - --enable_load_reader=true - - --docker_only=true # only show stats for docker containers - - --allow_dynamic_housekeeping=true - - --storage_duration=1m0s - volumes: - - /:/rootfs:ro - - /var/run:/var/run:rw - - /sys:/sys:ro - - /var/lib/docker/:/var/lib/docker:ro - profiles: - - monitoring - - grafana: - container_name: grafana - image: grafana/grafana:latest - restart: unless-stopped - user: "65532" - labels: - - "traefik.enable=true" - - "traefik.http.routers.grafana.rule=Host(`${NODE_HOST:-localhost}`) && (Path(`/grafana`) || PathPrefix(`/grafana/`))" - - "traefik.http.routers.grafana.entrypoints=web" - - "traefik.http.services.grafana.loadbalancer.server.port=3000" - environment: - - GF_SERVER_ROOT_URL=/grafana - - GF_SERVER_SERVE_FROM_SUB_PATH=true - - GF_SERVER_DOMAIN=${NODE_HOST:-localhost} - - GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/dashboards/node_dashboard.json - volumes: - - ./data/grafana:/var/lib/grafana - - ./assets/grafana/:/etc/grafana/provisioning/ - profiles: - - monitoring diff --git a/chrysalis/peering.json b/chrysalis/peering.json deleted file mode 100644 index e7ed00d..0000000 --- a/chrysalis/peering.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "peers": [] -} \ No newline at end of file diff --git a/chrysalis/prepare_docker.sh b/chrysalis/prepare_docker.sh deleted file mode 100755 index 9182b9e..0000000 --- a/chrysalis/prepare_docker.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# -# node-docker-setup __VERSION__ -# https://github.com/iotaledger/node-docker-setup -# - -if [ ! -f .env ]; then - echo "No .env file found. Please see README.md for more details" -fi - -if [[ "$OSTYPE" != "darwin"* && "$EUID" -ne 0 ]]; then - echo "Please run as root or with sudo" - exit -fi - -# Pull latest images -docker compose pull - -# Prepare db directory -mkdir -p data -mkdir -p data/grafana -mkdir -p data/prometheus -if [[ "$OSTYPE" != "darwin"* ]]; then - chown -R 65532:65532 data - chown 65532:65532 peering.json -fi diff --git a/legacy/README.md b/legacy/README.md deleted file mode 100644 index fc4cf45..0000000 --- a/legacy/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Node Docker Setup - Legacy -This setup lets you run an [IOTA Hornet node](https://wiki.iota.org/hornet/welcome) and additional services using Docker and Traefik as [a reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy) to enable (optional) TLS using [Let's Encrypt](https://letsencrypt.org/), control access to your node and route requests to the correct endpoints. - -See [this guide](https://wiki.iota.org/hornet/how_tos/using_docker/) to set up your node. diff --git a/legacy/assets/grafana/dashboards/dashboard.yaml b/legacy/assets/grafana/dashboards/dashboard.yaml deleted file mode 100644 index d664fe3..0000000 --- a/legacy/assets/grafana/dashboards/dashboard.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: 1 - -providers: - - name: 'Prometheus' - orgId: 1 - folder: '' - type: file - disableDeletion: true - allowUiUpdates: false - options: - path: /etc/grafana/provisioning/dashboards diff --git a/legacy/assets/grafana/dashboards/node_dashboard.json b/legacy/assets/grafana/dashboards/node_dashboard.json deleted file mode 100644 index a480b7a..0000000 --- a/legacy/assets/grafana/dashboards/node_dashboard.json +++ /dev/null @@ -1,1520 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "description": "Dashboard for the IOTA node software", - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 1, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "panels": [], - "title": "Status", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Node Version", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 0, - "y": 1 - }, - "id": 4, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "name" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "iota_info_app", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{version}}", - "range": false, - "refId": "A" - } - ], - "title": "Version", - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "The sync status of the node", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "0": { - "color": "green", - "index": 0, - "text": "Synced" - } - }, - "type": "value" - }, - { - "options": { - "from": 1, - "result": { - "color": "yellow", - "index": 1, - "text": "Synced" - }, - "to": 2 - }, - "type": "range" - }, - { - "options": { - "from": 3, - "result": { - "color": "red", - "index": 2, - "text": "Not Synced" - }, - "to": 100000000000000000000 - }, - "type": "range" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 2, - "y": 1 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "value" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "(iota_info_latest_milestone_index - on () iota_info_latest_solid_milestone_index)", - "hide": false, - "range": true, - "refId": "A" - } - ], - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Amount of tips per second", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 4, - "y": 1 - }, - "id": 19, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_info_tips{}", - "legendFormat": "{{type}}", - "range": true, - "refId": "A" - } - ], - "title": "Tips", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Uptime of the node", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 6, - "y": 1 - }, - "id": 5, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "time()-container_start_time_seconds{name=\"hornet\"}", - "instant": true, - "range": false, - "refId": "A" - } - ], - "title": "Uptime", - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "CPU usage", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 1 - }, - "id": 10, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(rate(container_cpu_usage_seconds_total{name=\"hornet\"}[5m]))/sum(machine_cpu_cores)*100", - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "A" - } - ], - "title": "CPU Usage", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "RAM usage", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 1 - }, - "id": 49, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "container_memory_working_set_bytes{name=\"hornet\"}", - "hide": false, - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "B" - } - ], - "title": "RAM Usage", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Size of the database", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 1 - }, - "id": 69, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_data_sizes_bytes{}", - "range": true, - "refId": "A" - } - ], - "title": "Database size", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Neighbors count", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 1 - }, - { - "color": "green", - "value": 3 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 14, - "y": 1 - }, - "id": 23, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_peers_connected{}", - "range": true, - "refId": "A" - } - ], - "title": "Neighbors", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "CPU usage of every single container running", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 3 - }, - "id": 79, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "(rate(container_cpu_usage_seconds_total{name=~\".+\"}[5m])) / scalar(machine_cpu_cores) * 100", - "legendFormat": "{{name}}", - "range": true, - "refId": "A" - } - ], - "title": "CPU usage per container", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Memory usage of every single container running", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 3 - }, - "id": 80, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "sum(container_memory_working_set_bytes{name=~\".+\"}) by (name)", - "legendFormat": "{{name}}", - "range": true, - "refId": "A" - } - ], - "title": "Memory usage per container", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Size of the databases", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 11 - }, - "id": 63, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "iota_data_sizes_bytes{}", - "interval": "", - "legendFormat": "Tangle", - "range": true, - "refId": "A" - } - ], - "title": "Database size", - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 21, - "panels": [], - "title": "Gossip", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "MPS per peer per type", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 18 - }, - "id": 25, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_peers_all_transactions{address=~\"$peers\"}[1m])", - "legendFormat": "{{id}} - {{type}}", - "range": true, - "refId": "A" - } - ], - "title": "Messages per second per peer", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Requests per second per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 18 - }, - "id": 26, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.3.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "sum by (id) (rate(iota_peers_received_transaction_requests{address=~\"$peers\"}[1m]))", - "legendFormat": "{{id}}", - "range": true, - "refId": "A" - } - ], - "title": "Requests per second per peer", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Distribution of sent heartbeats per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 0, - "y": 26 - }, - "id": 42, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_peers_sent_heartbeats{address=~\"$peers\"}[1m])", - "interval": "", - "legendFormat": "{{id}}", - "range": true, - "refId": "A" - } - ], - "title": "Sent heartbeats per peer", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Distribution of received heartbeats per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 5, - "y": 26 - }, - "id": 41, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_peers_received_heartbeats{address=~\"$peers\"}[1m])", - "legendFormat": "{{id}}", - "range": true, - "refId": "A" - } - ], - "title": "Received heartbeats per peer", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Distribution of dropped packages per peer", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 10, - "y": 26 - }, - "id": 40, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(iota_peers_dropped_sent_packets{address=~\"$peers\"}[1m])", - "legendFormat": "{{id}}", - "range": true, - "refId": "A" - } - ], - "title": "Dropped packages per peer", - "type": "timeseries" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 34 - }, - "id": 73, - "panels": [], - "title": "API", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 35 - }, - "id": 77, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(traefik_service_requests_total{service=\"hornet@docker\"}[1m])", - "legendFormat": "{{code}}", - "range": true, - "refId": "A" - } - ], - "title": "Traefik requests ( Success + / Error - )", - "type": "timeseries" - } - ], - "refresh": "10s", - "schemaVersion": 38, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(iota_peers_all_transactions,address)", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "peers", - "options": [], - "query": { - "query": "label_values(iota_peers_all_transactions,address)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Node Dashboard Legacy", - "uid": "ysXSIr9Mk", - "version": 4, - "weekStart": "" -} \ No newline at end of file diff --git a/legacy/assets/grafana/datasources/datasource.yaml b/legacy/assets/grafana/datasources/datasource.yaml deleted file mode 100644 index fe5e1ae..0000000 --- a/legacy/assets/grafana/datasources/datasource.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: 1 - -deleteDatasources: - - name: Prometheus - orgId: 1 - -datasources: - - name: Prometheus - type: prometheus - access: proxy - url: http://prometheus:9090 diff --git a/legacy/assets/prometheus/prometheus.yml b/legacy/assets/prometheus/prometheus.yml deleted file mode 100644 index b83964c..0000000 --- a/legacy/assets/prometheus/prometheus.yml +++ /dev/null @@ -1,21 +0,0 @@ -scrape_configs: - - job_name: cadvisor - scrape_interval: 5s - scrape_timeout: 5s - static_configs: - - targets: - - 'cadvisor:8080' - - - job_name: hornet - scrape_interval: 5s - scrape_timeout: 5s - static_configs: - - targets: - - 'hornet:9312' - - - job_name: traefik - scrape_interval: 5s - scrape_timeout: 5s - static_configs: - - targets: - - 'traefik:8080' \ No newline at end of file diff --git a/legacy/config.json b/legacy/config.json deleted file mode 100644 index b997dfd..0000000 --- a/legacy/config.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "httpAPI": { - "publicRoutes": [ - "/", - "/healthz", - "/api/core/v0/info", - "/api/core/v0/milestones*", - "/api/core/v0/transactions*", - "/api/core/v0/addresses*", - "/api/core/v0/ledger/diff/by-index*", - "/api/core/v0/ledger/diff-extended/by-index*" - ], - "protectedRoutes": [ - "/api/*" - ], - "publicRPCEndpoints": [ - "getNodeInfo", - "getBalances", - "checkConsistency", - "getTipInfo", - "getTransactionsToApprove", - "getInclusionStates", - "getNodeAPIConfiguration", - "wereAddressesSpentFrom", - "broadcastTransactions", - "findTransactions", - "storeTransactions", - "getTrytes", - "getWhiteFlagConfirmation" - ] - }, - "snapshots": { - "pruning": { - "enabled": true, - "delay": 60480 - } - }, - "prometheus": { - "goMetrics": true, - "processMetrics": true, - "promhttpMetrics": true - } -} diff --git a/legacy/docker-compose-https.yml b/legacy/docker-compose-https.yml deleted file mode 100644 index 297fb48..0000000 --- a/legacy/docker-compose-https.yml +++ /dev/null @@ -1,47 +0,0 @@ -# -# node-docker-setup __VERSION__ -# https://github.com/iotaledger/node-docker-setup -# - -version: '3' -services: - -################################################################## -# HORNET - Legacy # -################################################################## - - hornet: - labels: - - "traefik.http.routers.hornet.entrypoints=websecure" - - "traefik.http.routers.hornet.tls=true" - - "traefik.http.routers.hornet.tls.certresolver=myresolver" - - "traefik.http.routers.hornet-dashboard.entrypoints=websecure" - - "traefik.http.routers.hornet-dashboard.tls=true" - -################################################################## -# Reverse Proxy and SSL # -################################################################## - - traefik: - command: - - "--providers.docker=true" - - "--providers.docker.exposedbydefault=false" - - "--metrics.prometheus=true" - - "--entrypoints.web.address=:80" - - "--entrypoints.websecure.address=:443" - - "--entrypoints.web.http.redirections.entrypoint.to=websecure" - - "--entrypoints.web.http.redirections.entrypoint.scheme=https" - - "--certificatesresolvers.myresolver.acme.tlschallenge=true" - - "--certificatesresolvers.myresolver.acme.email=${ACME_EMAIL}" - - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json" - ports: - - "443:443/tcp" - -################################################################## -# Monitoring # -################################################################## - - grafana: - labels: - - "traefik.http.routers.grafana.entrypoints=websecure" - - "traefik.http.routers.grafana.tls=true" diff --git a/legacy/docker-compose.yml b/legacy/docker-compose.yml deleted file mode 100644 index aaf324e..0000000 --- a/legacy/docker-compose.yml +++ /dev/null @@ -1,145 +0,0 @@ -# -# node-docker-setup __VERSION__ -# https://github.com/iotaledger/node-docker-setup -# - -version: '3' -services: - -################################################################## -# HORNET - Legacy # -################################################################## - - hornet: - container_name: hornet - image: iotaledger/hornet:0.5 - ulimits: - nofile: - soft: 16384 - hard: 16384 - stop_grace_period: 5m - depends_on: - traefik: - condition: service_started - ports: - - "15601:15601/tcp" - - "14627:14627/udp" - labels: - - "traefik.enable=true" - - "traefik.http.routers.hornet.service=hornet" - - "traefik.http.routers.hornet.rule=Host(`${NODE_HOST:-localhost}`)" - - "traefik.http.routers.hornet.entrypoints=web" - - "traefik.http.services.hornet.loadbalancer.server.port=14266" - - "traefik.http.routers.hornet.middlewares=redirect-dashboard" - - "traefik.http.middlewares.redirect-dashboard.redirectregex.regex=^(https?://)([^/]+)/?$$" - - "traefik.http.middlewares.redirect-dashboard.redirectregex.replacement=$${1}dashboard.$${2}" - - "traefik.http.middlewares.redirect-dashboard.redirectregex.permanent=true" - - "traefik.http.routers.hornet-dashboard.service=hornet-dashboard" - - "traefik.http.routers.hornet-dashboard.rule=Host(`dashboard.${NODE_HOST:-localhost}`)" - - "traefik.http.routers.hornet-dashboard.entrypoints=web" - - "traefik.http.services.hornet-dashboard.loadbalancer.server.port=8082" - cap_drop: - - ALL - volumes: - - ./${HORNET_CONFIG_FILE:-config.json}:/app/config.json:ro - - ./peering.json:/app/peering.json - - ./data:/app/data - command: - - "-c=config.json" - - "--node.disablePlugins=Profiling" - - "--node.enablePlugins=Prometheus" - - "--db.path=data/database" - - "--snapshots.local.path=data/snapshots/export.bin" - - "--snapshots.local.downloadURLs=https://dbfiles.iota.org/legacy-mainnet/hornet/latest-export.bin" - - "--network.gossip.bindAddress=0.0.0.0:15601" - - "--network.autopeering.bindAddress=0.0.0.0:14627" - - "--network.autopeering.entryNodes=EagUoEdsY4QUTLAZa8xdFgYEPfrExwdY9MS2k9ugJ5Pi@entry-legacy.iotaledger.net:14626" - - "--httpAPI.bindAddress=0.0.0.0:14266" - - "--httpAPI.jwtAuth.privateKeyPath=data/jwt/private.key" - - "--dashboard.bindAddress=hornet:8082" - - "--dashboard.basicAuth.enabled=true" - - "--dashboard.basicAuth.username=${DASHBOARD_USERNAME:-admin}" - - "--dashboard.basicauth.passwordhash=${DASHBOARD_PASSWORD:-0000000000000000000000000000000000000000000000000000000000000000}" - - "--dashboard.basicauth.passwordsalt=${DASHBOARD_SALT:-0000000000000000000000000000000000000000000000000000000000000000}" - - "--prometheus.bindAddress=hornet:9312" - -################################################################## -# Reverse Proxy and SSL # -################################################################## - - traefik: - container_name: traefik - image: traefik:v2.10 - command: - - "--providers.docker=true" - - "--providers.docker.exposedbydefault=false" - - "--metrics.prometheus=true" - - "--entrypoints.web.address=:80" - ports: - - "${HTTP_PORT:-80}:80/tcp" - volumes: - - "/var/run/docker.sock:/var/run/docker.sock:ro" - - "./data/letsencrypt:/letsencrypt" - -################################################################## -# Monitoring # -################################################################## - - prometheus: - container_name: prometheus - image: prom/prometheus:latest - restart: unless-stopped - user: "65532" - volumes: - - ./data/prometheus/:/prometheus - - ./assets/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml - - /etc/localtime:/etc/localtime:ro - profiles: - - monitoring - - cadvisor: - container_name: cadvisor - image: gcr.io/cadvisor/cadvisor:latest - privileged: true - command: - - --housekeeping_interval=30s # kubernetes default args - - --max_housekeeping_interval=35s - - --event_storage_event_limit=default=0 - - --event_storage_age_limit=default=0 - - --store_container_labels=false - - --global_housekeeping_interval=30s - - --event_storage_event_limit=default=0 - - --event_storage_age_limit=default=0 - - --disable_metrics=accelerator,advtcp,cpu_topology,disk,hugetlb,memory_numa,percpu,referenced_memory,resctrl,sched,tcp,udp - - --enable_load_reader=true - - --docker_only=true # only show stats for docker containers - - --allow_dynamic_housekeeping=true - - --storage_duration=1m0s - volumes: - - /:/rootfs:ro - - /var/run:/var/run:rw - - /sys:/sys:ro - - /var/lib/docker/:/var/lib/docker:ro - profiles: - - monitoring - - grafana: - container_name: grafana - image: grafana/grafana:latest - restart: unless-stopped - user: "65532" - labels: - - "traefik.enable=true" - - "traefik.http.routers.grafana.rule=Host(`${NODE_HOST:-localhost}`) && (Path(`/grafana`) || PathPrefix(`/grafana/`))" - - "traefik.http.routers.grafana.entrypoints=web" - - "traefik.http.services.grafana.loadbalancer.server.port=3000" - environment: - - GF_SERVER_ROOT_URL=/grafana - - GF_SERVER_SERVE_FROM_SUB_PATH=true - - GF_SERVER_DOMAIN=${NODE_HOST:-localhost} - - GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/dashboards/node_dashboard.json - volumes: - - ./data/grafana:/var/lib/grafana - - ./assets/grafana/:/etc/grafana/provisioning/ - profiles: - - monitoring diff --git a/legacy/peering.json b/legacy/peering.json deleted file mode 100644 index e7ed00d..0000000 --- a/legacy/peering.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "peers": [] -} \ No newline at end of file diff --git a/legacy/prepare_docker.sh b/legacy/prepare_docker.sh deleted file mode 100755 index 1be7691..0000000 --- a/legacy/prepare_docker.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# -# node-docker-setup __VERSION__ -# https://github.com/iotaledger/node-docker-setup -# - -if [ ! -f .env ]; then - echo "No .env file found. Please see README.md for more details" -fi - -if [[ "$OSTYPE" != "darwin"* && "$EUID" -ne 0 ]]; then - echo "Please run as root or with sudo" - exit -fi - -# Pull latest images -docker compose pull - -# Prepare db directory -mkdir -p data -mkdir -p data/jwt -mkdir -p data/grafana -mkdir -p data/prometheus -if [[ "$OSTYPE" != "darwin"* ]]; then - chown -R 65532:65532 data - chown 65532:65532 peering.json -fi diff --git a/stardust/config_alphanet.json b/stardust/config_alphanet.json deleted file mode 100644 index 1c4fcda..0000000 --- a/stardust/config_alphanet.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "protocol": { - "targetNetworkName": "alphanet-10", - "milestonePublicKeyCount": 7, - "baseToken": { - "name": "Shimmer", - "tickerSymbol": "SMR", - "unit": "SMR", - "subunit": "glow", - "decimals": 6, - "useMetricPrefix": false - }, - "publicKeyRanges": [ - { - "key": "d9922819a39e94ddf3907f4b9c8df93f39f026244fcb609205b9a879022599f2", - "start": 0, - "end": 0 - }, - { - "key": "d85e5b1590d898d1e0cdebb2e3b5337c8b76270142663d78811683ba47c17c98", - "start": 0, - "end": 0 - }, - { - "key": "f9d9656a60049083eef61487632187b351294c1fa23d118060d813db6d03e8b6", - "start": 0, - "end": 0 - }, - { - "key": "3df80964cc83921e08c1fa0a4f5fc05810a634da45461b2b315fcbfd62f7cab7", - "start": 0, - "end": 0 - }, - { - "key": "8e222ae7e2adcfb87a2984a19aad52b1979ed1472c3cb17239a73ef1d344c35a", - "start": 0, - "end": 0 - }, - { - "key": "64bc7cd3de254cc3a2a6e0aaee5b841d0a671b22b487788f594fbf1ef329935c", - "start": 0, - "end": 0 - }, - { - "key": "a3be03ff2390210354a9af6beb418a957766b050f5a7c62662803cc267a944f6", - "start": 0, - "end": 0 - }, - { - "key": "19596d570e9535f11cc34091db98ec44a526e38657f826b5d6b6152e533b8c06", - "start": 0, - "end": 0 - }, - { - "key": "afeac2c52a0ad3da537ba87d0172720fd55fa4fdb3c44b0fd20bc812d18a8856", - "start": 0, - "end": 0 - }, - { - "key": "2a6977f6e547518d572d7ba63f6b50b5bbaf3de8023dc542751723f391297b8b", - "start": 0, - "end": 0 - } - ] - }, - "p2p": { - "autopeering": { - "enabled": true, - "entryNodes": [ - "/dns/entry-hornet-0.h.alphanet.iotaledger.net/udp/14626/autopeering/Bv8UUxy81fqpttowiFiBsNT6mnGMFoFNjk79iG1f9nEr", - "/dns/entry-hornet-1.h.alphanet.iotaledger.net/udp/14626/autopeering/CbYtFzRQtqeNQJQFYRZk1WewxfKCmqXCHZ16od1d23PX" - ] - } - }, - "tangle": { - "maxDeltaBlockYoungestConeRootIndexToCMI": 80, - "maxDeltaBlockOldestConeRootIndexToCMI": 130 - }, - "snapshots": { - "depth": 500, - "interval": 2000, - "downloadURLs": [ - { - "full": "https://files.alphanet.iotaledger.net/snapshots/latest-full_snapshot.bin", - "delta": "https://files.alphanet.iotaledger.net/snapshots/latest-delta_snapshot.bin" - } - ] - }, - "warpsync": { - "advancementRange": 1500 - } -} diff --git a/stardust/config_defaults.json b/stardust/config_defaults.json index 874b41d..8c6e10f 100644 --- a/stardust/config_defaults.json +++ b/stardust/config_defaults.json @@ -15,6 +15,9 @@ "disableStacktrace": false, "stacktraceLevel": "panic", "encoding": "console", + "encodingConfig": { + "timeEncoder": "rfc3339" + }, "outputPaths": [ "stdout" ], @@ -25,64 +28,64 @@ "alias": "HORNET node" }, "protocol": { - "targetNetworkName": "shimmer", + "targetNetworkName": "iota-mainnet", "milestonePublicKeyCount": 7, "baseToken": { - "name": "Shimmer", - "tickerSymbol": "SMR", - "unit": "SMR", - "subunit": "glow", + "name": "IOTA", + "tickerSymbol": "IOTA", + "unit": "IOTA", + "subunit": "micro", "decimals": 6, "useMetricPrefix": false }, "publicKeyRanges": [ { - "key": "a507d2a592a5f0424ed8530603c08acebe088ae26211e90b79bfec0970a2397f", + "key": "2fb1d7ec714adf365eefa343b66c0c459a9930276aff08cde482cb8050028624", "start": 0, "end": 0 }, { - "key": "71a09774449a081450a51e0245a1e9850190f93508fd8f21bb9b9ca169765f30", + "key": "8845cd560d66d50070c6e251d7a0a19f8de217fabf53a78ee15b41d85a489cc6", "start": 0, "end": 0 }, { - "key": "a375515bfe5adf7fedb64ef4cebe1e621e85a056b0ccd5db72bc0d474325bf38", + "key": "1d61aab6f7e52129b78fcdf9568def0baa9c71112964f5b4d86ffc406866a986", "start": 0, "end": 0 }, { - "key": "1df26178a7914126fd8cb934c7a7437073794c1c8ce99319172436b1d4973eba", + "key": "fa94be504dfb10876a449db5272f19393ded922cbe3b023b4e57b62a53835721", "start": 0, "end": 0 }, { - "key": "45432d7c767e16586403262331a725c7eaa0b2dd79ea442f373c845ae3443aa9", + "key": "5fadfabe6944f5f0166ada11452c642010339f916e28187ecf8b4a207c8dba47", "start": 0, "end": 0 }, { - "key": "9d87b4d2538b10799b582e25ace4726d92d7798ddfb696ff08e450db7917c9ad", + "key": "347e6892d72b71e0423bd14daaf61d2ac35e91852fa5b155b92ddda0e064f55f", "start": 0, "end": 0 }, { - "key": "a921841628d64c3f08bd344118b8106ade072e68c774beff30135e036194493a", + "key": "0e403f526a66b4c0b18e8b0257671b07892a419e4b6e4540707d9a4793d1e3be", "start": 0, "end": 0 }, { - "key": "16ee3356c21e410a0aaab42896021b1a857eb8d97a14a66fed9b13d634c21317", + "key": "3af73a609696ff6fe63c36d060455cd83ec23edea2d2b87d5317004849cc0e9a", "start": 0, "end": 0 }, { - "key": "99c7d9752c295cb56b550191015ab5a40226fb632e8b02ec15cfe574ea17cf67", + "key": "ee1bfa9e791a9f57ea72c6192b000d906f21479ba8f40bb20cdd8badb7ddcb78", "start": 0, "end": 0 }, { - "key": "4af647910ba47000108b87c63abe0545643f9b203eacee2b713729b0450983fe", + "key": "083d7af99250a06d086b07bdd5bccd2bff406ee17e19332ccdb08d8be72218ce", "start": 0, "end": 0 } @@ -90,7 +93,7 @@ }, "db": { "engine": "rocksdb", - "path": "shimmer/database", + "path": "mainnet/database", "autoRevalidation": false, "checkLedgerStateOnStartup": false }, @@ -108,7 +111,7 @@ }, "identityPrivateKey": "", "db": { - "path": "shimmer/p2pstore" + "path": "mainnet/p2pstore" }, "reconnectInterval": "30s", "gossip": { @@ -120,8 +123,8 @@ "enabled": false, "bindAddress": "0.0.0.0:14626", "entryNodes": [ - "/dns/entry-hornet-0.h.shimmer.network/udp/14626/autopeering/HK6EKbNtjwve9HMbL6PH6R3uLXZYQoBoqNPD5LsoWuA6", - "/dns/entry-hornet-1.h.shimmer.network/udp/14626/autopeering/BT8EiSRXTixnH2wMoy4ecNpVtiAXxfXKfYsJ2KvU3WLx" + "/dns/entry-hornet-0.h.stardust-mainnet.iotaledger.net/udp/14626/autopeering/K4cHM64KxzYJ5ZB2a9P3stJUHjvQDh4bzhCw49xDowi", + "/dns/entry-hornet-1.h.stardust-mainnet.iotaledger.net/udp/14626/autopeering/8UbVu5MjRZH2c9fnEdpfPvd7qqDgrVFsNsvc933FuMTm" ], "entryNodesPreferIPv6": false, "runAsEntryNode": false @@ -141,14 +144,14 @@ "enabled": false, "depth": 50, "interval": 200, - "fullPath": "shimmer/snapshots/full_snapshot.bin", - "deltaPath": "shimmer/snapshots/delta_snapshot.bin", + "fullPath": "mainnet/snapshots/full_snapshot.bin", + "deltaPath": "mainnet/snapshots/delta_snapshot.bin", "deltaSizeThresholdPercentage": 50, "deltaSizeThresholdMinSize": "50M", "downloadURLs": [ { - "full": "https://files.shimmer.network/snapshots/latest-full_snapshot.bin", - "delta": "https://files.shimmer.network/snapshots/latest-delta_snapshot.bin" + "full": "https://files.stardust-mainnet.iotaledger.net/snapshots/latest-full_snapshot.bin", + "delta": "https://files.stardust-mainnet.iotaledger.net/snapshots/latest-delta_snapshot.bin" } ] }, diff --git a/stardust/config_mainnet.json b/stardust/config_mainnet.json new file mode 100644 index 0000000..fbd447f --- /dev/null +++ b/stardust/config_mainnet.json @@ -0,0 +1,91 @@ +{ + "protocol": { + "targetNetworkName": "iota-mainnet", + "milestonePublicKeyCount": 7, + "baseToken": { + "name": "IOTA", + "tickerSymbol": "IOTA", + "unit": "IOTA", + "subunit": "micro", + "decimals": 6, + "useMetricPrefix": false + }, + "publicKeyRanges": [ + { + "key": "2fb1d7ec714adf365eefa343b66c0c459a9930276aff08cde482cb8050028624", + "start": 0, + "end": 0 + }, + { + "key": "8845cd560d66d50070c6e251d7a0a19f8de217fabf53a78ee15b41d85a489cc6", + "start": 0, + "end": 0 + }, + { + "key": "1d61aab6f7e52129b78fcdf9568def0baa9c71112964f5b4d86ffc406866a986", + "start": 0, + "end": 0 + }, + { + "key": "fa94be504dfb10876a449db5272f19393ded922cbe3b023b4e57b62a53835721", + "start": 0, + "end": 0 + }, + { + "key": "5fadfabe6944f5f0166ada11452c642010339f916e28187ecf8b4a207c8dba47", + "start": 0, + "end": 0 + }, + { + "key": "347e6892d72b71e0423bd14daaf61d2ac35e91852fa5b155b92ddda0e064f55f", + "start": 0, + "end": 0 + }, + { + "key": "0e403f526a66b4c0b18e8b0257671b07892a419e4b6e4540707d9a4793d1e3be", + "start": 0, + "end": 0 + }, + { + "key": "3af73a609696ff6fe63c36d060455cd83ec23edea2d2b87d5317004849cc0e9a", + "start": 0, + "end": 0 + }, + { + "key": "ee1bfa9e791a9f57ea72c6192b000d906f21479ba8f40bb20cdd8badb7ddcb78", + "start": 0, + "end": 0 + }, + { + "key": "083d7af99250a06d086b07bdd5bccd2bff406ee17e19332ccdb08d8be72218ce", + "start": 0, + "end": 0 + } + ] + }, + "db": { + "path": "mainnet/database" + }, + "p2p": { + "db": { + "path": "mainnet/p2pstore" + }, + "autopeering": { + "enabled": true, + "entryNodes": [ + "/dns/entry-hornet-0.h.stardust-mainnet.iotaledger.net/udp/14626/autopeering/K4cHM64KxzYJ5ZB2a9P3stJUHjvQDh4bzhCw49xDowi", + "/dns/entry-hornet-1.h.stardust-mainnet.iotaledger.net/udp/14626/autopeering/8UbVu5MjRZH2c9fnEdpfPvd7qqDgrVFsNsvc933FuMTm" + ] + } + }, + "snapshots": { + "fullPath": "/mainnet/snapshots/full_snapshot.bin", + "deltaPath": "/mainnet/snapshots/delta_snapshot.bin", + "downloadURLs": [ + { + "full": "https://files.stardust-mainnet.iotaledger.net/snapshots/latest-full_snapshot.bin", + "delta": "https://files.stardust-mainnet.iotaledger.net/snapshots/latest-delta_snapshot.bin" + } + ] + } +} \ No newline at end of file diff --git a/stardust/config_shimmer.json b/stardust/config_shimmer.json new file mode 100644 index 0000000..f480465 --- /dev/null +++ b/stardust/config_shimmer.json @@ -0,0 +1,91 @@ +{ + "protocol": { + "targetNetworkName": "shimmer", + "milestonePublicKeyCount": 7, + "baseToken": { + "name": "Shimmer", + "tickerSymbol": "SMR", + "unit": "SMR", + "subunit": "glow", + "decimals": 6, + "useMetricPrefix": false + }, + "publicKeyRanges": [ + { + "key": "a507d2a592a5f0424ed8530603c08acebe088ae26211e90b79bfec0970a2397f", + "start": 0, + "end": 0 + }, + { + "key": "71a09774449a081450a51e0245a1e9850190f93508fd8f21bb9b9ca169765f30", + "start": 0, + "end": 0 + }, + { + "key": "a375515bfe5adf7fedb64ef4cebe1e621e85a056b0ccd5db72bc0d474325bf38", + "start": 0, + "end": 0 + }, + { + "key": "1df26178a7914126fd8cb934c7a7437073794c1c8ce99319172436b1d4973eba", + "start": 0, + "end": 0 + }, + { + "key": "45432d7c767e16586403262331a725c7eaa0b2dd79ea442f373c845ae3443aa9", + "start": 0, + "end": 0 + }, + { + "key": "9d87b4d2538b10799b582e25ace4726d92d7798ddfb696ff08e450db7917c9ad", + "start": 0, + "end": 0 + }, + { + "key": "a921841628d64c3f08bd344118b8106ade072e68c774beff30135e036194493a", + "start": 0, + "end": 0 + }, + { + "key": "16ee3356c21e410a0aaab42896021b1a857eb8d97a14a66fed9b13d634c21317", + "start": 0, + "end": 0 + }, + { + "key": "99c7d9752c295cb56b550191015ab5a40226fb632e8b02ec15cfe574ea17cf67", + "start": 0, + "end": 0 + }, + { + "key": "4af647910ba47000108b87c63abe0545643f9b203eacee2b713729b0450983fe", + "start": 0, + "end": 0 + } + ] + }, + "db": { + "path": "shimmer/database" + }, + "p2p": { + "db": { + "path": "shimmer/p2pstore" + }, + "autopeering": { + "enabled": true, + "entryNodes": [ + "/dns/entry-hornet-0.h.shimmer.network/udp/14626/autopeering/HK6EKbNtjwve9HMbL6PH6R3uLXZYQoBoqNPD5LsoWuA6", + "/dns/entry-hornet-1.h.shimmer.network/udp/14626/autopeering/BT8EiSRXTixnH2wMoy4ecNpVtiAXxfXKfYsJ2KvU3WLx" + ] + } + }, + "snapshots": { + "fullPath": "/shimmer/snapshots/full_snapshot.bin", + "deltaPath": "/shimmer/snapshots/delta_snapshot.bin", + "downloadURLs": [ + { + "full": "https://files.shimmer.network/snapshots/latest-full_snapshot.bin", + "delta": "https://files.shimmer.network/snapshots/latest-delta_snapshot.bin" + } + ] + } +} \ No newline at end of file diff --git a/stardust/config_testnet.json b/stardust/config_testnet.json index 914de14..9a17033 100644 --- a/stardust/config_testnet.json +++ b/stardust/config_testnet.json @@ -63,7 +63,13 @@ } ] }, + "db": { + "path": "testnet/database" + }, "p2p": { + "db": { + "path": "testnet/p2pstore" + }, "autopeering": { "enabled": true, "entryNodes": [ @@ -73,6 +79,8 @@ } }, "snapshots": { + "fullPath": "testnet/snapshots/full_snapshot.bin", + "deltaPath": "testnet/snapshots/delta_snapshot.bin", "downloadURLs": [ { "full": "https://files.testnet.shimmer.network/snapshots/latest-full_snapshot.bin", diff --git a/stardust/docker-compose.yml b/stardust/docker-compose.yml index 66c22d4..757160d 100644 --- a/stardust/docker-compose.yml +++ b/stardust/docker-compose.yml @@ -12,7 +12,7 @@ services: hornet: container_name: hornet - image: iotaledger/hornet:2.0-rc + image: iotaledger/hornet:2.0 ulimits: nofile: soft: 16384 @@ -142,7 +142,7 @@ services: inx-indexer: container_name: inx-indexer - image: iotaledger/inx-indexer:1.0-rc + image: iotaledger/inx-indexer:1.0 stop_grace_period: 5m restart: unless-stopped depends_on: @@ -159,7 +159,7 @@ services: inx-mqtt: container_name: inx-mqtt - image: iotaledger/inx-mqtt:1.0-rc + image: iotaledger/inx-mqtt:1.0 stop_grace_period: 5m restart: unless-stopped depends_on: @@ -173,7 +173,7 @@ services: inx-participation: container_name: inx-participation - image: iotaledger/inx-participation:1.0-rc + image: iotaledger/inx-participation:1.0 stop_grace_period: 5m restart: unless-stopped depends_on: @@ -192,7 +192,7 @@ services: inx-spammer: container_name: inx-spammer - image: iotaledger/inx-spammer:1.0-rc + image: iotaledger/inx-spammer:1.0 stop_grace_period: 5m restart: unless-stopped depends_on: @@ -208,7 +208,7 @@ services: inx-poi: container_name: inx-poi - image: iotaledger/inx-poi:1.0-rc + image: iotaledger/inx-poi:1.0 stop_grace_period: 5m restart: unless-stopped depends_on: @@ -220,7 +220,7 @@ services: inx-dashboard: container_name: inx-dashboard - image: iotaledger/inx-dashboard:1.0-rc + image: iotaledger/inx-dashboard:1.0 stop_grace_period: 5m restart: unless-stopped depends_on: @@ -250,7 +250,7 @@ services: wasp: container_name: wasp - image: iotaledger/wasp:0.6-alpha + image: iotaledger/wasp:1.0-rc stop_grace_period: 5m restart: unless-stopped depends_on: From afd7c642db5b6a06d48048c5613515edfa318e16 Mon Sep 17 00:00:00 2001 From: muXxer Date: Tue, 3 Oct 2023 11:27:56 +0200 Subject: [PATCH 2/2] Remove chrysalis from the CI workflow --- .github/workflows/release.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b566a2..c1d418b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,25 +19,12 @@ jobs: replace: ${{ github.ref_name }} regex: false - - name: Create node-docker-setup_chrysalis.tar.gz - uses: ihiroky/archive-action@v1 - with: - root_dir: chrysalis - file_path: node-docker-setup_chrysalis.tar.gz - - name: Create node-docker-setup_stardust.tar.gz uses: ihiroky/archive-action@v1 with: root_dir: stardust file_path: node-docker-setup_stardust.tar.gz - - name: Upload node-docker-setup_chrysalis.tar.gz file - uses: Shopify/upload-to-release@v1.0.1 - with: - name: node-docker-setup_chrysalis-${{ github.ref_name }}.tar.gz - path: node-docker-setup_chrysalis.tar.gz - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Upload node-docker-setup_stardust.tar.gz file uses: Shopify/upload-to-release@v1.0.1 with: