Skip to content

Commit 577bf09

Browse files
authored
Move Kibana Usage collectors outside the telemetry plugin (#65663)
1 parent a149915 commit 577bf09

34 files changed

+389
-58
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
# Pulse
163163
/packages/kbn-analytics/ @elastic/pulse
164164
/src/legacy/core_plugins/ui_metric/ @elastic/pulse
165+
/src/plugins/kibana_usage_collection/ @elastic/pulse
165166
/src/plugins/telemetry/ @elastic/pulse
166167
/src/plugins/telemetry_collection_manager/ @elastic/pulse
167168
/src/plugins/telemetry_management_section/ @elastic/pulse
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Kibana Usage Collection
2+
3+
This plugin registers the basic usage collectors from Kibana:
4+
5+
- Application Usage
6+
- UI Metrics
7+
- Ops stats
8+
- Number of Saved Objects per type
9+
- Non-default UI Settings
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
export const PLUGIN_ID = 'kibanaUsageCollection';
21+
export const PLUGIN_NAME = 'kibana_usage_collection';
22+
23+
/**
24+
* UI metric usage type
25+
*/
26+
export const UI_METRIC_USAGE_TYPE = 'ui_metric';
27+
28+
/**
29+
* Application Usage type
30+
*/
31+
export const APPLICATION_USAGE_TYPE = 'application_usage';
32+
33+
/**
34+
* The type name used within the Monitoring index to publish management stats.
35+
*/
36+
export const KIBANA_STACK_MANAGEMENT_STATS_TYPE = 'stack_management';
37+
38+
/**
39+
* The type name used to publish Kibana usage stats.
40+
* NOTE: this string shows as-is in the stats API as a field name for the kibana usage stats
41+
*/
42+
export const KIBANA_USAGE_TYPE = 'kibana';
43+
44+
/**
45+
* The type name used to publish Kibana usage stats in the formatted as bulk.
46+
*/
47+
export const KIBANA_STATS_TYPE = 'kibana_stats';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"id": "kibanaUsageCollection",
3+
"version": "kibana",
4+
"server": true,
5+
"ui": false,
6+
"requiredPlugins": [
7+
"usageCollection"
8+
],
9+
"optionalPlugins": []
10+
}

src/plugins/kibana_usage_collection/server/__snapshots__/index.test.ts.snap

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)