From 4f405331b910c328a89880a54d685276a200b70b Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Tue, 10 Dec 2024 21:48:54 +0530 Subject: [PATCH] feat: added widget 1 --- entity-types/ext-fluentbit/dashboard.json | 299 +--------------------- 1 file changed, 11 insertions(+), 288 deletions(-) diff --git a/entity-types/ext-fluentbit/dashboard.json b/entity-types/ext-fluentbit/dashboard.json index 42d764220f..20847f4341 100644 --- a/entity-types/ext-fluentbit/dashboard.json +++ b/entity-types/ext-fluentbit/dashboard.json @@ -1,306 +1,29 @@ { - "name": "Squid Cache Manager", + "name": "Kubernetes Fluent Bit monitoring", + "description": null, "pages": [ { - "name": "Cache Manager", + "name": "Overview", "description": null, "widgets": [ { - "title": "Active cache managers", + "title": "", "layout": { "column": 1, "row": 1, - "width": 3, - "height": 3 + "width": 6, + "height": 6 }, + "linkedEntityGuids": null, "visualization": { - "id": "viz.billboard" + "id": "viz.markdown" }, "rawConfiguration": { - "facet": { - "showOtherSeries": false - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT latest(squid_up) compare with 1 hour ago" - } - ], - "platformOptions": { - "ignoreTimeRange": false - } - } - }, - { - "title": "Traffic ", - "layout": { - "column": 4, - "row": 1, - "width": 3, - "height": 3 - }, - "visualization": { - "id": "viz.billboard" - }, - "rawConfiguration": { - "dataFormatters": [ - { - "name": "HTTP Traffic Out", - "type": "humanized" - }, - { - "name": "Total squid_client_http_kbytes_in_kbytes_total", - "type": "humanized" - } - ], - "facet": { - "showOtherSeries": false - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT sum(squid_client_http_kbytes_in_kbytes_total) AS 'HTTP In (Kbs)', sum(squid_client_http_kbytes_out_kbytes_total) AS 'HTTP Out (Kbs)', sum(squid_client_http_requests_total) AS 'HTTP Requests' compare with 1 hour ago" - } - ], - "platformOptions": { - "ignoreTimeRange": false - } - } - }, - { - "title": "Hit Rate (%)", - "layout": { - "column": 7, - "row": 1, - "width": 3, - "height": 3 - }, - "visualization": { - "id": "viz.billboard" - }, - "rawConfiguration": { - "dataFormatters": [ - { - "name": "Avg squid_client_http_hit_kbytes_out_bytes_total", - "type": "humanized" - } - ], - "facet": { - "showOtherSeries": false - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT sum(squid_client_http_hit_kbytes_out_bytes_total) / sum(squid_client_http_kbytes_out_kbytes_total) * 100 As 'Bytes %', sum(squid_client_http_hits_total) / sum(squid_client_http_requests_total) * 100 AS 'Cache %'" - } - ], - "platformOptions": { - "ignoreTimeRange": false - }, - "thresholds": [ - { - "alertSeverity": "CRITICAL" - } - ] - } - }, - { - "title": "Error Rate (%)", - "layout": { - "column": 10, - "row": 1, - "width": 3, - "height": 3 - }, - "visualization": { - "id": "viz.billboard" - }, - "rawConfiguration": { - "dataFormatters": [ - { - "name": "Avg squid_client_http_errors_total", - "type": "decimal" - } - ], - "facet": { - "showOtherSeries": false - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT sum(squid_client_http_errors_total) / sum(squid_client_http_requests_total) * 100 AS 'Error rate'" - } - ], - "platformOptions": { - "ignoreTimeRange": false - } - } - }, - { - "title": "Traffic (Kbs)", - "layout": { - "column": 1, - "row": 4, - "width": 4, - "height": 3 - }, - "visualization": { - "id": "viz.area" - }, - "rawConfiguration": { - "facet": { - "showOtherSeries": false - }, - "legend": { - "enabled": true - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT sum(squid_client_http_kbytes_in_kbytes_total) AS 'HTTP In (Kbs)', sum(squid_client_http_kbytes_out_kbytes_total) AS 'HTTP Out (Kbs)' timeseries auto" - } - ], - "platformOptions": { - "ignoreTimeRange": false - } - } - }, - { - "title": "Bytes Hit Rate (%)", - "layout": { - "column": 5, - "row": 4, - "width": 4, - "height": 3 - }, - "visualization": { - "id": "viz.line" - }, - "rawConfiguration": { - "facet": { - "showOtherSeries": false - }, - "legend": { - "enabled": true - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT sum(squid_client_http_hit_kbytes_out_bytes_total) / sum(squid_client_http_kbytes_out_kbytes_total) TIMESERIES" - } - ], - "platformOptions": { - "ignoreTimeRange": false - }, - "units": { - "unit": "PERCENTAGE" - }, - "yAxisLeft": { - "zero": true - } - } - }, - { - "title": "Traffic requests", - "layout": { - "column": 9, - "row": 4, - "width": 4, - "height": 3 - }, - "visualization": { - "id": "viz.area" - }, - "rawConfiguration": { - "facet": { - "showOtherSeries": false - }, - "legend": { - "enabled": true - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT sum(squid_client_http_requests_total) AS 'HTTP Requests' timeseries auto" - } - ], - "platformOptions": { - "ignoreTimeRange": false - } - } - }, - { - "title": "Error Rate (%)", - "layout": { - "column": 1, - "row": 7, - "width": 8, - "height": 3 - }, - "visualization": { - "id": "viz.line" - }, - "rawConfiguration": { - "facet": { - "showOtherSeries": false - }, - "legend": { - "enabled": true - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT sum(squid_client_http_errors_total) / sum(squid_client_http_requests_total) TIMESERIES" - } - ], - "platformOptions": { - "ignoreTimeRange": false - }, - "units": { - "unit": "PERCENTAGE" - }, - "yAxisLeft": { - "zero": true - } - } - }, - { - "title": "Cache Hit Rate (%)", - "layout": { - "column": 9, - "row": 7, - "width": 4, - "height": 3 - }, - "visualization": { - "id": "viz.line" - }, - "rawConfiguration": { - "facet": { - "showOtherSeries": false - }, - "legend": { - "enabled": true - }, - "nrqlQueries": [ - { - "accountId": 0, - "query": "FROM Metric SELECT sum(squid_client_http_hits_total) / sum(squid_client_http_requests_total) TIMESERIES" - } - ], - "platformOptions": { - "ignoreTimeRange": false - }, - "units": { - "unit": "PERCENTAGE" - }, - "yAxisLeft": { - "zero": true - } + "text": "# README\n\n## About this page\nThis page represents most of [Fluent Bit's internal metrics](https://docs.fluentbit.io/manual/administration/monitoring#for-v2-metrics). The metric representations are grouped by categories and faceted by each plugin instance where appropriate.\n\n## How to filter\n1. Select the Kubernetes cluster you want to troubleshoot in the \"Cluster Name\" variable above.\n2. [OPTIONAL] You can use any of the values in the `Node name` and `Pod name` columns on the \"Fluent Bit version\" table to further filter the metrics displayed in the graphs below. To do so, you need to enable [facet filtering](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/filter-new-relic-one-dashboards-facets/) on that table by clicking on the \"Edit\" submenu and select \"Filter the current dashboard\" under \"Facet Linking\". \n\n## Legend\n### Metric dimensions\n- **name**: the name of the Fluent Bit plugin. Version 1.21.0 of our Helm chart names them according to the plugin names described in the following section.\n- **pod_name**: the `newrelic-logging` pod (Fluent Bit instance) that emitted this metric.\n- **node_name**: physical Kubernetes node where the `newrelic-logging` pod is running.\n\n### Plugin names\n- **pod-logs-tailer**: `tail` *INPUT* plugin normally reading from `/var/log/containers/*.log`\n- **kubernetes-enricher**: `kubernetes` *FILTER* plugin that queries the Kubernetes API to enrich the logs with pod/container metadata.\n- **node-attributes-enricher**: `record_modifier` *FILTER* plugin that enriches logs with `cluster_name`.\n- **kubernetes-attribute-lifter** (only when in low data mode): `nest` *FILTER* plugin that lifts all the keys under `kubernetes`. This plugin is transparent to the final shape of the log.\n- **node-attributes-enricher-filter** (only when in low data mode): same as node-attributes-enricher`, but it also removes attributes that are not strictly necessary for correct platform functioning.\n- **newrelic-logs-forwarder**: `newrelic` *OUTPUT* plugin that sends logs to the New Relic Logs API" } } + ] } ] - } - \ No newline at end of file + } \ No newline at end of file