- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
gRPC tests allow you to proactively monitor your gRPC services and servers. You can choose from two types:
.proto
file to Datadog. For more information, see the example health checks .proto
file shared by the gRPC community.gRPC tests can run from both managed and private locations depending on your preference for running the test from outside or inside your network. gRPC tests can run on a schedule, on-demand, or directly within your CI/CD pipelines.
After choosing to create a gRPC
test, define your test’s request.
Specify the Host and Port to run your test on. The default gRPC port is 50051
.
Select Behavior Check to perform a unary call or Health Check to perform a health check.
For a behavior check, specify the Server Reflection or upload a Proto File that defines your gRPC server. Select a method and include a request message. Datadog does not support streaming methods.
For a health check, enter the name of the service. Leave this field blank if you want to send a health check on the gRPC server.
Add Advanced Options (optional) to your test:
Client certificate: Authenticate through mTLS by uploading your client certificate (.crt
) and the associated private key (.key
) in PEM
format.
You can use the openssl
library to convert your certificates. For example, convert a PKCS12
certificate to PEM
formatted private keys and certificates.
openssl pkcs12 -in <CERT>.p12 -out <CERT_KEY>.key -nodes -nocerts
openssl pkcs12 -in <CERT>.p12 -out <CERT>.cert -nokeys
Name your gRPC test.
Add env
Tags as well as any other tag to your gRPC test. You can then use these tags to filter through your Synthetic tests on the Synthetic Monitoring & Continuous Testing page.
Click Send to try out the request configuration. A response preview is displayed on the right side of your screen.
Assertions define what an expected test result is. After you click Send, an assertion on the response time
is added based on the response that was obtained. You must define at least one assertion for your test to monitor.
Type | Operator | Value type |
---|---|---|
response time | is less than | Integer (ms) |
gRPC response | contains , does not contain , is , is not ,matches , does not match ,jsonpath , xpath | String Regex |
gRPC metadata | is , is not , contains , does not contain , matches regex , does not match regex , does not exist | Integer (ms) Regex |
You can create up to 20 assertions per API test by clicking New Assertion or by clicking directly on the response preview:
Type | Operator | Value type |
---|---|---|
response time | is less than | Integer (ms) |
healthcheck status | is , is not | Integer (ms) |
gRPC metadata | is , is not , contains , does not contain , matches regex , does not match regex , does not exist | Integer (ms) |
You can create up to 20 assertions per API test by clicking New Assertion or by clicking directly on the response preview:
If a test does not contain an assertion on the response body, the body payload drops and returns an associated response time for the request within the timeout limit set by the Synthetics Worker.
If a test contains an assertion on the response body and the timeout limit is reached, an Assertions on the body/response cannot be run beyond this limit
error appears.
Select the Locations to run your gRPC test from. gRPC tests can run from both managed and private locations depending on your preference for running the test from outside or inside your network.
Datadog’s out-of-the-box managed locations allow you to test public-facing websites and endpoints from regions where your customers are located.
Americas | APAC | EMEA |
---|---|---|
Canada Central (AWS) | Hong Kong (AWS) | Cape Town (AWS) |
Northern California (AWS) | Mumbai (AWS) | Frankfurt (AWS) |
Northern Virginia (AWS) | Seoul (AWS) | Ireland (AWS) |
Ohio (AWS) | Singapore (AWS) | London (AWS) |
Oregon (AWS) | Sydney (AWS) | Paris (AWS) |
São Paulo (AWS) | Tokyo (AWS) | Stockholm (AWS) |
Virginia (Azure) | Osaka (AWS) | Milan (AWS) |
Jakarta (AWS) | Bahrain (AWS) |
The Datadog for Government site (US1-FED) uses the following managed location:
Americas |
---|
US-West |
gRPC tests can run:
알림 조건을 설정해 테스트 실패 시 알림을 트리거할 상황을 정의하세요.
알림 조건을 An alert is triggered if any assertion fails for X minutes from any n of N locations
으로 설정하면 해당 두 조건이 참인 경우에만 알림이 트리거됩니다.
결과가 테스트 실패인 경우 Y
밀리초 후 X
회 재시도를 트리거할 수 있습니다. 알림 중요도에 맞게 재시도 간격을 커스터마이즈할 수 있습니다.
위치 가동 시간은 각 평가 기준으로 계산됩니다(평가 전 마지막 테스트 결과가 상승 또는 감소했는지 여부). 총 가동 시간은 설정된 알림 조건에 따라 계산됩니다. 전송된 알림은 총 가동 시간을 기준으로 합니다.
알림은 이전에 정의된 알림 조건 기준 테스트에서 전송됩니다. 이 섹션을 통해 팀에 메시지를 전달하는 방법과 해당 메시지의 내용을 정의하세요.
모니터 설정 방법과 유사하게 알림을 받아야 하는 사용자 및/또는 서비스를 선택합니다. @notification
를 메시지에 추가하거나, 드롭다운 메뉴를 사용해 팀 구성원과 연결된 통합을 검색할 수 있습니다.
테스트에 대한 알림 메시지를 입력합니다. 이 필드는 표준 마크다운 형식을 허용하며 다음 조건부 변수를 지원합니다.
조건 변수 | 설명 |
---|---|
{{ #is_alert }} | 테스트가 알림을 전송하면 표시합니다. |
{{ ^is_alert }} | 테스트가 알림을 전송하지 않으면 표시합니다. |
{{ #is_recovery }} | 테스트에서 알림을 복원하면 표시합니다. |
{{ ^is_recovery }} | 테스트가 일림을 복원하지 않으면 표시합니다. |
{{ #is_renotify }} | 모니터가 알림을 다시 알리면 표시합니다. |
{{ ^is_renotify }} | 모니터가 알림을 다시 알리면 표시합니다. |
{{ #is_priority }} | 모니터가 우선순위(P1~P5)와 일치하면 표시합니다. |
{{ ^is_priority }} | 모니터가 우선순위와 일치하지 않으면 표시됩니다(P1~P5). |
테스트 실패 시 테스트에서 알림 메시지를 재전송할 빈도를 지정합니다. 테스트 실패에 대해 알림이 다시 전송되는 것을 방지하려면 옵션을 Never renotify if the monitor has not been resolved
로 남겨둡니다.
생성을 클릭해 테스트 설정 및 모니터를 저장합니다.
자세한 정보는 신서틱(Synthetic) 테스트 모니터를 참조하세요.
To create a local variable, click Create a Local Variable. You can select one of the following available builtins to add to your variable string:
n
digits.n
letters.n
characters.n
units.n
units.To obfuscate local variable values in test results, select Hide and obfuscate variable value. Once you have defined the variable string, click Add Variable.
You can use the global variables defined on the Settings page in the URL, advanced options, and assertions of your gRPC tests.
To display your list of variables, type {{
in your desired field.
A test is considered FAILED
if it does not satisfy one or more assertions or if the request prematurely failed. In some cases, the test can fail without testing the assertions against the endpoint.
These reasons include the following:
gRPC specific errors
CONNRESET
DNS
INVALID_REQUEST
SSL
TIMEOUT
TIMEOUT
can happen:TIMEOUT: The request couldn't be completed in a reasonable time.
indicates that the request duration hit the test defined timeout (default is set to 60 seconds).
For each request, only the completed stages for the request are displayed in the network waterfall. For example, in the case of Total response time
only being displayed, the timeout occurred during the DNS resolution.TIMEOUT: Overall test execution couldn't be completed in a reasonable time.
indicates that the test duration (request and assertions) hits the maximum duration of 60.5 seconds.By default, only users with the Datadog Admin and Datadog Standard roles can create, edit, and delete Synthetic gRPC tests. To get create, edit, and delete access to Synthetic gRPC tests, upgrade your user to one of those two default roles.
If you are using the custom role feature, add your user to any custom role that includes synthetics_read
and synthetics_write
permissions.
Access restriction is available for customers using custom roles on their accounts.
You can restrict access to a browser test based on the roles in your organization. When creating a browser test, choose which roles (in addition to your user) can read and write your test.
추가 유용한 문서, 링크 및 기사: