[#551] Add vmagent in neofs-storage testnet image

Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
remotes/fyrchik/meta-pebble
anastasia prasolova 2021-06-08 17:10:03 +03:00 committed by Alex Vanin
parent 5ee7d7efcb
commit 4190383341
3 changed files with 25 additions and 0 deletions

View File

@ -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:

View File

@ -17,5 +17,16 @@ services:
- <NEOFS_NODE_ATTRIBUTE_1>=UN-LOCODE:<XX YYY>
- 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:

View File

@ -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']