Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2024-09-06 16:35:53 +02:00
parent e64ea01098
commit 06e00b407f
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640
2 changed files with 25 additions and 0 deletions

View file

@ -30,6 +30,26 @@ services:
networks: networks:
- vm_net - vm_net
restart: always restart: always
vmagent-without-aggregation:
container_name: vmagentdata-without-aggregation
image: victoriametrics/vmagent:v1.103.0
depends_on:
- "victoriametrics"
ports:
- 8429
volumes:
- vmagentdata-without-aggregation:/vmagentdata
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--promscrape.config=/etc/prometheus/prometheus.yml"
- "--remoteWrite.url=http://victoriametrics:8428/api/v1/write"
- "--promscrape.config.strictParse=false"
- "--promscrape.maxScrapeSize=9999999999999"
networks:
- vm_net
restart: always
vmagent-with-aggregation: vmagent-with-aggregation:
container_name: vmagent-with-aggregation container_name: vmagent-with-aggregation
image: victoriametrics/vmagent:v1.103.0 image: victoriametrics/vmagent:v1.103.0
@ -46,6 +66,7 @@ services:
- "--streamAggr.config=/etc/prometheus/stream_aggr_config.yml" - "--streamAggr.config=/etc/prometheus/stream_aggr_config.yml"
- "--remoteWrite.url=http://victoriametrics:8428/api/v1/write" - "--remoteWrite.url=http://victoriametrics:8428/api/v1/write"
- "--promscrape.config.strictParse=false" - "--promscrape.config.strictParse=false"
- "--promscrape.maxScrapeSize=9999999999999"
networks: networks:
- vm_net - vm_net
restart: always restart: always
@ -106,6 +127,7 @@ services:
volumes: volumes:
prometheus: {} prometheus: {}
vmagent-monitoring: {} vmagent-monitoring: {}
vmagentdata-without-aggregation: {}
vmagentdata-with-aggregation: {} vmagentdata-with-aggregation: {}
vmdata: {} vmdata: {}
grafanadata: {} grafanadata: {}

View file

@ -11,6 +11,9 @@ scrape_configs:
- job_name: 'vmagent-with-aggregation' - job_name: 'vmagent-with-aggregation'
static_configs: static_configs:
- targets: ['vmagent-with-aggregation:8429'] - targets: ['vmagent-with-aggregation:8429']
- job_name: 'vmagent-without-aggregation'
static_configs:
- targets: ['vmagent-without-aggregation:8429']
- job_name: 'victoriametrics' - job_name: 'victoriametrics'
static_configs: static_configs:
- targets: ['victoriametrics:8428'] - targets: ['victoriametrics:8428']