Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metricbeat] Add STAN dashboard for module #15654

Merged
merged 19 commits into from
Jan 27, 2020
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ TLS or Beats that accept connections over TLS and validate client certificates.
- Add a `system/network_summary` metricset {pull}15196[15196]
- Add mesh metricset for Istio Metricbeat module{pull}15535[15535]
- Make the `system/cpu` metricset collect normalized CPU metrics by default. {issue}15618[15618] {pull}15729[15729]
- Add STAN dashboard {pull}15654[15654]

*Packetbeat*

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions metricbeat/docs/modules/stan.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ The default metricsets are `channels`, `stats` and `subscriptions`.

The STAN module is tested with STAN 0.15.1.

[float]
== Dashboard
Dashboards for topic message count and queue depth are included:

image::./images/metricbeat-stan-overview.png[]


[float]
=== Example configuration
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/docs/modules_list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ This file is generated! See scripts/mage/docs_collector.go
|<<metricbeat-metricset-redis-keyspace,keyspace>>
|<<metricbeat-module-sql,sql>> beta[] |image:./images/icon-no.png[No prebuilt dashboards] |
.1+| .1+| |<<metricbeat-metricset-sql-query,query>> beta[]
|<<metricbeat-module-stan,Stan>> beta[] |image:./images/icon-no.png[No prebuilt dashboards] |
|<<metricbeat-module-stan,Stan>> beta[] |image:./images/icon-yes.png[Prebuilt dashboards are available] |
.3+| .3+| |<<metricbeat-metricset-stan-channels,channels>> beta[]
|<<metricbeat-metricset-stan-stats,stats>> beta[]
|<<metricbeat-metricset-stan-subscriptions,subscriptions>> beta[]
Expand Down
6 changes: 6 additions & 0 deletions x-pack/metricbeat/module/stan/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ The default metricsets are `channels`, `stats` and `subscriptions`.
=== Compatibility

The STAN module is tested with STAN 0.15.1.

[float]
== Dashboard
Dashboards for topic message count and queue depth are included:

