Skip to content

Commit 7e0a7ef

Browse files
committed
feat: updated quries to remove cluster
1 parent cbea16b commit 7e0a7ef

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

entity-types/ext-fluentbit/dashboard.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"nrqlQueries": [
4242
{
4343
"accountId": 0,
44-
"query": "SELECT latest(os) as 'OS', latest(version) as 'FB version', latest(cluster_name) FROM Metric where metricName = 'fluentbit_build_info' AND cluster_name IN ({{cluster_name}}) since 1 hour ago facet pod_name, node_name limit max"
44+
"query": "SELECT latest(os) as 'OS', latest(version) as 'FB version', latest(cluster_name) FROM Metric where metricName = 'fluentbit_build_info' since 1 hour ago facet pod_name, node_name limit max"
4545
}
4646
],
4747
"platformOptions": {
@@ -71,7 +71,7 @@
7171
"nrqlQueries": [
7272
{
7373
"accountId": 0,
74-
"query": "SELECT latest(fluentbit_uptime) FROM Metric where cluster_name IN ({{cluster_name}}) facet pod_name timeseries"
74+
"query": "SELECT latest(fluentbit_uptime) FROM Metric facet pod_name timeseries"
7575
}
7676
],
7777
"platformOptions": {
@@ -124,7 +124,7 @@
124124
"nrqlQueries": [
125125
{
126126
"accountId": 0,
127-
"query": "SELECT rate(sum(fluentbit_input_bytes_total), 1 minute) as 'bytes/minute' FROM Metric where name != 'fb-metrics-collector' and cluster_name IN ({{cluster_name}}) timeseries max facet name, pod_name"
127+
"query": "SELECT rate(sum(fluentbit_input_bytes_total), 1 minute) as 'bytes/minute' FROM Metric where name != 'fb-metrics-collector' timeseries max facet name, pod_name"
128128
}
129129
],
130130
"platformOptions": {
@@ -161,7 +161,7 @@
161161
"nrqlQueries": [
162162
{
163163
"accountId": 0,
164-
"query": "SELECT rate(sum(fluentbit_input_records_total), 1 minute) as 'logs/minute' FROM Metric where name != 'fb-metrics-collector' and cluster_name IN ({{cluster_name}}) facet name, pod_name timeseries max"
164+
"query": "SELECT rate(sum(fluentbit_input_records_total), 1 minute) as 'logs/minute' FROM Metric where name != 'fb-metrics-collector' facet name, pod_name timeseries max"
165165
}
166166
],
167167
"platformOptions": {
@@ -198,7 +198,7 @@
198198
"nrqlQueries": [
199199
{
200200
"accountId": 0,
201-
"query": "SELECT sum(fluentbit_input_bytes_total)/sum(fluentbit_input_records_total) as 'Average incoming record size (bytes)' FROM Metric where name != 'fb-metrics-collector' and cluster_name IN ({{cluster_name}}) facet name, pod_name timeseries max"
201+
"query": "SELECT sum(fluentbit_input_bytes_total)/sum(fluentbit_input_records_total) as 'Average incoming record size (bytes)' FROM Metric where name != 'fb-metrics-collector' facet name, pod_name timeseries max"
202202
}
203203
],
204204
"platformOptions": {
@@ -254,7 +254,7 @@
254254
"nrqlQueries": [
255255
{
256256
"accountId": 0,
257-
"query": "SELECT rate(sum(fluentbit_filter_bytes_total), 1 minute) FROM Metric WHERE cluster_name IN ({{cluster_name}}) facet name, pod_name timeseries max"
257+
"query": "SELECT rate(sum(fluentbit_filter_bytes_total), 1 minute) FROM Metric facet name, pod_name timeseries max"
258258
}
259259
],
260260
"platformOptions": {
@@ -291,7 +291,7 @@
291291
"nrqlQueries": [
292292
{
293293
"accountId": 0,
294-
"query": "SELECT rate(sum(fluentbit_filter_records_total), 1 minute) FROM Metric WHERE cluster_name IN ({{cluster_name}}) facet name, pod_name timeseries max"
294+
"query": "SELECT rate(sum(fluentbit_filter_records_total), 1 minute) FROM Metric facet name, pod_name timeseries max"
295295
}
296296
],
297297
"platformOptions": {
@@ -328,7 +328,7 @@
328328
"nrqlQueries": [
329329
{
330330
"accountId": 0,
331-
"query": "SELECT sum(fluentbit_filter_bytes_total)/sum(fluentbit_filter_records_total) AS 'Average filtered record size (bytes)' FROM Metric WHERE cluster_name IN ({{cluster_name}}) facet name, pod_name timeseries max"
331+
"query": "SELECT sum(fluentbit_filter_bytes_total)/sum(fluentbit_filter_records_total) AS 'Average filtered record size (bytes)' FROM Metric facet name, pod_name timeseries max"
332332
}
333333
],
334334
"platformOptions": {
@@ -368,7 +368,7 @@
368368
"nrqlQueries": [
369369
{
370370
"accountId": 0,
371-
"query": "SELECT rate(sum(fluentbit_filter_add_records_total), 1 minute) as 'Added back to pipeline', rate(sum(fluentbit_filter_drop_records_total), 1 minute) as 'Removed from pipeline' FROM Metric WHERE cluster_name IN ({{cluster_name}}) facet name, pod_name timeseries MAX"
371+
"query": "SELECT rate(sum(fluentbit_filter_add_records_total), 1 minute) as 'Added back to pipeline', rate(sum(fluentbit_filter_drop_records_total), 1 minute) as 'Removed from pipeline' FROM Metric facet name, pod_name timeseries MAX"
372372
}
373373
],
374374
"platformOptions": {
@@ -424,7 +424,7 @@
424424
"nrqlQueries": [
425425
{
426426
"accountId": 0,
427-
"query": "SELECT rate(sum(fluentbit_output_proc_bytes_total), 1 minute) as 'bytes/minute' FROM Metric where cluster_name IN ({{cluster_name}}) AND name != 'fb-metrics-forwarder' facet name, pod_name timeseries max"
427+
"query": "SELECT rate(sum(fluentbit_output_proc_bytes_total), 1 minute) as 'bytes/minute' FROM Metric where name != 'fb-metrics-forwarder' facet name, pod_name timeseries max"
428428
}
429429
],
430430
"platformOptions": {
@@ -461,7 +461,7 @@
461461
"nrqlQueries": [
462462
{
463463
"accountId": 0,
464-
"query": "SELECT rate(sum(fluentbit_output_proc_records_total), 1 minute) as 'records/minute' FROM Metric where cluster_name IN ({{cluster_name}}) AND name != 'fb-metrics-forwarder' facet name, pod_name timeseries MAX "
464+
"query": "SELECT rate(sum(fluentbit_output_proc_records_total), 1 minute) as 'records/minute' FROM Metric where name != 'fb-metrics-forwarder' facet name, pod_name timeseries MAX "
465465
}
466466
],
467467
"platformOptions": {
@@ -498,7 +498,7 @@
498498
"nrqlQueries": [
499499
{
500500
"accountId": 0,
501-
"query": "SELECT sum(fluentbit_output_proc_bytes_total)/sum(fluentbit_output_proc_records_total) as 'bytes' FROM Metric where cluster_name IN ({{cluster_name}}) AND name != 'fb-metrics-forwarder' facet name, pod_name timeseries MAX"
501+
"query": "SELECT sum(fluentbit_output_proc_bytes_total)/sum(fluentbit_output_proc_records_total) as 'bytes' FROM Metric where name != 'fb-metrics-forwarder' facet name, pod_name timeseries MAX"
502502
}
503503
],
504504
"platformOptions": {
@@ -538,7 +538,7 @@
538538
"nrqlQueries": [
539539
{
540540
"accountId": 0,
541-
"query": "SELECT rate(sum(fluentbit_output_proc_records_total), 1 minute) as 'Processed', rate(sum(fluentbit_output_dropped_records_total), 1 minute) as 'Dropped', rate(sum(fluentbit_output_retried_records_total), 1 minute) as 'Retried' FROM Metric where cluster_name IN ({{cluster_name}}) AND name = 'newrelic-logs-forwarder' facet pod_name timeseries max"
541+
"query": "SELECT rate(sum(fluentbit_output_proc_records_total), 1 minute) as 'Processed', rate(sum(fluentbit_output_dropped_records_total), 1 minute) as 'Dropped', rate(sum(fluentbit_output_retried_records_total), 1 minute) as 'Retried' FROM Metric where name = 'newrelic-logs-forwarder' facet pod_name timeseries max"
542542
}
543543
],
544544
"platformOptions": {
@@ -575,7 +575,7 @@
575575
"nrqlQueries": [
576576
{
577577
"accountId": 0,
578-
"query": "SELECT rate(sum(fluentbit_output_proc_records_total), 1 minute) as 'Processed', rate(sum(fluentbit_output_dropped_records_total), 1 minute) as 'Dropped', rate(sum(fluentbit_output_retried_records_total), 1 minute) as 'Retried' FROM Metric where cluster_name IN ({{cluster_name}}) AND name != 'newrelic-logs-forwarder' and name != 'fb-metrics-forwarder' facet name, pod_name timeseries max"
578+
"query": "SELECT rate(sum(fluentbit_output_proc_records_total), 1 minute) as 'Processed', rate(sum(fluentbit_output_dropped_records_total), 1 minute) as 'Dropped', rate(sum(fluentbit_output_retried_records_total), 1 minute) as 'Retried' FROM Metric where name != 'newrelic-logs-forwarder' and name != 'fb-metrics-forwarder' facet name, pod_name timeseries max"
579579
}
580580
],
581581
"platformOptions": {
@@ -612,7 +612,7 @@
612612
"nrqlQueries": [
613613
{
614614
"accountId": 0,
615-
"query": "SELECT max(fluentbit_output_upstream_total_connections) as 'Total', max(fluentbit_output_upstream_busy_connections) as 'Busy' FROM Metric where cluster_name IN ({{cluster_name}}) AND name != 'fb-metrics-forwarder' facet name, pod_name timeseries MAX"
615+
"query": "SELECT max(fluentbit_output_upstream_total_connections) as 'Total', max(fluentbit_output_upstream_busy_connections) as 'Busy' FROM Metric where name != 'fb-metrics-forwarder' facet name, pod_name timeseries MAX"
616616
}
617617
],
618618
"platformOptions": {
@@ -649,7 +649,7 @@
649649
"nrqlQueries": [
650650
{
651651
"accountId": 0,
652-
"query": "SELECT rate(sum(fluentbit_output_errors_total), 1 minute) AS 'Errors/minute' FROM Metric where cluster_name IN ({{cluster_name}}) AND name = 'newrelic-logs-forwarder' facet pod_name timeseries MAX "
652+
"query": "SELECT rate(sum(fluentbit_output_errors_total), 1 minute) AS 'Errors/minute' FROM Metric where name = 'newrelic-logs-forwarder' facet pod_name timeseries MAX "
653653
}
654654
],
655655
"platformOptions": {
@@ -686,7 +686,7 @@
686686
"nrqlQueries": [
687687
{
688688
"accountId": 0,
689-
"query": "SELECT rate(sum(fluentbit_output_retries_total), 1 minute) as 'Retries', rate(sum(fluentbit_output_retries_failed_total), 1 minute) as 'Expirations' FROM Metric where cluster_name IN ({{cluster_name}}) AND name = 'newrelic-logs-forwarder' facet pod_name timeseries max"
689+
"query": "SELECT rate(sum(fluentbit_output_retries_total), 1 minute) as 'Retries', rate(sum(fluentbit_output_retries_failed_total), 1 minute) as 'Expirations' FROM Metric where name = 'newrelic-logs-forwarder' facet pod_name timeseries max"
690690
}
691691
],
692692
"platformOptions": {
@@ -739,7 +739,7 @@
739739
"nrqlQueries": [
740740
{
741741
"accountId": 0,
742-
"query": "SELECT max(fluentbit_input_storage_memory_bytes) as 'Max' FROM Metric where cluster_name IN ({{cluster_name}}) and name != 'fb-metrics-collector' timeseries max facet name, pod_name "
742+
"query": "SELECT max(fluentbit_input_storage_memory_bytes) as 'Max' FROM Metric where name != 'fb-metrics-collector' timeseries max facet name, pod_name "
743743
}
744744
],
745745
"platformOptions": {
@@ -787,7 +787,7 @@
787787
"nrqlQueries": [
788788
{
789789
"accountId": 0,
790-
"query": "SELECT max(fluentbit_input_storage_overlimit) FROM Metric where cluster_name IN ({{cluster_name}}) and name != 'fb-metrics-collector' timeseries max facet name, pod_name"
790+
"query": "SELECT max(fluentbit_input_storage_overlimit) FROM Metric where name != 'fb-metrics-collector' timeseries max facet name, pod_name"
791791
}
792792
],
793793
"platformOptions": {
@@ -861,7 +861,7 @@
861861
"nrqlQueries": [
862862
{
863863
"accountId": 0,
864-
"query": "SELECT max(fluentbit_input_storage_chunks) AS 'Total', max(fluentbit_storage_mem_chunks) AS 'Memory', max(fluentbit_storage_fs_chunks) AS 'Filesystem' FROM Metric where cluster_name IN ({{cluster_name}}) facet pod_name timeseries MAX "
864+
"query": "SELECT max(fluentbit_input_storage_chunks) AS 'Total', max(fluentbit_storage_mem_chunks) AS 'Memory', max(fluentbit_storage_fs_chunks) AS 'Filesystem' FROM Metric facet pod_name timeseries MAX "
865865
}
866866
],
867867
"platformOptions": {

0 commit comments

Comments
 (0)