Skip to content

Commit

Permalink
Update default .enabled and exporter.type settings (#217) (#218)
Browse files Browse the repository at this point in the history
(cherry picked from commit b115fec)

Signed-off-by: David Zane <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent a64c3c9 commit 5658ed3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ For information about installing plugins, see [Installing plugins](https://opens

### Enabling top N query monitoring

When you install the `query-insights` plugin, top N query monitoring is disabled by default. To enable top N query monitoring, update the dynamic settings for the desired monitoring types. These settings enable the corresponding collectors and aggregators in the running cluster. For example, to enable monitoring top N queries by latency, update the `search.insights.top_queries.latency.enabled` setting:
When you install the `query-insights` plugin, top N query monitoring is enabled by default. To disable top N query monitoring, update the dynamic cluster settings for the desired metric types. For example, to disable monitoring top N queries by latency, update the `search.insights.top_queries.latency.enabled` setting:

```
PUT _cluster/settings
{
"persistent" : {
"search.insights.top_queries.latency.enabled" : true
"search.insights.top_queries.latency.enabled" : false
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class QueryInsightsSettings {
*/
public static final Setting<Boolean> TOP_N_LATENCY_QUERIES_ENABLED = Setting.boolSetting(
TOP_N_LATENCY_QUERIES_PREFIX + ".enabled",
false,
true,
Setting.Property.Dynamic,
Setting.Property.NodeScope
);
Expand Down Expand Up @@ -159,7 +159,7 @@ public class QueryInsightsSettings {
*/
public static final Setting<Boolean> TOP_N_CPU_QUERIES_ENABLED = Setting.boolSetting(
TOP_N_CPU_QUERIES_PREFIX + ".enabled",
false,
true,
Setting.Property.Dynamic,
Setting.Property.NodeScope
);
Expand Down Expand Up @@ -189,7 +189,7 @@ public class QueryInsightsSettings {
*/
public static final Setting<Boolean> TOP_N_MEMORY_QUERIES_ENABLED = Setting.boolSetting(
TOP_N_MEMORY_QUERIES_PREFIX + ".enabled",
false,
true,
Setting.Property.Dynamic,
Setting.Property.NodeScope
);
Expand Down Expand Up @@ -229,7 +229,7 @@ public class QueryInsightsSettings {
/**
* Default exporter type of top queries
*/
public static final String DEFAULT_TOP_QUERIES_EXPORTER_TYPE = SinkType.NONE.toString();
public static final String DEFAULT_TOP_QUERIES_EXPORTER_TYPE = SinkType.LOCAL_INDEX.toString();
/**
* Default Top N local indices retention period in days
*/
Expand Down

0 comments on commit 5658ed3

Please sign in to comment.