diff --git a/packages/nats/changelog.yml b/packages/nats/changelog.yml index d26aa6df7f1..aff93ff00a3 100644 --- a/packages/nats/changelog.yml +++ b/packages/nats/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "1.5.1" + changes: + - description: Migrate `Client IP Count Timeline` visualization to lens. + type: enhancement + link: https://github.com/elastic/integrations/pull/8383 - version: "1.5.0" changes: - description: Enable time series data for metrics data streams. This dramatically reduces storage for metrics and is expected to progressively improve query [performance](https://www.elastic.co/blog/70-percent-storage-savings-for-metrics-with-elastic-observability). For more details, see https://www.elastic.co/guide/en/elasticsearch/reference/current/tsds.html. diff --git a/packages/nats/img/filebeat_nats_dashboard.png b/packages/nats/img/filebeat_nats_dashboard.png index ed81b4e2586..963d3fb6ac7 100644 Binary files a/packages/nats/img/filebeat_nats_dashboard.png and b/packages/nats/img/filebeat_nats_dashboard.png differ diff --git a/packages/nats/kibana/dashboard/nats-Logs-nats-overview.json b/packages/nats/kibana/dashboard/nats-Logs-nats-overview.json index d2896e186e1..353240cc358 100644 --- a/packages/nats/kibana/dashboard/nats-Logs-nats-overview.json +++ b/packages/nats/kibana/dashboard/nats-Logs-nats-overview.json @@ -1276,20 +1276,141 @@ }, { "embeddableConfig": { - "enhancements": {}, - "hidePanelTitles": false + "attributes": { + "references": [ + { + "id": "logs-*", + "name": "indexpattern-datasource-layer-a6cffea3-fd32-4248-9e86-c68a17e09b89", + "type": "index-pattern" + } + ], + "state": { + "adHocDataViews": {}, + "datasourceStates": { + "formBased": { + "layers": { + "a6cffea3-fd32-4248-9e86-c68a17e09b89": { + "columnOrder": [ + "0bdb5898-ef89-4767-8f62-98685f50d126", + "b0b1b2a4-6420-489a-acf1-3a98b67df744", + "30f64fc1-9c19-4d04-b06c-55c2f8a6771b" + ], + "columns": { + "0bdb5898-ef89-4767-8f62-98685f50d126": { + "dataType": "string", + "isBucketed": true, + "label": "Filters", + "operationType": "filters", + "params": { + "filters": [ + { + "input": { + "language": "kuery", + "query": "client.ip \u003e\"0.0.0.0\" and client.ip \u003c \"127.255.255.255\"" + }, + "label": "0.0.0.0 to 127.255.255.255" + }, + { + "input": { + "language": "kuery", + "query": "client.ip \u003e \"128.0.0.0\" and client.ip \u003c \"191.255.255.255\"" + }, + "label": "128.0.0.0 to 191.255.255.255" + } + ] + }, + "scale": "ordinal" + }, + "30f64fc1-9c19-4d04-b06c-55c2f8a6771b": { + "dataType": "number", + "isBucketed": false, + "label": "Count of records", + "operationType": "count", + "params": { + "emptyAsNull": true + }, + "scale": "ratio", + "sourceField": "___records___" + }, + "b0b1b2a4-6420-489a-acf1-3a98b67df744": { + "dataType": "date", + "isBucketed": true, + "label": "@timestamp", + "operationType": "date_histogram", + "params": { + "dropPartials": false, + "includeEmptyRows": false, + "interval": "auto" + }, + "scale": "interval", + "sourceField": "@timestamp" + } + }, + "ignoreGlobalFilters": false, + "incompleteColumns": {}, + "sampling": 1 + } + } + }, + "indexpattern": { + "layers": {} + }, + "textBased": { + "layers": {} + } + }, + "filters": [], + "internalReferences": [], + "query": { + "language": "kuery", + "query": "data_stream.dataset: \"nats.log\" " + }, + "visualization": { + "axisTitlesVisibilitySettings": { + "x": true, + "yLeft": true, + "yRight": true + }, + "layers": [ + { + "accessors": [ + "30f64fc1-9c19-4d04-b06c-55c2f8a6771b" + ], + "layerId": "a6cffea3-fd32-4248-9e86-c68a17e09b89", + "layerType": "data", + "position": "top", + "seriesType": "line", + "showGridlines": false, + "splitAccessor": "0bdb5898-ef89-4767-8f62-98685f50d126", + "xAccessor": "b0b1b2a4-6420-489a-acf1-3a98b67df744" + } + ], + "legend": { + "isVisible": true, + "legendSize": "large", + "position": "right" + }, + "preferredSeriesType": "line", + "title": "Empty XY chart", + "valueLabels": "hide", + "valuesInLegend": true, + "yTitle": "Count" + } + }, + "visualizationType": "lnsXY" + }, + "enhancements": {} }, "gridData": { "h": 12, - "i": "9", - "w": 22, + "i": "a322788e-2ff3-4678-a3ae-a86791712fdf", + "w": 23, "x": 25, "y": 20 }, - "panelIndex": "9", - "panelRefName": "panel_9", + "panelIndex": "a322788e-2ff3-4678-a3ae-a86791712fdf", "title": "Client IP Count Timeline", - "type": "visualization", + "type": "lens", "version": "8.10.2" } ], @@ -1298,7 +1419,7 @@ "version": 1 }, "coreMigrationVersion": "8.8.0", - "created_at": "2023-10-03T05:56:30.704Z", + "created_at": "2023-11-02T09:50:08.463Z", "id": "nats-Logs-nats-overview", "managed": false, "references": [ @@ -1343,9 +1464,9 @@ "type": "index-pattern" }, { - "id": "nats-c669ae20-41ed-11e9-ac5c-71ffa38a62e3", - "name": "9:panel_9", - "type": "visualization" + "id": "logs-*", + "name": "a322788e-2ff3-4678-a3ae-a86791712fdf:indexpattern-datasource-layer-a6cffea3-fd32-4248-9e86-c68a17e09b89", + "type": "index-pattern" } ], "type": "dashboard", diff --git a/packages/nats/kibana/visualization/nats-c669ae20-41ed-11e9-ac5c-71ffa38a62e3.json b/packages/nats/kibana/visualization/nats-c669ae20-41ed-11e9-ac5c-71ffa38a62e3.json deleted file mode 100644 index 7dccbcd93bd..00000000000 --- a/packages/nats/kibana/visualization/nats-c669ae20-41ed-11e9-ac5c-71ffa38a62e3.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "attributes": { - "description": "", - "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.index", - "query": { - "language": "kuery", - "query": "data_stream.dataset: nats.log" - } - } - }, - "title": "Client IP Count Timeline [Logs NATS]", - "uiStateJSON": {}, - "version": 1, - "visState": { - "aggs": [ - { - "enabled": true, - "id": "1", - "params": {}, - "schema": "metric", - "type": "count" - }, - { - "enabled": true, - "id": "2", - "schema": "segment", - "type": "date_histogram" - }, - { - "enabled": true, - "id": "3", - "params": { - "field": "client.ip", - "ipRangeType": "fromTo", - "ranges": { - "fromTo": [ - { - "from": "0.0.0.0", - "to": "127.255.255.255" - }, - { - "from": "128.0.0.0", - "to": "191.255.255.255" - } - ], - "mask": [ - { - "mask": "0.0.0.0/1" - }, - { - "mask": "128.0.0.0/2" - } - ] - } - }, - "schema": "group", - "type": "ip_range" - } - ], - "params": { - "addLegend": true, - "addTimeMarker": false, - "addTooltip": true, - "categoryAxes": [ - { - "id": "CategoryAxis-1", - "labels": { - "filter": true, - "show": true, - "truncate": 100 - }, - "position": "bottom", - "scale": { - "type": "linear" - }, - "show": true, - "style": {}, - "title": {}, - "type": "category" - } - ], - "detailedTooltip": true, - "fittingFunction": "linear", - "grid": { - "categoryLines": false, - "style": { - "color": "#eee" - } - }, - "isVislibVis": true, - "legendPosition": "right", - "legendSize": "auto", - "palette": { - "name": "kibana_palette", - "type": "palette" - }, - "seriesParams": [ - { - "circlesRadius": 1, - "data": { - "id": "1", - "label": "Count" - }, - "drawLinesBetweenPoints": true, - "mode": "normal", - "show": "true", - "showCircles": true, - "type": "line", - "valueAxis": "ValueAxis-1" - } - ], - "times": [], - "type": "line", - "valueAxes": [ - { - "id": "ValueAxis-1", - "labels": { - "filter": false, - "rotate": 0, - "show": true, - "truncate": 100 - }, - "name": "LeftAxis-1", - "position": "left", - "scale": { - "mode": "normal", - "type": "linear" - }, - "show": true, - "style": {}, - "title": { - "text": "Count" - }, - "type": "value" - } - ] - }, - "title": "Client IP Count Timeline [Logs NATS]", - "type": "line" - } - }, - "coreMigrationVersion": "8.8.0", - "created_at": "2023-09-29T07:14:01.519Z", - "id": "nats-c669ae20-41ed-11e9-ac5c-71ffa38a62e3", - "managed": true, - "references": [ - { - "id": "logs-*", - "name": "kibanaSavedObjectMeta.searchSourceJSON.index", - "type": "index-pattern" - } - ], - "type": "visualization", - "typeMigrationVersion": "8.5.0" -} \ No newline at end of file diff --git a/packages/nats/manifest.yml b/packages/nats/manifest.yml index 3c37cdb6c73..0afa82036fe 100644 --- a/packages/nats/manifest.yml +++ b/packages/nats/manifest.yml @@ -1,6 +1,6 @@ name: nats title: NATS -version: 1.5.0 +version: 1.5.1 release: ga description: Collect logs and metrics from NATS servers with Elastic Agent. type: integration