mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
link to dashboards by id instead of title (#16319)
* link to dashboards by id instead of title * update APM dashboard link
This commit is contained in:
parent
e47ce5544f
commit
2d0d5cde5c
15 changed files with 16 additions and 16 deletions
|
@ -3,7 +3,7 @@ import { PARAM_TYPES } from './param_types';
|
|||
import { TUTORIAL_CATEGORY } from './tutorial_category';
|
||||
|
||||
const dashboardSchema = Joi.object({
|
||||
title: Joi.string().required(),
|
||||
id: Joi.string().required(), // Dashboard saved object id
|
||||
linkLabel: Joi.string().when('isOverview', {
|
||||
is: true,
|
||||
then: Joi.required(),
|
||||
|
|
|
@ -33,7 +33,7 @@ export function Footer({ overviewDashboard }) {
|
|||
>
|
||||
<KuiLinkButton
|
||||
buttonType="primary"
|
||||
href={`#/dashboards?title=${overviewDashboard.title}`}
|
||||
href={`#/dashboard/${overviewDashboard.id}`}
|
||||
>
|
||||
{overviewDashboard.linkLabel}
|
||||
</KuiLinkButton>
|
||||
|
@ -48,7 +48,7 @@ export function Footer({ overviewDashboard }) {
|
|||
|
||||
Footer.propTypes = {
|
||||
overviewDashboard: PropTypes.shape({
|
||||
title: PropTypes.string.isRequired,
|
||||
id: PropTypes.string.isRequired,
|
||||
linkLabel: PropTypes.string.isRequired,
|
||||
})
|
||||
};
|
||||
|
|
|
@ -15,7 +15,7 @@ export function apacheLogsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: 'Filebeat-Apache2-Dashboard',
|
||||
id: 'Filebeat-Apache2-Dashboard',
|
||||
linkLabel: 'Apache2 logs dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export function apacheMetricsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: 'Metricbeat-Apache-HTTPD-server-status',
|
||||
id: 'Metricbeat-Apache-HTTPD-server-status',
|
||||
linkLabel: 'Apache metrics dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export function apmSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: '[APM] Services',
|
||||
id: '8d3ed660-7828-11e7-8c47-65b845b5cfb3',
|
||||
linkLabel: 'APM Services dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export function dockerMetricsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: 'AV4REOpp5NkDleZmzKkE',
|
||||
id: 'AV4REOpp5NkDleZmzKkE',
|
||||
linkLabel: 'Docker metrics dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export function kubernetesMetricsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: 'AV4RGUqo5NkDleZmzKuZ',
|
||||
id: 'AV4RGUqo5NkDleZmzKuZ',
|
||||
linkLabel: 'Kubernetes metrics dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export function mysqlLogsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: 'Filebeat-MySQL-Dashboard',
|
||||
id: 'Filebeat-MySQL-Dashboard',
|
||||
linkLabel: 'MySQL logs dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export function mysqlMetricsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: '66881e90-0006-11e7-bf7f-c9acc3d3e306',
|
||||
id: '66881e90-0006-11e7-bf7f-c9acc3d3e306',
|
||||
linkLabel: 'MySQL metrics dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export function nginxLogsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: '55a9e6e0-a29e-11e7-928f-5dbe6f6f5519',
|
||||
id: '55a9e6e0-a29e-11e7-928f-5dbe6f6f5519',
|
||||
linkLabel: 'Nginx logs dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ export function nginxMetricsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: '023d2930-f1a5-11e7-a9ef-93c69af7b129',
|
||||
id: '023d2930-f1a5-11e7-a9ef-93c69af7b129',
|
||||
linkLabel: 'Nginx metrics dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ export function redisLogsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: '7fea2930-478e-11e7-b1f0-cb29bac6bf8b',
|
||||
id: '7fea2930-478e-11e7-b1f0-cb29bac6bf8b',
|
||||
linkLabel: 'Redis logs dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export function redisMetricsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: 'AV4YjZ5pux-M-tCAunxK',
|
||||
id: 'AV4YjZ5pux-M-tCAunxK',
|
||||
linkLabel: 'Redis metrics dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export function systemLogsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: 'Filebeat-syslog-dashboard',
|
||||
id: 'Filebeat-syslog-dashboard',
|
||||
linkLabel: 'System logs dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export function systemMetricsSpecProvider() {
|
|||
artifacts: {
|
||||
dashboards: [
|
||||
{
|
||||
title: 'Metricbeat-system-overview',
|
||||
id: 'Metricbeat-system-overview',
|
||||
linkLabel: 'System metrics dashboard',
|
||||
isOverview: true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue