Skip to content

Commit 2c70736

Browse files
committed
add dashboard level filter for prometheus
1 parent 0e26f73 commit 2c70736

File tree

3 files changed

+66
-33
lines changed

3 files changed

+66
-33
lines changed

packages/prometheus/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.16.0"
3+
changes:
4+
- description: Add global filter on data_stream.dataset to improve performance.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/9424
27
- version: "1.15.2"
38
changes:
49
- description: Fix typo - Replace "darastream" with "datastream"

packages/prometheus/kibana/dashboard/prometheus-c181a040-3d96-11ed-b624-b12467b8df74.json

Lines changed: 60 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,42 @@
33
"description": "Various stats for Prometheus Server",
44
"kibanaSavedObjectMeta": {
55
"searchSourceJSON": {
6-
"filter": [],
6+
"filter": [
7+
{
8+
"$state": {
9+
"store": "appState"
10+
},
11+
"meta": {
12+
"alias": null,
13+
"disabled": false,
14+
"indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index",
15+
"key": "data_stream.dataset",
16+
"negate": false,
17+
"params": [
18+
"prometheus.collector",
19+
"prometheus.remote_write"
20+
],
21+
"type": "phrases"
22+
},
23+
"query": {
24+
"bool": {
25+
"minimum_should_match": 1,
26+
"should": [
27+
{
28+
"match_phrase": {
29+
"data_stream.dataset": "prometheus.collector"
30+
}
31+
},
32+
{
33+
"match_phrase": {
34+
"data_stream.dataset": "prometheus.remote_write"
35+
}
36+
}
37+
]
38+
}
39+
}
40+
}
41+
],
742
"query": {
843
"language": "kuery",
944
"query": ""
@@ -172,8 +207,7 @@
172207
},
173208
"panelIndex": "bae306a1-c2b2-44bc-bf55-08d079a6ed22",
174209
"title": "TSDB Series [Metrics Prometheus]",
175-
"type": "lens",
176-
"version": "8.7.0"
210+
"type": "lens"
177211
},
178212
{
179213
"embeddableConfig": {
@@ -336,8 +370,7 @@
336370
},
337371
"panelIndex": "8bf9496e-83bf-404b-9465-b4497e7d3c64",
338372
"title": "Appended Samples rate [Metrics Prometheus]",
339-
"type": "lens",
340-
"version": "8.7.0"
373+
"type": "lens"
341374
},
342375
{
343376
"embeddableConfig": {
@@ -670,8 +703,7 @@
670703
},
671704
"panelIndex": "49806b1a-15f5-4acb-a8a2-729b04f7e04d",
672705
"title": "Rejected Scrapes [Metrics Prometheus]",
673-
"type": "lens",
674-
"version": "8.7.0"
706+
"type": "lens"
675707
},
676708
{
677709
"embeddableConfig": {
@@ -919,8 +951,7 @@
919951
},
920952
"panelIndex": "629941f0-6df5-4edf-88ac-2ad5a2d4e722",
921953
"title": "Target sync duration in milliseconds [Metrics Prometheus]",
922-
"type": "lens",
923-
"version": "8.7.0"
954+
"type": "lens"
924955
},
925956
{
926957
"embeddableConfig": {
@@ -1112,8 +1143,7 @@
11121143
},
11131144
"panelIndex": "749d93db-c8ad-45ec-91d4-684749dce696",
11141145
"title": "Target scrape sync total [Metrics Prometheus]",
1115-
"type": "lens",
1116-
"version": "8.7.0"
1146+
"type": "lens"
11171147
},
11181148
{
11191149
"embeddableConfig": {
@@ -1312,8 +1342,7 @@
13121342
},
13131343
"panelIndex": "95cd59fa-d033-4a7e-87a2-3eaa75c0f790",
13141344
"title": "HTTP Requests rate [Metrics Prometheus]",
1315-
"type": "lens",
1316-
"version": "8.7.0"
1345+
"type": "lens"
13171346
},
13181347
{
13191348
"embeddableConfig": {
@@ -1509,8 +1538,7 @@
15091538
},
15101539
"panelIndex": "12f36e6a-ad15-49ff-9542-ea58af14a50f",
15111540
"title": "Prometheus Engine Query Duration Seconds p99 [Metrics Prometheus]",
1512-
"type": "lens",
1513-
"version": "8.7.0"
1541+
"type": "lens"
15141542
},
15151543
{
15161544
"embeddableConfig": {
@@ -1725,8 +1753,7 @@
17251753
},
17261754
"panelIndex": "eeb20683-971e-454f-9da5-b1dbbcec2a09",
17271755
"title": "TSDB Reload Count [Metrics Prometheus]",
1728-
"type": "lens",
1729-
"version": "8.7.0"
1756+
"type": "lens"
17301757
},
17311758
{
17321759
"embeddableConfig": {
@@ -1904,8 +1931,7 @@
19041931
},
19051932
"panelIndex": "965d4016-dba2-48e8-87b4-ff026b590444",
19061933
"title": "TSDB WAL Stats [Metrics Prometheus]",
1907-
"type": "lens",
1908-
"version": "8.7.0"
1934+
"type": "lens"
19091935
},
19101936
{
19111937
"embeddableConfig": {
@@ -2178,8 +2204,7 @@
21782204
},
21792205
"panelIndex": "bfc55cae-1f8e-41a1-94d7-685a9d181052",
21802206
"title": "Alert Notifications [Metrics Prometheus]",
2181-
"type": "lens",
2182-
"version": "8.7.0"
2207+
"type": "lens"
21832208
},
21842209
{
21852210
"embeddableConfig": {
@@ -2335,8 +2360,7 @@
23352360
},
23362361
"panelIndex": "cfb53281-7040-451f-887e-dec4deff1ff4",
23372362
"title": "Head Chunks [Metrics Prometheus]",
2338-
"type": "lens",
2339-
"version": "8.7.0"
2363+
"type": "lens"
23402364
},
23412365
{
23422366
"embeddableConfig": {
@@ -2526,20 +2550,24 @@
25262550
},
25272551
"panelIndex": "ecb0298a-bf03-4ff9-a2ac-42116b27b3a0",
25282552
"title": "Number of Discovered Targets [Metrics Prometheus]",
2529-
"type": "lens",
2530-
"version": "8.7.0"
2553+
"type": "lens"
25312554
}
25322555
],
25332556
"timeRestore": false,
25342557
"title": "[Metrics Prometheus] Prometheus Server overview",
25352558
"version": 1
25362559
},
2537-
"coreMigrationVersion": "8.7.0",
2538-
"created_at": "2023-09-25T05:45:15.505Z",
2560+
"coreMigrationVersion": "8.8.0",
2561+
"created_at": "2024-04-22T08:33:38.872Z",
25392562
"id": "prometheus-c181a040-3d96-11ed-b624-b12467b8df74",
2540-
"migrationVersion": {
2541-
"dashboard": "8.7.0"
2542-
},
2543-
"references": [],
2544-
"type": "dashboard"
2563+
"managed": false,
2564+
"references": [
2565+
{
2566+
"id": "metrics-*",
2567+
"name": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index",
2568+
"type": "index-pattern"
2569+
}
2570+
],
2571+
"type": "dashboard",
2572+
"typeMigrationVersion": "8.9.0"
25452573
}

packages/prometheus/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 2.10.0
22
name: prometheus
33
title: Prometheus
4-
version: 1.15.2
4+
version: 1.16.0
55
description: Collect metrics from Prometheus servers with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)