forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MD] noAuth integration, credential & endpoint validation (opensearch…
…-project#2165) * noAuth integration, credential & endpoint validation Signed-off-by: mpabba3003 <amazonmanideep@gmail.com> * Refactoring validation message Signed-off-by: mpabba3003 <amazonmanideep@gmail.com> * Adding back accidentally deleted file home/tutorials/haproxy_metrics/index.ts Signed-off-by: mpabba3003 <amazonmanideep@gmail.com> Signed-off-by: mpabba3003 <amazonmanideep@gmail.com> Signed-off-by: Kristen Tian <tyarong@amazon.com>
- Loading branch information
1 parent
0ca5bb1
commit 5c1b3fd
Showing
6 changed files
with
119 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
src/plugins/home/server/tutorials/haproxy_metrics/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Any modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { i18n } from '@osd/i18n'; | ||
import { TutorialsCategory } from '../../services/tutorials'; | ||
import { onPremInstructions } from '../instructions/metricbeat_instructions'; | ||
import { | ||
TutorialContext, | ||
TutorialSchema, | ||
} from '../../services/tutorials/lib/tutorials_registry_types'; | ||
|
||
export function haproxyMetricsSpecProvider(context: TutorialContext): TutorialSchema { | ||
const moduleName = 'haproxy'; | ||
return { | ||
id: 'haproxyMetrics', | ||
name: i18n.translate('home.tutorials.haproxyMetrics.nameTitle', { | ||
defaultMessage: 'HAProxy metrics', | ||
}), | ||
moduleName, | ||
isBeta: false, | ||
category: TutorialsCategory.METRICS, | ||
shortDescription: i18n.translate('home.tutorials.haproxyMetrics.shortDescription', { | ||
defaultMessage: 'Fetch internal metrics from the HAProxy server.', | ||
}), | ||
longDescription: i18n.translate('home.tutorials.haproxyMetrics.longDescription', { | ||
defaultMessage: | ||
'The `haproxy` Metricbeat module fetches internal metrics from HAProxy. \ | ||
[Learn more]({learnMoreLink}).', | ||
values: { | ||
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-haproxy.html', | ||
}, | ||
}), | ||
euiIconType: 'logoHAproxy', | ||
artifacts: { | ||
application: { | ||
label: i18n.translate('home.tutorials.haproxyMetrics.artifacts.application.label', { | ||
defaultMessage: 'Discover', | ||
}), | ||
path: '/app/discover#/', | ||
}, | ||
dashboards: [], | ||
exportedFields: { | ||
documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-haproxy.html', | ||
}, | ||
}, | ||
completionTimeMinutes: 10, | ||
onPrem: onPremInstructions(moduleName, context), | ||
}; | ||
} |