All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schema.sql-metrics.json Maven / Gradle / Ivy

{
  "displayText": "SQL",
  "name": "sql-metrics",
  "ttl": "PT1H",
  "timestampSpec": {
    "column": "timestamp",
    "format": "auto"
  },
  "dimensionsSpec": [
    {
      "name": "appName",
      "displayText": "Application Name",
      "required": true
    },
    {
      "name": "instanceName",
      "displayText": "Instance Name",
      "required": true
    },
    {
      "name": "server",
      "displayText": "Database Server",
      "required": true
    },
    {
      "name": "database",
      "displayText": "database",
      "required": true
    }
  ],
  "metricsSpec": [

    // ---count---
    {
      "type": "longSum",
      "name": "callCount",
      "displayText": "Call Count",
      "unit": ""
    },
    {
      "type": "longSum",
      "name": "errorCount",
      "displayText": "error count",
      "unit": ""
    },
    {
      "type": "longSum",
      "name": "queryCount",
      "displayText": "query count",
      "unit": ""
    },
    {
      "type": "longSum",
      "name": "updateCount",
      "displayText": "update count",
      "unit": ""
    },

    // ---timer----------------------
    {
      "type": "longSum",
      "name": "responseTime",
      "displayText": "Response Time",
      "unit": "nanosecond"
    },
    {
      "type": "longMin",
      "name": "minResponseTime",
      "displayText": "Min Response Time",
      "unit": "nanosecond"
    },
    {
      "type": "longLast",
      "name": "maxResponseTime",
      "displayText": "Max Response Time",
      "unit": "nanosecond"
    },

    {
      "type": "post",
      "name": "tps",
      "expression": "callCount/{interval}",
      "displayText": "TPS",
      "unit": "",
      "valueType": "double"
    },
    {
      "type": "post",
      "name": "avgResponseTime",
      "expression": "responseTime/1000.0/1000/callCount",
      "displayText": "AVG Response Time",
      "unit": "millisecond",
      "valueType": "double"
    }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy