You've already forked v8-1c-cluster-pde
mirror of
https://github.com/Chipazawra/v8-1c-cluster-pde.git
synced 2025-11-06 08:49:31 +02:00
add readme
This commit is contained in:
2
.env
2
.env
@@ -4,7 +4,7 @@ RAS_HOST=192.168.10.10
|
||||
RAS_PORT=2545
|
||||
CLS_USER=admin
|
||||
CLS_PASS=admin
|
||||
MODE=push
|
||||
MODE=pull
|
||||
PUSH_INTERVAL=500
|
||||
PUSH_HOST=pushgateway
|
||||
PUSH_PORT=9091
|
||||
@@ -0,0 +1,4 @@
|
||||
Ещё один экспортер метрик для Prometheus с 1C-RAS, не требующий установки 1C-RAC.
|
||||
Экспортер работает в двух режимах push и pull. Для работы в режиме push требуется pushgateway в таргетах Prometheus
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ volumes:
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
image: prom/prometheus:v2.32.1
|
||||
container_name: prometheus
|
||||
volumes:
|
||||
- ./prometheus:/etc/prometheus
|
||||
@@ -31,7 +31,7 @@ services:
|
||||
org.label-schema.group: "monitoring"
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
image: grafana/grafana:8.3.3
|
||||
container_name: grafana
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
@@ -54,6 +54,12 @@ services:
|
||||
environment:
|
||||
- RAS_HOST=${RAS_HOST}
|
||||
- RAS_PORT=${RAS_PORT}
|
||||
- CLS_USER=${CLS_USER}
|
||||
- CLS_PASS=${CLS_PASS}
|
||||
- MODE=${MODE}
|
||||
- PUSH_INTERVAL=${PUSH_INTERVAL}
|
||||
- PUSH_HOST=${PUSH_HOST}
|
||||
- PUSH_PORT=${PUSH_PORT}
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 9096
|
||||
|
||||
@@ -119,7 +119,8 @@ func RunPuller(rasapi rascli.Api) error {
|
||||
}
|
||||
|
||||
func RunPusher(rasapi rascli.Api) error {
|
||||
log.Printf("v8-1c-cluster-pde: runing in %v mode", conf.MODE)
|
||||
log.Printf("v8-1c-cluster-pde: runing in %v mode pushgateway %v\n",
|
||||
conf.MODE, fmt.Sprintf("%s:%s", conf.PUSH_HOST, conf.PUSH_PORT))
|
||||
return pusher.New(
|
||||
rpHostsCollector.New(rasapi),
|
||||
fmt.Sprintf("%s:%s", conf.PUSH_HOST, conf.PUSH_PORT),
|
||||
|
||||
Reference in New Issue
Block a user