From 425fd8f352b27cd3c73d9d3dfa5e6701a153efb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=D0=B5rgi=D0=BE=20N=D0=B5mir=D0=BEwski?= Date: Mon, 12 Feb 2024 11:36:23 +0300 Subject: [PATCH] close #110, remove outdated config.env and docker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sеrgiо Nеmirоwski --- Makefile | 18 - README.md | 33 - config/config.env | 19 - docker/docker-compose.devenv.yml | 50 - docker/docker-compose.yml | 48 - docker/grafana/grafana.ini | 3 - .../provisioning/dashboards/dashboard.yml | 11 - .../dashboards/neofs_dashboard.json | 1195 ----------------- .../provisioning/datasources/datasource.yml | 8 - docker/mainnet.env | 3 - docker/prometheus/prometheus.yml | 14 - docker/testnet.env | 3 - 12 files changed, 1405 deletions(-) delete mode 100644 config/config.env delete mode 100644 docker/docker-compose.devenv.yml delete mode 100644 docker/docker-compose.yml delete mode 100644 docker/grafana/grafana.ini delete mode 100644 docker/grafana/provisioning/dashboards/dashboard.yml delete mode 100644 docker/grafana/provisioning/dashboards/neofs_dashboard.json delete mode 100644 docker/grafana/provisioning/datasources/datasource.yml delete mode 100644 docker/mainnet.env delete mode 100644 docker/prometheus/prometheus.yml delete mode 100644 docker/testnet.env diff --git a/Makefile b/Makefile index d995617..dafd210 100644 --- a/Makefile +++ b/Makefile @@ -30,24 +30,6 @@ image: fmt: @gofmt -l -w -s $$(find . -type f -name '*.go'| grep -v "/vendor/") -up: - @docker-compose -f docker/docker-compose.yml --env-file docker/mainnet.env up -d - -up-testnet: - @docker-compose -f docker/docker-compose.yml --env-file docker/testnet.env up -d - -up-devenv: - @docker-compose -f docker/docker-compose.devenv.yml up -d - -down: - @docker-compose -f docker/docker-compose.yml down - -down-testnet: - @docker-compose -f docker/docker-compose.yml down - -down-devenv: - @docker-compose -f docker/docker-compose.devenv.yml down - clean: rm -f ${BINARY} diff --git a/README.md b/README.md index 6df33ba..76ef8b8 100644 --- a/README.md +++ b/README.md @@ -5,32 +5,6 @@ provided for NeoFS contracts (deployed into FS chains). Metrics are updated regularly and can then be scraped/stored/analysed/visualized in various ways (VictoriaMetrics/Grafana). -## How to use - -1. (Optional) Build image of neo-exporter app. - -``` -$ make image -``` - -2. (Optional) Specify neo-exporter image version in `docker/docker-compose.yml`. - -3. Start environment. - -``` -$ make up -``` - -To stop environment run `make down` command. - -4. In grafana at `http://localhost:3000` select `NeoFS Network Monitor` -dashboard. - -Supported environments: -- N3 Mainnet (`make up`) -- N3 T5 (`make up-testnet`) -- NeoFS Dev Env (`make up-devenv`) - ## Available options See [config examples](./config) for all available options. @@ -95,10 +69,3 @@ nep17: balanceOf: - NagentXDvR5c3pQ4gxXpqZjMoUpKVCUMmB ``` - -## Connect to neofs-dev-env - -After `Jebudo` release monitor can be attached to -[neofs-dev-env](https://github.com/nspcc-dev/neofs-dev-env). Go to -`docker/docker-compose.devenv.yml` file, make sure that NeoFS contract script -hash is correct, and run `make up-devenv` command. diff --git a/config/config.env b/config/config.env deleted file mode 100644 index fa48e46..0000000 --- a/config/config.env +++ /dev/null @@ -1,19 +0,0 @@ -# Sidechain NEO RPC related configuration. -NEOFS_NET_MONITOR_MORPH_RPC_ENDPOINT="https://rpc1.morph.t5.fs.neo.org:51331 https://rpc2.morph.t5.fs.neo.org:51331" -NEOFS_NET_MONITOR_MORPH_RPC_DIAL_TIMEOUT=5s -NEOFS_NET_MONITOR_MORPH_RPC_HEALTH_RECHECK_INTERVAL=5s - -# Mainchain NEO RPC related configuration. -NEOFS_NET_MONITOR_MAINNET_RPC_ENDPOINT="https://rpc1.t5.n3.nspcc.ru:21331 https://rpc2.t5.n3.nspcc.ru:21331" -NEOFS_NET_MONITOR_MAINNET_RPC_DIAL_TIMEOUT=5s -NEOFS_NET_MONITOR_MAINNET_RPC_HEALTH_RECHECK_INTERVAL=5s - -# Prometheus metric endpoint. -NEOFS_NET_MONITOR_METRICS_ENDPOINT=:16512 - -# Interval between NeoFS metric scrapping. -NEOFS_NET_MONITOR_METRICS_INTERVAL=15m - -# NeoFS contract from main chain. Required for asset supply metric. -NEOFS_NET_MONITOR_CONTRACTS_NEOFS=3c3f4b84773ef0141576e48c3ff60e5078235891 - diff --git a/docker/docker-compose.devenv.yml b/docker/docker-compose.devenv.yml deleted file mode 100644 index 4b11190..0000000 --- a/docker/docker-compose.devenv.yml +++ /dev/null @@ -1,50 +0,0 @@ -version: '2.4' - -networks: - internet: - external: - name: basenet_internet - -services: - grafana: - image: grafana/grafana:9.4.7 - container_name: grafana - depends_on: - - prometheus - ports: - - 3000:3000 - volumes: - - ./grafana/grafana.ini:/etc/grafana/grafana.ini - - ./grafana/provisioning:/etc/grafana/provisioning - environment: - - GF_INSTALL_PLUGINS=grafana-worldmap-panel - networks: - - internet - restart: on-failure - - prometheus: - image: prom/prometheus:v2.43.0 - container_name: prometheus - volumes: - - ./prometheus/:/etc/prometheus/ - command: [ - '--config.file=/etc/prometheus/prometheus.yml', - ] - ports: - - 9090:9090 - networks: - - internet - restart: on-failure - - neo-exporter: - image: nspccdev/neo-exporter:0.9.0 - container_name: neo-exporter - depends_on: - - prometheus - environment: - - NEOFS_NET_MONITOR_METRICS_INTERVAL=15s - - NEOFS_NET_MONITOR_MAINNET_RPC_ENDPOINT=http://192.168.130.50:30333 - - NEOFS_NET_MONITOR_MORPH_RPC_ENDPOINT=http://192.168.130.90:30333 - networks: - - internet - restart: on-failure diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml deleted file mode 100644 index 610f554..0000000 --- a/docker/docker-compose.yml +++ /dev/null @@ -1,48 +0,0 @@ -version: '2.4' - -networks: - monitor-net: - driver: bridge - -services: - grafana: - image: grafana/grafana:9.4.7 - container_name: grafana - depends_on: - - prometheus - ports: - - 3000:3000 - volumes: - - ./grafana/grafana.ini:/etc/grafana/grafana.ini - - ./grafana/provisioning:/etc/grafana/provisioning - environment: - - GF_INSTALL_PLUGINS=grafana-worldmap-panel - networks: - - monitor-net - restart: on-failure - - prometheus: - image: prom/prometheus:v2.43.0 - container_name: prometheus - volumes: - - ./prometheus/:/etc/prometheus/ - command: [ - '--config.file=/etc/prometheus/prometheus.yml', - ] - networks: - - monitor-net - restart: on-failure - - neo-exporter: - image: nspccdev/neo-exporter:0.9.0 - container_name: neo-exporter - depends_on: - - prometheus - environment: - - NEOFS_NET_MONITOR_METRICS_INTERVAL=15s - - NEOFS_NET_MONITOR_MAINNET_RPC_ENDPOINT=${NEOFS_NET_MONITOR_MAINNET_RPC_ENDPOINT} - - NEOFS_NET_MONITOR_MORPH_RPC_ENDPOINT=${NEOFS_NET_MONITOR_MORPH_RPC_ENDPOINT} - - NEOFS_NET_MONITOR_CONTRACTS_NEOFS=${NEOFS_NET_MONITOR_CONTRACTS_NEOFS} - networks: - - monitor-net - restart: on-failure diff --git a/docker/grafana/grafana.ini b/docker/grafana/grafana.ini deleted file mode 100644 index 256888f..0000000 --- a/docker/grafana/grafana.ini +++ /dev/null @@ -1,3 +0,0 @@ -[auth.anonymous] -# enable anonymous access -enabled = true diff --git a/docker/grafana/provisioning/dashboards/dashboard.yml b/docker/grafana/provisioning/dashboards/dashboard.yml deleted file mode 100644 index 4817a83..0000000 --- a/docker/grafana/provisioning/dashboards/dashboard.yml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: 1 - -providers: - - name: 'Prometheus' - orgId: 1 - folder: '' - type: file - disableDeletion: false - editable: true - options: - path: /etc/grafana/provisioning/dashboards diff --git a/docker/grafana/provisioning/dashboards/neofs_dashboard.json b/docker/grafana/provisioning/dashboards/neofs_dashboard.json deleted file mode 100644 index 647b46a..0000000 --- a/docker/grafana/provisioning/dashboards/neofs_dashboard.json +++ /dev/null @@ -1,1195 +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" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 25, - "panels": [], - "targets": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "refId": "A" - } - ], - "title": "Storage nodes", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "uid": "$datasource" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 9, - "x": 0, - "y": 1 - }, - "hiddenSeries": false, - "id": 8, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "expr": "neofs_net_monitor_sn_balance{net=\"$net\", key=~\"$sn_key\"}/100000000", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{key}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Storage nodes side chain GAS balances", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "uid": "$datasource" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 9, - "x": 9, - "y": 1 - }, - "hiddenSeries": false, - "id": 18, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "exemplar": true, - "expr": "neofs_net_monitor_sn_balance_notary{net=\"$net\", key=~\"$sn_key\"}/100000000", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{key}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Storage nodes side chain Notary balances", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus", - "uid": "$datasource" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "active" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "new" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-green", - "value": null - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "dropped" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-red", - "value": null - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 18, - "y": 1 - }, - "id": 14, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "$datasource" - }, - "editorMode": "code", - "expr": "sum(neofs_net_monitor_netmap{net=\"$net\"})", - "hide": false, - "legendFormat": "active", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "$datasource" - }, - "editorMode": "code", - "expr": "neofs_net_monitor_netmap_new{net=\"$net\"}", - "hide": false, - "legendFormat": "new", - "range": true, - "refId": "B" - }, - { - "datasource": { - "uid": "$datasource" - }, - "editorMode": "code", - "expr": "neofs_net_monitor_netmap_dropped{net=\"$net\"}", - "instant": false, - "interval": "", - "legendFormat": "dropped", - "queryType": "randomWalk", - "refId": "C" - } - ], - "title": "Nodes", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 9 - }, - "id": 23, - "panels": [], - "targets": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "refId": "A" - } - ], - "title": "Network Info", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "uid": "$datasource" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 9, - "x": 0, - "y": 10 - }, - "hiddenSeries": false, - "id": 12, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "exemplar": true, - "expr": "neofs_net_monitor_proxy_balance{net=\"$net\"}/100000000", - "interval": "", - "legendFormat": "ProxyContract", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Proxy contract GAS balance", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "uid": "$datasource" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 9, - "x": 9, - "y": 10 - }, - "hiddenSeries": false, - "id": 17, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "exemplar": true, - "expr": "neofs_net_monitor_alphabet_balance{net=\"$net\"}/100000000", - "interval": "", - "legendFormat": "{{key}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Alphabet mainnet GAS balances", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "uid": "$datasource" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 18, - "y": 10 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "expr": "neofs_net_monitor_epoch{net=\"$net\"}", - "instant": false, - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Epoch", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 10 - }, - "id": 28, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "exemplar": true, - "expr": "neofs_net_monitor_containers_number{net=\"$net\"}", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Containers number", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "$datasource" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-red", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 18, - "y": 14 - }, - "id": 26, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "$datasource" - }, - "exemplar": true, - "expr": "neofs_net_monitor_alphabet_divergence_count{net=\"$net\"}", - "instant": false, - "interval": "", - "legendFormat": "{{chain}}chain", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Number of unique alphabet keys (divergence)", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "uid": "$datasource" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 9, - "x": 0, - "y": 18 - }, - "hiddenSeries": false, - "id": 10, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "expr": "neofs_net_monitor_ir_balance{net=\"$net\"}/100000000", - "interval": "", - "legendFormat": "{{key}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Inner ring side chain GAS balances", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "uid": "$datasource" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 9, - "x": 9, - "y": 18 - }, - "hiddenSeries": false, - "id": 19, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.7", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "exemplar": true, - "expr": "neofs_net_monitor_alphabet_balance_notary{net=\"$net\"}/100000000", - "interval": "", - "legendFormat": "{{key}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Alphabet side chain Notary balances", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "uid": "$datasource" - }, - "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 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 18, - "y": 18 - }, - "id": 21, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "exemplar": true, - "expr": "neofs_net_monitor_main_chain_supply{net=\"$net\"}/1e8", - "interval": "", - "legendFormat": "Main chain supply", - "refId": "A" - }, - { - "datasource": { - "uid": "$datasource" - }, - "exemplar": true, - "expr": "neofs_net_monitor_side_chain_supply{net=\"$net\"}/1e12", - "hide": false, - "interval": "", - "legendFormat": "Side chain supply", - "refId": "B" - }, - { - "datasource": { - "uid": "$datasource" - }, - "exemplar": true, - "expr": "abs(neofs_net_monitor_main_chain_supply{net=\"$net\"}*1e4 - neofs_net_monitor_side_chain_supply{net=\"$net\"})/1e12", - "hide": false, - "interval": "", - "legendFormat": "delta", - "refId": "C" - } - ], - "title": "Asset supply", - "type": "timeseries" - }, - { - "circleMaxSize": "10", - "circleMinSize": "10", - "colors": [ - "#FF7383", - "#FFB357", - "#96D98D" - ], - "datasource": { - "uid": "$datasource" - }, - "decimals": 10, - "esMetric": "Count", - "gridPos": { - "h": 22, - "w": 24, - "x": 0, - "y": 26 - }, - "hideEmpty": false, - "hideZero": false, - "id": 2, - "initialZoom": 1, - "locationData": "table", - "mapCenter": "(0°, 0°)", - "mapCenterLatitude": 0, - "mapCenterLongitude": 0, - "maxDataPoints": 1, - "mouseWheelZoom": true, - "pluginVersion": "7.3.7", - "showLegend": true, - "stickyLabels": false, - "tableQueryOptions": { - "geohashField": "geohash", - "labelField": "location", - "latitudeField": "latitude", - "longitudeField": "longitude", - "metricField": "Value", - "queryType": "coordinates" - }, - "targets": [ - { - "datasource": { - "uid": "$datasource" - }, - "exemplar": true, - "expr": "neofs_net_monitor_netmap{net=\"$net\"}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "2,10", - "title": "Storage node map", - "transformations": [], - "type": "grafana-worldmap-panel", - "unitPlural": "Nodes", - "unitSingle": "", - "unitSingular": "Node", - "valueName": "current" - } - ], - "refresh": "5m", - "revision": 1, - "schemaVersion": 38, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": "Prometheus", - "value": "Prometheus" - }, - "hide": 0, - "includeAll": false, - "multi": false, - "name": "datasource", - "options": [], - "query": "prometheus", - "queryValue": "", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "current": { - "selected": true, - "text": "monitor", - "value": "monitor" - }, - "datasource": { - "type": "prometheus", - "uid": "$datasource" - }, - "definition": "label_values(neofs_net_monitor_epoch,net)", - "hide": 0, - "includeAll": false, - "label": "Network", - "multi": false, - "name": "net", - "options": [], - "query": { - "query": "label_values(neofs_net_monitor_epoch,net)", - "refId": "Prometheus-net-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "definition": "neofs_net_monitor_sn_balance{net=\"$net\"}", - "hide": 0, - "includeAll": true, - "label": "Storage node", - "multi": true, - "name": "sn_key", - "options": [], - "query": { - "query": "neofs_net_monitor_sn_balance{net=\"$net\"}", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "/.*key=\"([^\"]*).*/", - "skipUrlSync": false, - "sort": 0, - "type": "query" - } - ] - }, - "time": { - "from": "now-24h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "NeoFS Network Monitor", - "uid": "w9pGNKfMz", - "version": 5, - "weekStart": "" -} diff --git a/docker/grafana/provisioning/datasources/datasource.yml b/docker/grafana/provisioning/datasources/datasource.yml deleted file mode 100644 index 81b6a7b..0000000 --- a/docker/grafana/provisioning/datasources/datasource.yml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: 1 - -datasources: -- name: Prometheus - type: prometheus - access: proxy - orgId: 1 - url: http://prometheus:9090 diff --git a/docker/mainnet.env b/docker/mainnet.env deleted file mode 100644 index cee25d1..0000000 --- a/docker/mainnet.env +++ /dev/null @@ -1,3 +0,0 @@ -NEOFS_NET_MONITOR_MAINNET_RPC_ENDPOINT="https://rpc1.n3.nspcc.ru:10331 https://rpc2.n3.nspcc.ru:10331 https://rpc3.n3.nspcc.ru:10331 https://rpc4.n3.nspcc.ru:10331 https://rpc5.n3.nspcc.ru:10331 https://rpc6.n3.nspcc.ru:10331 https://rpc7.n3.nspcc.ru:10331" -NEOFS_NET_MONITOR_MORPH_RPC_ENDPOINT="https://rpc1.morph.fs.neo.org:40341 https://rpc2.morph.fs.neo.org:40341 https://rpc3.morph.fs.neo.org:40341 https://rpc4.morph.fs.neo.org:40341 https://rpc5.morph.fs.neo.org:40341 https://rpc6.morph.fs.neo.org:40341 https://rpc7.morph.fs.neo.org:40341" -NEOFS_NET_MONITOR_CONTRACTS_NEOFS=2cafa46838e8b564468ebd868dcafdd99dce6221 diff --git a/docker/prometheus/prometheus.yml b/docker/prometheus/prometheus.yml deleted file mode 100644 index 14a23da..0000000 --- a/docker/prometheus/prometheus.yml +++ /dev/null @@ -1,14 +0,0 @@ -global: - scrape_interval: 15s # By default, scrape targets every 15 seconds. - -scrape_configs: - - job_name: 'prometheus' - scrape_interval: 5s - static_configs: - - targets: ['localhost:9090'] - - job_name: 'neo-exporter' - scrape_interval: 15s - static_configs: - - targets: ['neo-exporter:16512'] - labels: - net: 'monitor' diff --git a/docker/testnet.env b/docker/testnet.env deleted file mode 100644 index f3ce7f1..0000000 --- a/docker/testnet.env +++ /dev/null @@ -1,3 +0,0 @@ -NEOFS_NET_MONITOR_MAINNET_RPC_ENDPOINT="https://rpc1.t5.n3.nspcc.ru:21331 https://rpc2.t5.n3.nspcc.ru:21331 https://rpc3.t5.n3.nspcc.ru:21331 https://rpc4.t5.n3.nspcc.ru:21331 https://rpc5.t5.n3.nspcc.ru:21331 https://rpc6.t5.n3.nspcc.ru:21331 https://rpc7.t5.n3.nspcc.ru:21331" -NEOFS_NET_MONITOR_MORPH_RPC_ENDPOINT="https://rpc1.morph.t5.fs.neo.org:51331 https://rpc2.morph.t5.fs.neo.org:51331 https://rpc3.morph.t5.fs.neo.org:51331 https://rpc4.morph.t5.fs.neo.org:51331 https://rpc5.morph.t5.fs.neo.org:51331 https://rpc6.morph.t5.fs.neo.org:51331 https://rpc7.morph.t5.fs.neo.org:51331" -NEOFS_NET_MONITOR_CONTRACTS_NEOFS=3c3f4b84773ef0141576e48c3ff60e5078235891