From 419038334110760ddfb09f34115857cb0d6c9d48 Mon Sep 17 00:00:00 2001 From: anastasia prasolova Date: Tue, 8 Jun 2021 17:10:03 +0300 Subject: [PATCH] [#551] Add vmagent in neofs-storage testnet image Signed-off-by: anastasia prasolova --- config/testnet/config.yml | 4 ++++ config/testnet/docker-compose.yml | 11 +++++++++++ config/testnet/prometheus.yml | 10 ++++++++++ 3 files changed, 25 insertions(+) create mode 100644 config/testnet/prometheus.yml diff --git a/config/testnet/config.yml b/config/testnet/config.yml index 47975c1de..4685bd6df 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 beb8e5ed3..26fdf12ca 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 000000000..a3855ba41 --- /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']