-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gRPC test cases to scraper's TestValidateMetrics
This also adds the test data corresponding to the gRPC probe metrics and updates the active series count data.
- Loading branch information
Showing
6 changed files
with
455 additions
and
2 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
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,103 @@ | ||
# HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in seconds | ||
# TYPE probe_dns_lookup_time_seconds gauge | ||
probe_dns_lookup_time_seconds 2.431e-06 | ||
# HELP probe_duration_seconds Returns how long the probe took to complete in seconds | ||
# TYPE probe_duration_seconds gauge | ||
probe_duration_seconds 0.00072303 | ||
# HELP probe_grpc_duration_seconds Duration of gRPC request by phase | ||
# TYPE probe_grpc_duration_seconds gauge | ||
probe_grpc_duration_seconds{phase="check"} 0.000652168 | ||
probe_grpc_duration_seconds{phase="resolve"} 2.431e-06 | ||
# HELP probe_grpc_healthcheck_response Response HealthCheck response | ||
# TYPE probe_grpc_healthcheck_response gauge | ||
probe_grpc_healthcheck_response{serving_status="NOT_SERVING"} 0 | ||
probe_grpc_healthcheck_response{serving_status="SERVICE_UNKNOWN"} 0 | ||
probe_grpc_healthcheck_response{serving_status="SERVING"} 1 | ||
probe_grpc_healthcheck_response{serving_status="UNKNOWN"} 0 | ||
# HELP probe_grpc_ssl Indicates if SSL was used for the connection | ||
# TYPE probe_grpc_ssl gauge | ||
probe_grpc_ssl 0 | ||
# HELP probe_grpc_status_code Response gRPC status code | ||
# TYPE probe_grpc_status_code gauge | ||
probe_grpc_status_code 0 | ||
# HELP probe_ip_addr_hash Specifies the hash of IP address. It's useful to detect if the IP address changes. | ||
# TYPE probe_ip_addr_hash gauge | ||
probe_ip_addr_hash 1.268118805e+09 | ||
# HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6 | ||
# TYPE probe_ip_protocol gauge | ||
probe_ip_protocol 4 | ||
# HELP probe_ssl_earliest_cert_expiry Returns last SSL chain expiry in unixtime | ||
# TYPE probe_ssl_earliest_cert_expiry gauge | ||
probe_ssl_earliest_cert_expiry 0 | ||
# HELP probe_success Displays whether or not the probe was a success | ||
# TYPE probe_success gauge | ||
probe_success 1 | ||
# HELP sm_check_info Provides information about a single check configuration | ||
# TYPE sm_check_info gauge | ||
sm_check_info 1 | ||
# HELP probe_all_duration_seconds Returns how long the probe took to complete in seconds (histogram) | ||
# TYPE probe_all_duration_seconds histogram | ||
probe_all_duration_seconds_bucket{le="0.005"} 1 | ||
probe_all_duration_seconds_bucket{le="0.01"} 1 | ||
probe_all_duration_seconds_bucket{le="0.025"} 1 | ||
probe_all_duration_seconds_bucket{le="0.05"} 1 | ||
probe_all_duration_seconds_bucket{le="0.1"} 1 | ||
probe_all_duration_seconds_bucket{le="0.25"} 1 | ||
probe_all_duration_seconds_bucket{le="0.5"} 1 | ||
probe_all_duration_seconds_bucket{le="1"} 1 | ||
probe_all_duration_seconds_bucket{le="2.5"} 1 | ||
probe_all_duration_seconds_bucket{le="5"} 1 | ||
probe_all_duration_seconds_bucket{le="10"} 1 | ||
probe_all_duration_seconds_bucket{le="+Inf"} 1 | ||
probe_all_duration_seconds_sum 0.00072303 | ||
probe_all_duration_seconds_count 1 | ||
# HELP probe_all_success Displays whether or not the probe was a success (summary) | ||
# TYPE probe_all_success summary | ||
probe_all_success_sum 1 | ||
probe_all_success_count 1 | ||
# HELP probe_dns_lookup_all_time_seconds Returns the time taken for probe dns lookup in seconds (histogram) | ||
# TYPE probe_dns_lookup_all_time_seconds histogram | ||
probe_dns_lookup_all_time_seconds_bucket{le="0.005"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="0.01"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="0.025"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="0.05"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="0.1"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="0.25"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="0.5"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="1"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="2.5"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="5"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="10"} 1 | ||
probe_dns_lookup_all_time_seconds_bucket{le="+Inf"} 1 | ||
probe_dns_lookup_all_time_seconds_sum 2.431e-06 | ||
probe_dns_lookup_all_time_seconds_count 1 | ||
# HELP probe_grpc_all_duration_seconds Duration of gRPC request by phase (histogram) | ||
# TYPE probe_grpc_all_duration_seconds histogram | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="0.005"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="0.01"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="0.025"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="0.05"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="0.1"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="0.25"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="0.5"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="1"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="2.5"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="5"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="10"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="check",le="+Inf"} 1 | ||
probe_grpc_all_duration_seconds_sum{phase="check"} 0.000652168 | ||
probe_grpc_all_duration_seconds_count{phase="check"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="0.005"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="0.01"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="0.025"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="0.05"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="0.1"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="0.25"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="0.5"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="1"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="2.5"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="5"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="10"} 1 | ||
probe_grpc_all_duration_seconds_bucket{phase="resolve",le="+Inf"} 1 | ||
probe_grpc_all_duration_seconds_sum{phase="resolve"} 2.431e-06 | ||
probe_grpc_all_duration_seconds_count{phase="resolve"} 1 |
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,57 @@ | ||
# HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in seconds | ||
# TYPE probe_dns_lookup_time_seconds gauge | ||
probe_dns_lookup_time_seconds 2.765e-06 | ||
# HELP probe_duration_seconds Returns how long the probe took to complete in seconds | ||
# TYPE probe_duration_seconds gauge | ||
probe_duration_seconds 0.00047477 | ||
# HELP probe_grpc_duration_seconds Duration of gRPC request by phase | ||
# TYPE probe_grpc_duration_seconds gauge | ||
probe_grpc_duration_seconds{phase="check"} 0.000359518 | ||
probe_grpc_duration_seconds{phase="resolve"} 2.765e-06 | ||
# HELP probe_grpc_healthcheck_response Response HealthCheck response | ||
# TYPE probe_grpc_healthcheck_response gauge | ||
probe_grpc_healthcheck_response{serving_status="NOT_SERVING"} 0 | ||
probe_grpc_healthcheck_response{serving_status="SERVICE_UNKNOWN"} 0 | ||
probe_grpc_healthcheck_response{serving_status="SERVING"} 1 | ||
probe_grpc_healthcheck_response{serving_status="UNKNOWN"} 0 | ||
# HELP probe_grpc_ssl Indicates if SSL was used for the connection | ||
# TYPE probe_grpc_ssl gauge | ||
probe_grpc_ssl 0 | ||
# HELP probe_grpc_status_code Response gRPC status code | ||
# TYPE probe_grpc_status_code gauge | ||
probe_grpc_status_code 0 | ||
# HELP probe_ip_addr_hash Specifies the hash of IP address. It's useful to detect if the IP address changes. | ||
# TYPE probe_ip_addr_hash gauge | ||
probe_ip_addr_hash 1.268118805e+09 | ||
# HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6 | ||
# TYPE probe_ip_protocol gauge | ||
probe_ip_protocol 4 | ||
# HELP probe_ssl_earliest_cert_expiry Returns last SSL chain expiry in unixtime | ||
# TYPE probe_ssl_earliest_cert_expiry gauge | ||
probe_ssl_earliest_cert_expiry 0 | ||
# HELP probe_success Displays whether or not the probe was a success | ||
# TYPE probe_success gauge | ||
probe_success 1 | ||
# HELP sm_check_info Provides information about a single check configuration | ||
# TYPE sm_check_info gauge | ||
sm_check_info 1 | ||
# HELP probe_all_duration_seconds Returns how long the probe took to complete in seconds (histogram) | ||
# TYPE probe_all_duration_seconds histogram | ||
probe_all_duration_seconds_bucket{le="0.005"} 1 | ||
probe_all_duration_seconds_bucket{le="0.01"} 1 | ||
probe_all_duration_seconds_bucket{le="0.025"} 1 | ||
probe_all_duration_seconds_bucket{le="0.05"} 1 | ||
probe_all_duration_seconds_bucket{le="0.1"} 1 | ||
probe_all_duration_seconds_bucket{le="0.25"} 1 | ||
probe_all_duration_seconds_bucket{le="0.5"} 1 | ||
probe_all_duration_seconds_bucket{le="1"} 1 | ||
probe_all_duration_seconds_bucket{le="2.5"} 1 | ||
probe_all_duration_seconds_bucket{le="5"} 1 | ||
probe_all_duration_seconds_bucket{le="10"} 1 | ||
probe_all_duration_seconds_bucket{le="+Inf"} 1 | ||
probe_all_duration_seconds_sum 0.00047477 | ||
probe_all_duration_seconds_count 1 | ||
# HELP probe_all_success Displays whether or not the probe was a success (summary) | ||
# TYPE probe_all_success summary | ||
probe_all_success_sum 1 | ||
probe_all_success_count 1 |
Oops, something went wrong.