forked from TrueCloudLab/frostfs-node
[#551] Add vmagent in neofs-storage testnet image
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
parent
5ee7d7efcb
commit
4190383341
3 changed files with 25 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
10
config/testnet/prometheus.yml
Normal file
10
config/testnet/prometheus.yml
Normal 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']
|
Loading…
Reference in a new issue