mas-care/DoctorGo
Dashboard for DoctorGo Metrics
Dashboard for DoctorGo Metrics
{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.5.0"
    },
    {
      "type": "panel",
      "id": "grafana-piechart-panel",
      "name": "Pie Chart (old)",
      "version": "1.6.2"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph (old)",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "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"
      }
    ]
  },
  "description": "Dashboard for DoctorGo Metrics",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "Número de peticiones HTTP POST /sales recibidas desde el frontal",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 5,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.5.0",
      "pointradius": 2,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(rate(mcare_doctor_sell_postSale_count_total[1m]))",
          "interval": "",
          "legendFormat": "Ventas",
          "refId": "B",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(rate(mcare_doctor_sell_postEligibility_count_total[1m]))",
          "interval": "",
          "legendFormat": "Elegibilidad",
          "refId": "A",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(rate(mcare_doctor_prospect_postProspect_count_total[1m]))",
          "interval": "",
          "legendFormat": "Preventas",
          "refId": "C",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(rate(mcare_doctor_cancel_postCancel_count_total[1m]))",
          "interval": "",
          "legendFormat": "Bajas",
          "refId": "D",
          "datasource": "${DS_PROMETHEUS}"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Peticiones recibidas desde el frontal",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "Distribución de errores en llamadas a sistemas externos",
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 21,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 6,
      "legend": {
        "show": true,
        "sort": "current",
        "sortDesc": false,
        "values": true
      },
      "legendType": "Under graph",
      "links": [],
      "nullPointMode": "connected",
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "expr": "sum(sum_over_time(mcare_doctor_sell_bobtool_upload_errors_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Actualización de CRM",
          "refId": "A",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_sell_qbs2_eligibility_4xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 4xx en la comprobación de elegibilidad",
          "refId": "B",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_prospect_sendSms_4xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 4xx en el envio de sms",
          "refId": "C",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_prospect_insertProspect_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error al insertar preventa en BQ",
          "refId": "E",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_prospect_getProspect_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error al recuperar preventa en BQ",
          "refId": "F",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_sell_applyDiscount_4xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 4xx al aplicar descuento",
          "refId": "G",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_sell_getCustomerIndividual_4xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 4xx al recuperar customer individuals",
          "refId": "H",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_sell_qbs2_eligibility_5xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5xx en la comprobación de elegibilidad",
          "refId": "I",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_sell_getCustomerIndividual_5xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5xx al recuperar customer individuals",
          "refId": "J",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_sell_applyDiscount_5xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5xx al aplicar descuento",
          "refId": "K",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_prospect_sendSms_5xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5xx en el envío de sms",
          "refId": "D",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_prospect_login_mas_4xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 4xx en el login",
          "refId": "L",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_prospect_login_mas_5xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5xx en el login",
          "refId": "M",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_prospect_mas_sms_4xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5xx en el login",
          "refId": "N",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_prospect_mas_sms_5xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5xx en el login",
          "refId": "O",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_cancel_bobtool_upload_errors_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error al notificar de la baja al CRM",
          "refId": "P",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_cancel_quiron_token_5xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5XX al conseguir el token de Quiron",
          "refId": "Q",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_cancel_quiron_token_4xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 4XX al conseguir el token de Quiron",
          "refId": "R",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_cancel_quiron_unsubscribe_4xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 4XX al dar de baja el cliente en Quiron",
          "refId": "S",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(sum_over_time(mcare_doctor_cancel_quiron_unsubscribe_5xx_count_total[$__interval]))",
          "interval": "",
          "legendFormat": "Error 5XX al dar de baja el cliente en Quiron",
          "refId": "T",
          "datasource": "${DS_PROMETHEUS}"
        }
      ],
      "title": "Distribución de errores en llamadas a sistemas externos",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "Número de workflows iniciados",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 5
      },
      "hiddenSeries": false,
      "id": 3,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.5.0",
      "pointradius": 2,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(rate(mcare_doctor_sell_workflow_count_total[1m]))",
          "interval": "",
          "legendFormat": "Total Ventas",
          "refId": "A",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(rate(mcare_doctor_prospect_workflow_count_total[1m]))",
          "interval": "",
          "legendFormat": "Total Preventas",
          "refId": "B",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(rate(mcare_doctor_cancel_workflow_count_total[1m]))",
          "interval": "",
          "legendFormat": "Total Bajas",
          "refId": "C",
          "datasource": "${DS_PROMETHEUS}"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Workflows iniciados",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "Número de workflows terminados, en los que se ha comprobado que el SVA está activo",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 13
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.5.0",
      "pointradius": 2,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(rate(mcare_doctor_sell_workflow_finished_count_total[1m]))",
          "interval": "",
          "legendFormat": "Ventas",
          "refId": "A",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(rate(mcare_doctor_prospect_workflow_finished_count_total[1m]))",
          "interval": "",
          "legendFormat": "Preventas",
          "refId": "B",
          "datasource": "${DS_PROMETHEUS}"
        },
        {
          "expr": "sum(rate(mcare_doctor_cancel_workflow_finished_count_total[1m]))",
          "interval": "",
          "legendFormat": "Bajas",
          "refId": "C",
          "datasource": "${DS_PROMETHEUS}"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Workflows terminados",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    }
  ],
  "schemaVersion": 36,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "mas-care/DoctorGo",
  "uid": "CVZnSgwGk",
  "version": 1,
  "weekStart": "",
  "gnetId": 16809
}