diff --git a/config/testnet/config.yml b/config/testnet/config.yml index 47975c1d..4685bd6d 100644 --- a/config/testnet/config.yml +++ b/config/testnet/config.yml @@ -30,6 +30,10 @@ node: key: /node.key attribute_0: Deployed:SelfHosted +metrics: + address: 127.0.0.1:9090 + shutdown_timeout: 15s + storage: shard_num: 1 shard: diff --git a/config/testnet/docker-compose.yml b/config/testnet/docker-compose.yml index beb8e5ed..26fdf12c 100644 --- a/config/testnet/docker-compose.yml +++ b/config/testnet/docker-compose.yml @@ -17,5 +17,16 @@ services: - =UN-LOCODE: - NEOFS_NODE_ATTRIBUTE_2=Price:100000 + vmagent: + image: victoriametrics/vmagent:v1.61.0 + container_name: vmagent + command: + - '--promscrape.config=/configs/prometheus.yml' + - '--remoteWrite.url=https://collector.fs.neo.org:8429/api/v1/write' + network_mode: host + restart: always + volumes: + - ./prometheus.yml:/configs/prometheus.yml + volumes: neofs_storage: diff --git a/config/testnet/prometheus.yml b/config/testnet/prometheus.yml new file mode 100644 index 00000000..a3855ba4 --- /dev/null +++ b/config/testnet/prometheus.yml @@ -0,0 +1,10 @@ +global: + scrape_interval: 15s + external_labels: + monitor: 'user_metrics' + +scrape_configs: + - job_name: 'neofs-node-user' + scrape_interval: 5s + static_configs: + - targets: ['127.0.0.1:9090']