Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "grafana",
- "uid": "-- Grafana --"
- },
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "name": "Annotations & Alerts",
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- }
- ]
- },
- "editable": true,
- "fiscalYearStartMonth": 0,
- "graphTooltip": 0,
- "id": 3,
- "links": [],
- "liveNow": false,
- "panels": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "s1BpijLVk"
- },
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 8,
- "x": 0,
- "y": 0
- },
- "id": 2,
- "maxPerRow": 4,
- "options": {
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": true,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.4.7",
- "repeat": "atomicos_pool",
- "repeatDirection": "h",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "s1BpijLVk"
- },
- "editorMode": "builder",
- "expr": "atomicos_connections{application=\"$application\", pool=\"$atomicos_pool\"}",
- "legendFormat": "__auto",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "s1BpijLVk"
- },
- "editorMode": "code",
- "expr": "atomicos_connections_max{application=\"$application\", pool=\"$atomicos_pool\"}",
- "hide": false,
- "legendFormat": "__auto",
- "range": true,
- "refId": "B"
- }
- ],
- "title": "${atomicos_pool}",
- "transformations": [
- {
- "id": "configFromData",
- "options": {
- "configRefId": "B",
- "mappings": [
- {
- "fieldName": "{__name__=\"atomicos_connections_max\", application=\"local-railway-api-service\", instance=\"192.168.171.76:18081\", job=\"local_railway_api_service\", pool=\"rolis-main@postgres-distributed\"}",
- "handlerKey": "max"
- }
- ]
- }
- }
- ],
- "type": "gauge"
- }
- ],
- "refresh": "5s",
- "revision": 1,
- "schemaVersion": 38,
- "style": "dark",
- "tags": [],
- "templating": {
- "list": [
- {
- "current": {
- "selected": false,
- "text": "local-railway-api-service",
- "value": "local-railway-api-service"
- },
- "datasource": {
- "type": "prometheus",
- "uid": "s1BpijLVk"
- },
- "definition": "label_values(atomicos_connections_max{}, application)",
- "hide": 0,
- "includeAll": false,
- "label": "Application",
- "multi": false,
- "name": "application",
- "options": [],
- "query": {
- "query": "label_values(atomicos_connections_max{}, application)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- },
- {
- "current": {
- "selected": false,
- "text": [
- "rolis-main@postgres-distributed",
- "rolis-main@sybase-distributed",
- "rolis-meta@postgres-distributed"
- ],
- "value": [
- "rolis-main@postgres-distributed",
- "rolis-main@sybase-distributed",
- "rolis-meta@postgres-distributed"
- ]
- },
- "datasource": {
- "type": "prometheus",
- "uid": "s1BpijLVk"
- },
- "definition": "label_values(atomicos_connections_max{application=\"$application\"}, pool)",
- "hide": 0,
- "includeAll": false,
- "label": "Atomicos Pool",
- "multi": true,
- "name": "atomicos_pool",
- "options": [],
- "query": {
- "query": "label_values(atomicos_connections_max{application=\"$application\"}, pool)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- }
- ]
- },
- "time": {
- "from": "now-6h",
- "to": "now"
- },
- "timepicker": {},
- "timezone": "",
- "title": "New dashboard",
- "uid": "LjJAweLVz",
- "version": 7,
- "weekStart": ""
- }
Advertisement
Add Comment
Please, Sign In to add comment