Skip to content
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
250de6b
exporter/metric: Add support to export Distribution with Exemplars.
franciscovalentecastro Dec 11, 2023
fef5b26
example/metric: Add expoential histogram example.
franciscovalentecastro Dec 11, 2023
0cda63a
Update example.go.
franciscovalentecastro Dec 12, 2023
168b5a8
exporter/metric: Transform ExponentialHistogram to Distribution.
franciscovalentecastro Dec 12, 2023
29786bb
example: Update date.
franciscovalentecastro Dec 12, 2023
0a7ce9f
example: Use views for histogram.
franciscovalentecastro Dec 14, 2023
bb3c563
Fixed ExponentialHist to Distribution translation.
franciscovalentecastro Dec 15, 2023
3a14acb
Add more distribution metric views to example.go.
franciscovalentecastro Feb 23, 2024
e56a3b8
Fix typo.
franciscovalentecastro Feb 23, 2024
20d8ec7
Remove local dev artifacts.
franciscovalentecastro Feb 23, 2024
13c65c3
Tidy go.mod.
franciscovalentecastro Feb 23, 2024
aa41056
Update dependencies.
franciscovalentecastro Feb 23, 2024
a4b0389
Further update dependencies.
franciscovalentecastro Feb 23, 2024
76347ce
Go mod tidy.
franciscovalentecastro Feb 23, 2024
3ca23f0
Removed debuggin and unused code.
franciscovalentecastro Feb 23, 2024
f396d98
Fix example parameters and logs.
franciscovalentecastro Feb 23, 2024
83a6e6f
Use `positiveBucketCounts` for mean calculation.
franciscovalentecastro Feb 23, 2024
079b8bd
Fix linter errors.
franciscovalentecastro Feb 26, 2024
760fafa
Use `s` units instead of `ms`.
franciscovalentecastro Feb 29, 2024
ac6ebe5
Use `collector/metric.go` implementation of `exponentialHistogramPoin…
franciscovalentecastro Feb 29, 2024
047c379
Write to `workload.googleapis.com` instead of `custom.googleapis.com`
franciscovalentecastro Feb 29, 2024
f7dd87d
Add `dashboard.json` to visualize `example.go`
franciscovalentecastro Feb 29, 2024
3579361
Fix `expHistToDistribution`
franciscovalentecastro Feb 29, 2024
c4e9fd4
Use correct type `ExponentialHistogramDataPoint`.
franciscovalentecastro Feb 29, 2024
3274232
Fix usage of `math.IsNan`
franciscovalentecastro Feb 29, 2024
8eb2406
Add `TODO` for missing `[]attachments` to exemplars exporting.
franciscovalentecastro Mar 1, 2024
2d54159
Set copyright year to `2024`
franciscovalentecastro Mar 1, 2024
9a732fd
Update example/metric/exponential_histogram/example.go
franciscovalentecastro Mar 4, 2024
604f5b0
Add support for `int64` ExponentialHistogram.
franciscovalentecastro Mar 4, 2024
0bd8a8d
Pass all views once to `WithView`.
franciscovalentecastro Mar 4, 2024
1590aff
Remove `workloadMetricsPrefixFormatter`.
franciscovalentecastro Mar 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
367 changes: 367 additions & 0 deletions example/metric/exponential_histogram/dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,367 @@
{
"displayName": "Exponential Histogram",
"dashboardFilters": [],
"mosaicLayout": {
"columns": 48,
"tiles": [
{
"xPos": 17,
"width": 15,
"height": 17,
"widget": {
"title": "Linear Buckets - latency_b",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"legendTemplate": "Latency",
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_b\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"width": 17,
"height": 17,
"widget": {
"title": "Exponential Buckets - latency_a",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"legendTemplate": "Latency",
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_a\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"xPos": 32,
"width": 16,
"height": 17,
"widget": {
"title": "Default Buckets - latency_c",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"legendTemplate": "Latency",
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_c\" resource.type=\"gce_instance\" metadata.system_labels.\"name\"=\"exemplar-dev\" resource.label.\"project_id\"=\"fcovalente-dev\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"yPos": 17,
"width": 17,
"height": 16,
"widget": {
"title": "Exponential Buckets - latency_shifted_a",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_shifted_a\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"xPos": 17,
"yPos": 17,
"width": 15,
"height": 16,
"widget": {
"title": "Linear Buckets - latency_shifted_b",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_shifted_b\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"xPos": 32,
"yPos": 17,
"width": 16,
"height": 16,
"widget": {
"title": "Default Buckets - latency_shifted_c",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_shifted_c\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"yPos": 33,
"width": 17,
"height": 16,
"widget": {
"title": "Exponential Buckets - latency_multimodal_a",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_multimodal_a\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"xPos": 17,
"yPos": 33,
"width": 15,
"height": 16,
"widget": {
"title": "Linear Buckets - latency_multimodal_b",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_multimodal_b\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"xPos": 32,
"yPos": 33,
"width": 16,
"height": 16,
"widget": {
"title": "Default Buckets - latency_multimodal_c",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"breakdowns": [],
"dimensions": [],
"measures": [],
"minAlignmentPeriod": "60s",
"plotType": "HEATMAP",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [],
"perSeriesAligner": "ALIGN_DELTA"
},
"filter": "metric.type=\"workload.googleapis.com/latency_multimodal_c\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
}
]
},
"labels": {}
}
Loading