Skip to content

Commit

Permalink
fix queries on freepbx dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas committed Sep 15, 2024
1 parent 65b7c21 commit b8e2df7
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions apps/freepbx-metrics/dashboard-freepbx.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
Expand All @@ -67,7 +68,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -122,6 +123,7 @@
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
Expand All @@ -133,7 +135,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -189,6 +191,7 @@
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
Expand All @@ -200,7 +203,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -239,7 +242,9 @@
},
{
"datasource": {
"type": "prometheus"
"default": true,
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -272,6 +277,7 @@
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
Expand All @@ -283,14 +289,15 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "max(asterisk_channels_count)",
"fullMetaSearch": false,
"includeNullMetadata": true,
Expand Down Expand Up @@ -372,6 +379,7 @@
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
Expand All @@ -383,7 +391,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -440,6 +448,7 @@
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
Expand All @@ -451,7 +460,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand All @@ -474,7 +483,9 @@
},
{
"datasource": {
"type": "prometheus"
"default": true,
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -538,7 +549,7 @@
},
"showHeader": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand All @@ -547,7 +558,7 @@
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "sum by(id) (asterisk_endpoints_state)",
"expr": "max by(id) (asterisk_endpoints_state)",
"format": "table",
"fullMetaSearch": false,
"includeNullMetadata": true,
Expand All @@ -563,7 +574,9 @@
},
{
"datasource": {
"type": "prometheus"
"default": true,
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "List of SIP trunks and their registration status.",
"fieldConfig": {
Expand Down Expand Up @@ -629,7 +642,7 @@
"frameIndex": 0,
"showHeader": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand All @@ -638,7 +651,7 @@
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "sum by(username) (asterisk_pjsip_outbound_registration_status)",
"expr": "max by(username) (asterisk_pjsip_outbound_registration_status)",
"format": "table",
"fullMetaSearch": false,
"includeNullMetadata": true,
Expand Down Expand Up @@ -667,6 +680,6 @@
"timezone": "browser",
"title": "FreePBX Overview",
"uid": "fdgn93ajipds0f",
"version": 12,
"version": 1,
"weekStart": ""
}

0 comments on commit b8e2df7

Please sign in to comment.