[APM] add service name to jvm (#50830)

* [APM] add service name to jvm

* removes isLoading
This commit is contained in:
Brittany Joiner 2019-12-06 16:31:17 -05:00 committed by GitHub
parent b1eebaa2a5
commit 4256d28b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import { shallow } from 'enzyme';
import { ServiceNodeMetrics } from '.';
describe('ServiceNodeMetrics', () => {
describe('render', () => {
it('renders', () => {
expect(() => shallow(<ServiceNodeMetrics />)).not.toThrowError();
});
});
});

View file

@ -117,6 +117,22 @@ export function ServiceNodeMetrics() {
</EuiCallOut>
) : (
<EuiFlexGroup gutterSize="xl">
<EuiFlexItem grow={false}>
<EuiStat
titleSize="s"
description={i18n.translate(
'xpack.apm.serviceNodeMetrics.serviceName',
{
defaultMessage: 'Service name'
}
)}
title={
<EuiToolTip content={serviceName}>
<Truncate>{serviceName}</Truncate>
</EuiToolTip>
}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiStat
titleSize="s"