Skip to content

Commit

Permalink
azure storage account: fix capacity and count metrics visualizations …
Browse files Browse the repository at this point in the history
…in the all dashboards (#11120)

Fix capacity and count metrics visualizations in the overview, blob, table, and file storage dashboards.

The capacity and count metric visualizations were missing the filter option, so they all displayed "N/A". 

Here is the JSON before:

```json
{
  "customLabel": true,
  "dataType": "number",
  "filter": {
    "language": "kuery",
    "query": "" <————————— empty query here 👀 
  },
  "isBucketed": false,
  "label": "File Share Snapshot Size",
  "operationType": "last_value",
  "params": {
    "format": {
      "id": "bytes"
    },
    "sortField": "@timestamp"
  },
  "scale": "ratio",
  "sourceField": "azure.storage_account.file_share_snapshot_size.avg"
}
```

I just set the `filter.query` value with the corresponding metric:

```json
{
  "customLabel": true,
  "dataType": "number",
  "filter": {
    "language": "kuery",
    "query": "azure.storage_account.file_share_snapshot_size.avg: *"
  },
  "isBucketed": false,
  "label": "File Share Snapshot Size",
  "operationType": "last_value",
  "params": {
    "format": {
      "id": "bytes"
    },
    "sortField": "@timestamp"
  },
  "scale": "ratio",
  "sourceField": "azure.storage_account.file_share_snapshot_size.avg"
}
```

With the proper `filter.query` values are back.
  • Loading branch information
zmoog committed Sep 20, 2024
1 parent 69dc708 commit c7d87fc
Show file tree
Hide file tree
Showing 7 changed files with 173 additions and 32 deletions.
5 changes: 5 additions & 0 deletions packages/azure_metrics/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "1.6.6"
changes:
- description: Fix capacity and count metrics visualizations in the overview, blob, table, and file storage dashboards.
type: bugfix
link: https://github.com/elastic/integrations/pull/11120
- version: "1.6.5"
changes:
- description: Consolidate content on Azure metrics pages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,28 @@
"azure.namespace": "Microsoft.Storage/storageAccounts/queueServices"
}
}
},
{
"$state": {
"store": "appState"
},
"meta": {
"alias": "storage_account",
"disabled": false,
"field": "data_stream.dataset",
"indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.filter[1].meta.index",
"key": "data_stream.dataset",
"negate": false,
"params": {
"query": "azure.storage_account"
},
"type": "phrase"
},
"query": {
"match_phrase": {
"data_stream.dataset": "azure.storage_account"
}
}
}
],
"query": {
Expand Down Expand Up @@ -64,10 +86,10 @@
"description": "",
"params": {
"fontSize": 10,
"markdown": "### Azure Storage\n\n[Overview](#/dashboard/azure_metrics-1a151f80-32db-11ea-a83e-25b8612d00cc) | [Blob](#/dashboard/azure_metrics-b165ef60-32f7-11ea-a83e-25b8612d00cc) | [File](#/dashboard/azure_metrics-dff7a080-32f7-11ea-a83e-25b8612d00cc) | [Table](#/dashboard/azure_metrics-ff2fe020-32f7-11ea-a83e-25b8612d00cc) | [**Queue**](#/dashboard/azure_metrics-10efa340-32f8-11ea-a83e-25b8612d00cc) ",
"markdown": "[Overview](#/dashboard/azure_metrics-1a151f80-32db-11ea-a83e-25b8612d00cc) | [Blob](#/dashboard/azure_metrics-b165ef60-32f7-11ea-a83e-25b8612d00cc) | [File](#/dashboard/azure_metrics-dff7a080-32f7-11ea-a83e-25b8612d00cc) | [Table](#/dashboard/azure_metrics-ff2fe020-32f7-11ea-a83e-25b8612d00cc) | [**Queue**](#/dashboard/azure_metrics-10efa340-32f8-11ea-a83e-25b8612d00cc) ",
"openLinksInNewTab": false
},
"title": "Navigation Queue Storage Overview",
"title": "Azure Storage — Queue Storage Overview",
"type": "markdown",
"uiState": {}
}
Expand All @@ -80,7 +102,7 @@
"y": 0
},
"panelIndex": "933a427d-a8b7-48ff-ac53-337f32b340ea",
"title": "Navigation Queue Storage Overview",
"title": "Azure Storage — Queue Storage Overview",
"type": "visualization",
"version": "8.7.0"
},
Expand Down Expand Up @@ -118,7 +140,7 @@
"dataType": "number",
"filter": {
"language": "kuery",
"query": ""
"query": "azure.storage_account.queue_capacity.avg: *"
},
"isBucketed": false,
"label": "Queue Capacity",
Expand Down Expand Up @@ -296,7 +318,7 @@
"dataType": "number",
"filter": {
"language": "kuery",
"query": ""
"query": "azure.storage_account.queue_message_count.avg: *"
},
"isBucketed": false,
"label": "Queue Message Count",
Expand Down Expand Up @@ -433,7 +455,7 @@
"dataType": "number",
"filter": {
"language": "kuery",
"query": ""
"query": "azure.storage_account.queue_count.avg: *"
},
"isBucketed": false,
"label": "Queue Count",
Expand Down Expand Up @@ -1647,6 +1669,11 @@
"name": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index",
"type": "index-pattern"
},
{
"id": "metrics-*",
"name": "kibanaSavedObjectMeta.searchSourceJSON.filter[1].meta.index",
"type": "index-pattern"
},
{
"id": "metrics-*",
"name": "controlGroup_13954387-48b2-4103-97e6-1d4ffcf73360:optionsListDataView",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,30 @@
"description": "This dashboard shows metrics for different storage types in Azure.",
"kibanaSavedObjectMeta": {
"searchSourceJSON": {
"filter": [],
"filter": [
{
"$state": {
"store": "appState"
},
"meta": {
"alias": "storage_account",
"disabled": false,
"field": "data_stream.dataset",
"indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index",
"key": "data_stream.dataset",
"negate": false,
"params": {
"query": "azure.storage_account"
},
"type": "phrase"
},
"query": {
"match_phrase": {
"data_stream.dataset": "azure.storage_account"
}
}
}
],
"query": {
"language": "kuery",
"query": ""
Expand Down Expand Up @@ -42,10 +65,10 @@
"description": "",
"params": {
"fontSize": 10,
"markdown": "### Azure Storage\n\n[**Overview**](#/dashboard/azure_metrics-1a151f80-32db-11ea-a83e-25b8612d00cc) | [Blob](#/dashboard/azure_metrics-b165ef60-32f7-11ea-a83e-25b8612d00cc) | [File](#/dashboard/azure_metrics-dff7a080-32f7-11ea-a83e-25b8612d00cc) | [Table](#/dashboard/azure_metrics-ff2fe020-32f7-11ea-a83e-25b8612d00cc) | [Queue](#/dashboard/azure_metrics-10efa340-32f8-11ea-a83e-25b8612d00cc) ",
"markdown": "[**Overview**](#/dashboard/azure_metrics-1a151f80-32db-11ea-a83e-25b8612d00cc) | [Blob](#/dashboard/azure_metrics-b165ef60-32f7-11ea-a83e-25b8612d00cc) | [File](#/dashboard/azure_metrics-dff7a080-32f7-11ea-a83e-25b8612d00cc) | [Table](#/dashboard/azure_metrics-ff2fe020-32f7-11ea-a83e-25b8612d00cc) | [Queue](#/dashboard/azure_metrics-10efa340-32f8-11ea-a83e-25b8612d00cc) ",
"openLinksInNewTab": false
},
"title": "Navigation Storage Overview",
"title": "Azure Storage Overview",
"type": "markdown",
"uiState": {}
}
Expand All @@ -58,7 +81,7 @@
"y": 0
},
"panelIndex": "3e05fed8-0edd-4973-a640-3499c62b141d",
"title": "Navigation Storage Overview",
"title": "Azure Storage Overview",
"type": "visualization",
"version": "8.7.0"
},
Expand Down Expand Up @@ -96,7 +119,7 @@
"dataType": "number",
"filter": {
"language": "kuery",
"query": ""
"query": "azure.storage_account.used_capacity.avg: *"
},
"isBucketed": false,
"label": "Used Capacity",
Expand Down Expand Up @@ -1785,6 +1808,11 @@
"dashboard": "8.7.0"
},
"references": [
{
"id": "metrics-*",
"name": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index",
"type": "index-pattern"
},
{
"id": "metrics-*",
"name": "controlGroup_4d6088e2-f470-4c13-b08f-cf6b06b13c6a:optionsListDataView",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,28 @@
"azure.namespace": "Microsoft.Storage/storageAccounts/blobServices"
}
}
},
{
"$state": {
"store": "appState"
},
"meta": {
"alias": "storage_account",
"disabled": false,
"field": "data_stream.dataset",
"indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.filter[1].meta.index",
"key": "data_stream.dataset",
"negate": false,
"params": {
"query": "azure.storage_account"
},
"type": "phrase"
},
"query": {
"match_phrase": {
"data_stream.dataset": "azure.storage_account"
}
}
}
],
"query": {
Expand Down Expand Up @@ -64,10 +86,10 @@
"description": "",
"params": {
"fontSize": 10,
"markdown": "### Azure Storage\n\n[Overview](#/dashboard/azure_metrics-1a151f80-32db-11ea-a83e-25b8612d00cc) | [**Blob**](#/dashboard/azure_metrics-b165ef60-32f7-11ea-a83e-25b8612d00cc) | [File](#/dashboard/azure_metrics-dff7a080-32f7-11ea-a83e-25b8612d00cc) | [Table](#/dashboard/azure_metrics-ff2fe020-32f7-11ea-a83e-25b8612d00cc) | [Queue](#/dashboard/azure_metrics-10efa340-32f8-11ea-a83e-25b8612d00cc) ",
"markdown": "[Overview](#/dashboard/azure_metrics-1a151f80-32db-11ea-a83e-25b8612d00cc) | [**Blob**](#/dashboard/azure_metrics-b165ef60-32f7-11ea-a83e-25b8612d00cc) | [File](#/dashboard/azure_metrics-dff7a080-32f7-11ea-a83e-25b8612d00cc) | [Table](#/dashboard/azure_metrics-ff2fe020-32f7-11ea-a83e-25b8612d00cc) | [Queue](#/dashboard/azure_metrics-10efa340-32f8-11ea-a83e-25b8612d00cc) ",
"openLinksInNewTab": false
},
"title": "Navigation Blob Storage Overview",
"title": "Azure Storage — Blob Storage Overview",
"type": "markdown",
"uiState": {}
}
Expand All @@ -80,7 +102,7 @@
"y": 0
},
"panelIndex": "ed5f5642-c94a-481b-a8c2-7dfe4c6a4f05",
"title": "Navigation Blob Storage Overview",
"title": "Azure Storage — Blob Storage Overview",
"type": "visualization",
"version": "8.7.0"
},
Expand Down Expand Up @@ -159,7 +181,7 @@
"dataType": "number",
"filter": {
"language": "kuery",
"query": ""
"query": "azure.storage_account.blob_capacity.avg: *"
},
"isBucketed": false,
"label": "Blob Capacity",
Expand Down Expand Up @@ -296,7 +318,7 @@
"dataType": "number",
"filter": {
"language": "kuery",
"query": ""
"query": "azure.storage_account.blob_count.avg: *"
},
"isBucketed": false,
"label": "Blob Count",
Expand Down Expand Up @@ -392,7 +414,7 @@
"dataType": "number",
"filter": {
"language": "kuery",
"query": ""
"query": "azure.storage_account.container_count.avg: *"
},
"isBucketed": false,
"label": "Container Count",
Expand Down Expand Up @@ -1640,6 +1662,11 @@
"name": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index",
"type": "index-pattern"
},
{
"id": "metrics-*",
"name": "kibanaSavedObjectMeta.searchSourceJSON.filter[1].meta.index",
"type": "index-pattern"
},
{
"id": "metrics-*",
"name": "controlGroup_7eb82f60-7b2e-473f-960b-35b3fa5392d5:optionsListDataView",
Expand Down
Loading

0 comments on commit c7d87fc

Please sign in to comment.