[APM] add service name to jvm (#50830)
* [APM] add service name to jvm * removes isLoading
This commit is contained in:
parent
b1eebaa2a5
commit
4256d28b85
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue