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

[Infra UI] Add cloud metrics and cloud/host info to metadata endpoint #41836

Merged
merged 21 commits into from
Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5aa4519
[Infra UI] Add cloud metrics and cloud/host info to metadata endpoint
simianhacker Jul 23, 2019
b7848ec
Adding cloud metrics
simianhacker Jul 23, 2019
7cb8831
Correcting the pod host/cloud info
simianhacker Jul 24, 2019
afccd9a
Adding tests to metadata for new cloud/host info
simianhacker Jul 24, 2019
338918e
Fixing test to include machine.type
simianhacker Jul 25, 2019
50c9639
Merge branch 'master' of github.com:elastic/kibana into fixes-39280
simianhacker Jul 25, 2019
dc6fcaa
Merge branch 'master' of github.com:elastic/kibana into fixes-39280
simianhacker Jul 25, 2019
87240a4
Adding aws test data
simianhacker Jul 25, 2019
2a3dcda
Merge branch 'master' of github.com:elastic/kibana into fixes-39280
simianhacker Jul 26, 2019
4abae3b
Merge branch 'master' of github.com:elastic/kibana into fixes-39280
simianhacker Jul 29, 2019
44b3659
Refactor metadata container into hook
simianhacker Jul 31, 2019
18943b6
Merge branch 'master' of github.com:elastic/kibana into fixes-39280
simianhacker Jul 31, 2019
69e1acc
Functionally complete
simianhacker Jul 31, 2019
a2c6aff
Merge branch 'fixes-39280' of github.com:simianhacker/kibana into fix…
simianhacker Jul 31, 2019
3eb5a0e
updating tests
simianhacker Jul 31, 2019
9f1212e
Removing Metadata GraphQL endpoint and supporting files
simianhacker Jul 31, 2019
21371a9
Moving types under common/http_api and prefixing with Infra
simianhacker Aug 1, 2019
0662c46
adding filter for aws.ec2 dataset
simianhacker Aug 1, 2019
b46c035
move away from fetch to useHTTPRequest
simianhacker Aug 1, 2019
6cdd1ce
Add decode function to useHTTPRequest; rename data to response;
simianhacker Aug 1, 2019
ebb3b0b
Changing from Typescript types to IO-TS types and adding checks at cl…
simianhacker Aug 1, 2019
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
130 changes: 130 additions & 0 deletions x-pack/legacy/plugins/infra/common/graphql/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,66 @@ export interface InfraNodeMetadata {

name: string;

info?: InfraNodeInfo | null;

features: InfraNodeFeature[];
}
/** The info object for the node */
export interface InfraNodeInfo {
host?: InfraNodeHost | null;

cloud?: InfraNodeCloud | null;
}
/** The host object for the node */
export interface InfraNodeHost {
name?: string | null;

os?: InfraNodeHostOs | null;

architecture?: string | null;

containerized?: boolean | null;
}
/** The operation system object for the node */
export interface InfraNodeHostOs {
codename?: string | null;

family?: string | null;

kernel?: string | null;

name?: string | null;

platform?: string | null;

version?: string | null;
}
/** The cloud object for the node */
export interface InfraNodeCloud {
instance?: InfraNodeCloudInstance | null;

provider?: string | null;

availability_zone?: string | null;

project?: InfraNodeCloudProject | null;

machine?: InfraNodeCloudMachine | null;
}
/** The cloud instance object for the node */
export interface InfraNodeCloudInstance {
id?: string | null;

name?: string | null;
}
/** The cloud project object for the node */
export interface InfraNodeCloudProject {
id?: string | null;
}
/** The Cloud machine object for the node */
export interface InfraNodeCloudMachine {
type?: string | null;
}

export interface InfraNodeFeature {
name: string;
Expand Down Expand Up @@ -749,6 +807,8 @@ export namespace MetadataQuery {
name: string;

features: Features[];

info?: Info | null;
};

export type Features = {
Expand All @@ -758,6 +818,76 @@ export namespace MetadataQuery {

source: string;
};

export type Info = {
__typename?: 'InfraNodeInfo';

cloud?: Cloud | null;

host?: Host | null;
};

export type Cloud = {
__typename?: 'InfraNodeCloud';

instance?: Instance | null;

provider?: string | null;

availability_zone?: string | null;

project?: Project | null;

machine?: Machine | null;
};

export type Instance = {
__typename?: 'InfraNodeCloudInstance';

id?: string | null;

name?: string | null;
};

export type Project = {
__typename?: 'InfraNodeCloudProject';

id?: string | null;
};

export type Machine = {
__typename?: 'InfraNodeCloudMachine';

type?: string | null;
};

export type Host = {
__typename?: 'InfraNodeHost';

name?: string | null;

os?: Os | null;

architecture?: string | null;

containerized?: boolean | null;
};

export type Os = {
__typename?: 'InfraNodeHostOS';

codename?: string | null;

family?: string | null;

kernel?: string | null;

name?: string | null;

platform?: string | null;

version?: string | null;
};
}

export namespace MetricsQuery {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,35 @@ export const metadataQuery = gql`
name
source
}
info {
cloud {
instance {
id
name
}
provider
availability_zone
project {
id
}
machine {
type
}
}
host {
name
os {
codename
family
kernel
name
platform
version
}
architecture
containerized
}
}
}
}
}
Expand Down
Loading