image::./images/metricbeat-stan-overview.png[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
{
"objects": [
{
"attributes": {
"description": "Metrics for STAN channels / subjects",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": {
"filter": [],
"query": {
"language": "kuery",
"query": "STAN Metricbeats"
}
}
},
"optionsJSON": {
"hidePanelTitles": false,
"useMargins": true
},
"panelsJSON": [
{
"embeddableConfig": {},
"gridData": {
"h": 15,
"i": "e7171c3e-936d-4549-b913-1a8651ef55b8",
"w": 24,
"x": 0,
"y": 0
},
"panelIndex": "e7171c3e-936d-4549-b913-1a8651ef55b8",
"panelRefName": "panel_0",
"version": "7.5.1"
},
{
"embeddableConfig": {},
"gridData": {
"h": 15,
"i": "370515c5-80da-4288-aec4-7dca8107ef8e",
"w": 24,
"x": 24,
"y": 0
},
"panelIndex": "370515c5-80da-4288-aec4-7dca8107ef8e",
"panelRefName": "panel_1",
"version": "7.5.1"
}
],
"timeRestore": false,
"title": "[Metricbeat Stan] Channel Overview Metrics",
"version": 1
},
"id": "dbf2e220-37ce-11ea-a9c8-152a657da3ab",
"migrationVersion": {
"dashboard": "7.3.0"
},
"references": [
{
"id": "fbc095e0-37cc-11ea-a9c8-152a657da3ab",
"name": "panel_0",
"type": "visualization"
},
{
"id": "9385f9a0-33f0-11ea-a9c8-152a657da3ab",
"name": "panel_1",
"type": "visualization"
}
],
"type": "dashboard",
"updated_at": "2020-01-15T19:40:18.114Z",
"version": "WzQ5LDFd"
},
{
"attributes": {
"description": "Total number of messages in each channel / subject",
"kibanaSavedObjectMeta": {
"searchSourceJSON": {
"filter": [],
"query": {
"language": "kuery",
"query": ""
}
}
},
"title": "Channel Messages [Metricbeat Stan]",
"uiStateJSON": {},
"version": 1,
"visState": {
"aggs": [],
"params": {
"annotations": [
{
"color": "#F00",
"fields": "",
"icon": "fa-tag",
"id": "f876b980-37b5-11ea-a566-c550422d89d4",
"ignore_global_filters": 1,
"ignore_panel_filters": 1,
"index_pattern": "metricbeat-*",
"query_string": {
"language": "kuery",
"query": ""
},
"template": "",
"time_field": "@timestamp"
}
],
"axis_formatter": "number",
"axis_position": "left",
"axis_scale": "normal",
"default_index_pattern": "metricbeat-*",
"default_timefield": "@timestamp",
"id": "61ca57f0-469d-11e7-af02-69e470af7417",
"index_pattern": "",
"interval": "",
"isModelInvalid": false,
"series": [
{
"axis_position": "right",
"chart_type": "bar",
"color": "#68BC00",
"fill": 0.5,
"formatter": "number",
"id": "61ca57f1-469d-11e7-af02-69e470af7417",
"label": "STAN Queue Messages",
"line_width": 1,
"metrics": [
{
"field": "stan.channels.messages",
"id": "61ca57f2-469d-11e7-af02-69e470af7417",
"type": "sum"
}
],
"point_size": 1,
"separate_axis": 0,
"split_color_mode": "gradient",
"split_mode": "terms",
"stacked": "none",
"terms_field": "stan.channels.name.keyword",
"type": "timeseries"
}
],
"show_grid": 1,
"show_legend": 1,
"time_field": "",
"type": "timeseries"
},
"title": "Channel Messages [Metricbeat Stan]",
"type": "metrics"
}
},
"id": "fbc095e0-37cc-11ea-a9c8-152a657da3ab",
"migrationVersion": {
"visualization": "7.3.1"
},
"references": [],
"type": "visualization",
"updated_at": "2020-01-15T19:34:50.914Z",
"version": "WzQ2LDFd"
},
{
"attributes": {
"description": "Queue depth of STAN channels, summed per channel",
"kibanaSavedObjectMeta": {
"searchSourceJSON": {
"filter": [],
"query": {
"language": "kuery",
"query": ""
}
}
},
"title": "Channel Queue Depth [Metricbeat Stan]",
"uiStateJSON": {},
"version": 1,
"visState": {
"aggs": [],
"params": {
"axis_formatter": "number",
"axis_position": "left",
"axis_scale": "normal",
"background_color_rules": [
{
"id": "1cfde3b0-33f0-11ea-a5a9-419b0c5b7a83"
}
],
"bar_color_rules": [
{
"id": "1e324500-33f0-11ea-a5a9-419b0c5b7a83",
"operator": "gt",
"value": 10
}
],
"default_index_pattern": "metricbeat-*",
"default_timefield": "@timestamp",
"drilldown_url": "",
"filter": {
"language": "kuery",
"query": ""
},
"gauge_color_rules": [
{
"id": "9caf12a0-3634-11ea-a566-c550422d89d4"
}
],
"gauge_inner_width": 10,
"gauge_style": "half",
"gauge_width": 10,
"id": "61ca57f0-469d-11e7-af02-69e470af7417",
"index_pattern": "",
"interval": "",
"isModelInvalid": false,
"series": [
{
"axis_position": "right",
"chart_type": "bar",
"color": "#68BC00",
"fill": 0.5,
"filter": {
"language": "kuery",
"query": ""
},
"formatter": "number",
"id": "61ca57f1-469d-11e7-af02-69e470af7417",
"label": "Queue Depth",
"line_width": 1,
"metrics": [
{
"field": "stan.channels.depth",
"id": "61ca57f2-469d-11e7-af02-69e470af7417",
"type": "sum"
}
],
"point_size": 1,
"separate_axis": 0,
"split_mode": "terms",
"stacked": "none",
"terms_field": "stan.channels.name.keyword",
"type": "timeseries"
}
],
"show_grid": 1,
"show_legend": 1,
"time_field": "",
"type": "timeseries"
},
"title": "Channel Queue Depth [Metricbeat Stan]",
"type": "metrics"
}
},
"id": "9385f9a0-33f0-11ea-a9c8-152a657da3ab",
"migrationVersion": {
"visualization": "7.3.1"
},
"references": [],
"type": "visualization",
"updated_at": "2020-01-15T19:34:29.870Z",
"version": "WzQ1LDFd"
}
],
"version": "7.5.1"
}
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/stan/module.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dashboards:
- id: Metricbeat-STAN-Dashboard
file: Metricbeat-stan-overview.json
file: Metricbeat-STAN-overview.json