This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add test for resource on per metric basis. * add test for built-in metrics. * add test for metric prefix. * add test for non-builtin prefix with domain. - also modify createFakeServer to return server and connectio * execute conn.Close() first.
- Loading branch information
Showing
4 changed files
with
362 additions
and
29 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,99 @@ | ||
metric_descriptor: < | ||
name: "googleapis.com/calls" | ||
description: "Number of calls" | ||
unit: "1" | ||
type: CUMULATIVE_INT64 | ||
label_keys: < | ||
key: "empty_key" | ||
> | ||
label_keys: < | ||
key: "operation_type" | ||
> | ||
> | ||
timeseries: < | ||
start_timestamp: < | ||
seconds: 1543160298 | ||
nanos: 100000090 | ||
> | ||
label_values: < | ||
has_value: true | ||
> | ||
label_values: < | ||
value: "value_0" | ||
has_value: true | ||
> | ||
points: < | ||
timestamp: < | ||
seconds: 1543160298 | ||
nanos: 100000997 | ||
> | ||
int64_value: 1 | ||
> | ||
> | ||
--- | ||
metric_descriptor: < | ||
name: "kubernetes.io/latency" | ||
description: "Description of latency" | ||
unit: "ms" | ||
type: CUMULATIVE_INT64 | ||
label_keys: < | ||
key: "empty_key" | ||
> | ||
label_keys: < | ||
key: "operation_type" | ||
> | ||
> | ||
timeseries: < | ||
start_timestamp: < | ||
seconds: 1543160298 | ||
nanos: 100000090 | ||
> | ||
label_values: < | ||
has_value: true | ||
> | ||
label_values: < | ||
value: "value_0" | ||
has_value: true | ||
> | ||
points: < | ||
timestamp: < | ||
seconds: 1543160298 | ||
nanos: 100000997 | ||
> | ||
int64_value: 1 | ||
> | ||
> | ||
--- | ||
metric_descriptor: < | ||
name: "istio.io/latency" | ||
description: "Description of latency" | ||
unit: "ms" | ||
type: CUMULATIVE_INT64 | ||
label_keys: < | ||
key: "empty_key" | ||
> | ||
label_keys: < | ||
key: "operation_type" | ||
> | ||
> | ||
timeseries: < | ||
start_timestamp: < | ||
seconds: 1543160298 | ||
nanos: 100000090 | ||
> | ||
label_values: < | ||
has_value: true | ||
> | ||
label_values: < | ||
value: "value_0" | ||
has_value: true | ||
> | ||
points: < | ||
timestamp: < | ||
seconds: 1543160298 | ||
nanos: 100000997 | ||
> | ||
int64_value: 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,2 @@ | ||
# Empty file required to specify that no CreateMetricDescriptorRequest will be generated. | ||
|
Oops, something went wrong.