mirror of
https://github.com/Chipazawra/v8-1c-cluster-pde.git
synced 2025-03-17 20:57:44 +02:00
reset dev to master
This commit is contained in:
parent
706e5dd17c
commit
2a18a586c9
@ -1,8 +1,8 @@
|
||||
[1C-RAS](https://infostart.ru/1c/articles/810752/) Prometheus data exporter
|
||||
1С-RAS Prometheus data exporter
|
||||
========
|
||||
[1C-RAS](https://infostart.ru/1c/articles/810752/) Экспортер метрик в Prometheus
|
||||
1C-RAS Экспортер метрик в Prometheus
|
||||
========
|
||||
Ещё один экспортер метрик для Prometheus с [1C-RAS](https://infostart.ru/1c/articles/810752/), не требующий установки [1C-RAS](https://infostart.ru/1c/articles/810752/) благодаря пакету https://github.com/khorevaa/ras-client.
|
||||
Ещё один экспортер метрик для Prometheus с 1C-RAS, не требующий установки 1C-RAC благодаря пакету https://github.com/khorevaa/ras-client.
|
||||
Экспортер работает в двух режимах push и pull.
|
||||
Для работы в режиме push требуется pushgateway в таргетах Prometheus.
|
||||
На текущий момент экспортируются показатели запущеных rpHosts.
|
||||
@ -118,4 +118,4 @@ host - Хост рабочего процесса
|
||||
port - Порт рабочего процесса
|
||||
pid - Идентификатор рабочего процесса
|
||||
startedAt - Время запуска рабочего процесса
|
||||
```
|
||||
```
|
@ -31,7 +31,7 @@ services:
|
||||
org.label-schema.group: "monitoring"
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:8.1.5
|
||||
image: grafana/grafana:8.3.3
|
||||
container_name: grafana
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
|
@ -18,15 +18,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": "",
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 0,
|
||||
"id": 1,
|
||||
"id": 6,
|
||||
"links": [],
|
||||
"liveNow": false,
|
||||
"panels": [
|
||||
{
|
||||
"datasource": null,
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
@ -70,11 +69,15 @@
|
||||
},
|
||||
"showHeader": true
|
||||
},
|
||||
"pluginVersion": "8.1.5",
|
||||
"pluginVersion": "8.3.3",
|
||||
"targets": [
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_running{}",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": false,
|
||||
"expr": "rp_hosts_enable{}",
|
||||
"format": "table",
|
||||
"instant": true,
|
||||
"interval": "",
|
||||
@ -89,6 +92,7 @@
|
||||
"options": {
|
||||
"include": {
|
||||
"names": [
|
||||
"Time",
|
||||
"cluster",
|
||||
"pid",
|
||||
"port",
|
||||
@ -102,7 +106,6 @@
|
||||
"type": "table"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
@ -144,12 +147,15 @@
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"text": {},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "8.1.5",
|
||||
"pluginVersion": "8.3.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_active{}",
|
||||
"interval": "",
|
||||
@ -162,7 +168,6 @@
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
@ -216,20 +221,26 @@
|
||||
"pluginVersion": "8.3.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_enable{}",
|
||||
"format": "time_series",
|
||||
"hide": false,
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"refId": "A"
|
||||
"legendFormat": "pid {{pid}}",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"title": "rp_hosts_enable",
|
||||
"title": "rp_hosts_active",
|
||||
"transformations": [],
|
||||
"transparent": true,
|
||||
"type": "state-timeline"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -284,11 +295,17 @@
|
||||
"pluginVersion": "8.3.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_running",
|
||||
"expr": "rp_hosts_running{}",
|
||||
"hide": false,
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"refId": "A"
|
||||
"legendFormat": "pid {{pid}}",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"title": "rp_hosts_running",
|
||||
@ -297,7 +314,6 @@
|
||||
"type": "state-timeline"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -348,8 +364,7 @@
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "deckbytes"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@ -372,10 +387,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_memory{} ",
|
||||
"expr": "rp_hosts_memory{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -384,7 +403,6 @@
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -455,10 +473,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_connections{} ",
|
||||
"expr": "rp_hosts_connections{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -467,7 +489,6 @@
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -538,10 +559,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_avg_threads{} ",
|
||||
"expr": "rp_hosts_avg_threads{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -550,7 +575,6 @@
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -621,10 +645,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_available_perfomance",
|
||||
"expr": "rp_hosts_available_perfomance{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -633,7 +661,6 @@
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -681,8 +708,7 @@
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "s"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@ -705,10 +731,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_avg_call_time",
|
||||
"expr": "rp_hosts_avg_call_time{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -717,7 +747,6 @@
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -765,8 +794,7 @@
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "deckbytes"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@ -789,10 +817,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_selection_size",
|
||||
"expr": "rp_hosts_selection_size{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -801,7 +833,6 @@
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -849,8 +880,7 @@
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "s"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@ -873,10 +903,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_memory_excess_time",
|
||||
"expr": "rp_hosts_memory_excess_time{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -885,7 +919,6 @@
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -933,8 +966,7 @@
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "s"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@ -957,19 +989,22 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_avg_lock_call_time{}",
|
||||
"expr": "rp_hosts_capacity{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "rp_hosts_avg_lock_call_time",
|
||||
"title": "rp_hosts_available_capacity",
|
||||
"transparent": true,
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -1017,8 +1052,7 @@
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "s"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@ -1041,10 +1075,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_avg_db_call_time",
|
||||
"expr": "rp_hosts_avg_db_call_time{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -1053,7 +1091,6 @@
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -1101,8 +1138,7 @@
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "s"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@ -1112,90 +1148,6 @@
|
||||
"x": 6,
|
||||
"y": 18
|
||||
},
|
||||
"id": 28,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": [],
|
||||
"displayMode": "table",
|
||||
"placement": "right"
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_avg_server_call_time",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "rp_hosts_avg_server_call_time",
|
||||
"transparent": true,
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisLabel": "",
|
||||
"axisPlacement": "auto",
|
||||
"barAlignment": 0,
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 0,
|
||||
"gradientMode": "none",
|
||||
"hideFrom": {
|
||||
"legend": false,
|
||||
"tooltip": false,
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "linear",
|
||||
"lineWidth": 1,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
"type": "linear"
|
||||
},
|
||||
"showPoints": "auto",
|
||||
"spanNulls": false,
|
||||
"stacking": {
|
||||
"group": "A",
|
||||
"mode": "none"
|
||||
},
|
||||
"thresholdsStyle": {
|
||||
"mode": "off"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "none"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 6,
|
||||
"w": 6,
|
||||
"x": 12,
|
||||
"y": 18
|
||||
},
|
||||
"id": 26,
|
||||
"options": {
|
||||
"legend": {
|
||||
@ -1209,19 +1161,108 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_capacity",
|
||||
"expr": "rp_hosts_avg_db_call_time{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "rp_hosts_capacity",
|
||||
"title": "rp_hosts_avg_db_call_time",
|
||||
"transparent": true,
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisLabel": "",
|
||||
"axisPlacement": "auto",
|
||||
"barAlignment": 0,
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 0,
|
||||
"gradientMode": "none",
|
||||
"hideFrom": {
|
||||
"legend": false,
|
||||
"tooltip": false,
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "linear",
|
||||
"lineWidth": 1,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
"type": "linear"
|
||||
},
|
||||
"showPoints": "auto",
|
||||
"spanNulls": false,
|
||||
"stacking": {
|
||||
"group": "A",
|
||||
"mode": "none"
|
||||
},
|
||||
"thresholdsStyle": {
|
||||
"mode": "off"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 6,
|
||||
"w": 6,
|
||||
"x": 12,
|
||||
"y": 18
|
||||
},
|
||||
"id": 28,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": [],
|
||||
"displayMode": "table",
|
||||
"placement": "right"
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_avg_server_call_time{}",
|
||||
"interval": "",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "rp_hosts_avg_server_call_time",
|
||||
"transparent": true,
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@ -1292,10 +1333,14 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "PBFA97CFB590B2093"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "rp_hosts_avg_back_call_time",
|
||||
"expr": "rp_hosts_avg_back_call_time{}",
|
||||
"interval": "",
|
||||
"legendFormat": "{{pid}}",
|
||||
"legendFormat": "pid {{pid}} ",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
@ -1304,20 +1349,21 @@
|
||||
"type": "timeseries"
|
||||
}
|
||||
],
|
||||
"refresh": "30s",
|
||||
"schemaVersion": 30,
|
||||
"refresh": "5s",
|
||||
"schemaVersion": 34,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-15m",
|
||||
"from": "now-12h",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {},
|
||||
"timezone": "",
|
||||
"title": "demo",
|
||||
"uid": "MdMoKZAnk",
|
||||
"version": 4
|
||||
"version": 3,
|
||||
"weekStart": ""
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user