-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into kertal-pr-2020-04-01-fix-discover-index-pa…
…ttern-without-timefield
- Loading branch information
Showing
270 changed files
with
43,112 additions
and
18,001 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,48 @@ | ||
[[service-maps]] | ||
=== Service maps | ||
|
||
beta::[] | ||
|
||
A service map is a real-time diagram of the interactions occurring in your application’s architecture. | ||
It allows you to easily visualize data flow and high-level statistics, like average transaction duration, | ||
requests per minute, errors per minute, and metrics, allowing you to quickly assess the status of your services. | ||
|
||
Our beta offering creates two types of service maps: | ||
|
||
* Global: All services and connections are shown. | ||
* Service-specific: Selecting a specific service will highlight it's connections. | ||
|
||
[role="screenshot"] | ||
image::apm/images/service-maps.png[Example view of service maps in the APM app in Kibana] | ||
|
||
[float] | ||
[[visualize-your-architecture]] | ||
=== Visualize your architecture | ||
|
||
Select the **Service Map** tab to get started. | ||
By default, all services and connections are shown. | ||
Whether your onboarding a new engineer, or just trying to grasp the big picture, | ||
click around, zoom in and out, and begin to visualize how your services are connected. | ||
|
||
If there's a specific service that interests you, select that service to highlight its connections. | ||
Clicking **Focus map** will refocus the map on that specific service and lock the connection highlighting. | ||
From here, select **Service Details**, or click on the **Transaction** tab to jump to the Transaction overview. | ||
You can also use the tabs at the top of the page to easily jump to the **Errors** or **Metrics** overview. | ||
|
||
While it's not possible to query in service maps, it is possible to filter by environment. | ||
This can be useful if you have two or more services, in separate environments, but with the same name. | ||
Use the environment drop down to only see the data you're interested in, like `dev` or `production`. | ||
|
||
[role="screenshot"] | ||
image::apm/images/service-maps-java.png[Example view of service maps with Java highlighted in the APM app in Kibana] | ||
|
||
[float] | ||
[[service-maps-legend]] | ||
=== Legend | ||
|
||
Nodes appear on the map in one of two shapes: | ||
|
||
* **Circle**: Instrumented services. Interior icons are based on the language of the agent used. | ||
* **Diamond**: Databases, external, and messaging. Interior icons represent the generic type, | ||
with specific icons for known entities, like Elasticsearch. | ||
Type and subtype are based on `span.type`, and `span.subtype`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* 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 { FieldFormatsStart, FieldFormatsSetup, FieldFormatsService } from '.'; | ||
import { fieldFormatsMock } from '../../common/field_formats/mocks'; | ||
|
||
type FieldFormatsServiceClientContract = PublicMethodsOf<FieldFormatsService>; | ||
|
||
const createSetupContractMock = () => fieldFormatsMock as FieldFormatsSetup; | ||
const createStartContractMock = () => fieldFormatsMock as FieldFormatsStart; | ||
|
||
const createMock = () => { | ||
const mocked: jest.Mocked<FieldFormatsServiceClientContract> = { | ||
setup: jest.fn().mockReturnValue(createSetupContractMock()), | ||
start: jest.fn().mockReturnValue(createStartContractMock()), | ||
}; | ||
|
||
return mocked; | ||
}; | ||
|
||
export const fieldFormatsServiceMock = { | ||
create: createMock, | ||
createSetupContract: createSetupContractMock, | ||
createStartContract: createStartContractMock, | ||
}; |
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
Oops, something went wrong.