-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aac7b95
commit 4f40533
Showing
1 changed file
with
11 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
|
||
] | ||
} | ||
] | ||
} | ||
|
||
} |