* Rewrite angular segments for filter and group by in react * wip: refactoring * Update metric find queries * Remove old maps used to create labels - use one map for all types instead * Use value as label (again) for filters ang groupby * Remove old filter * Remove not used code * Fixes after pr feedback * Fix broken tests and add new metadata tests * Add index file to make imports cleaner * Cleanup. Remove old angular filter code * Fix broken tests * Use type switching instead of if statements * Use globals for regex * Updates after pr feedback * Make sure it's possible to filter using the same key multiple times * Replace metric select with segment component * Pass template vars as props * Refactor meta labels code * Reorder template variables * Fix broken tests * Reset metric value when changing service * Fix lint issue. * Make tests independant of element order * Include kubernetes.io in regex * Add instruction in help section
79 lines
1.7 KiB
JSON
79 lines
1.7 KiB
JSON
{
|
|
"timeSeries": [{
|
|
"metric": {
|
|
"type": "compute.googleapis.com/firewall/dropped_bytes_count"
|
|
},
|
|
"resource": {
|
|
"type": "gce_instance",
|
|
"labels": {
|
|
"instance_id": "114250375703598695",
|
|
"project_id": "raintank-dev"
|
|
}
|
|
},
|
|
"metricKind": "DELTA",
|
|
"valueType": "INT64",
|
|
"metadata": {
|
|
"systemLabels": {
|
|
"region": "us-west1",
|
|
"name": "diana-debian9",
|
|
"test": ["value1", "value2"],
|
|
"spot_instance": false
|
|
},
|
|
"userLabels": {
|
|
"name": "name1",
|
|
"region": "region1"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"metric": {
|
|
"type": "compute.googleapis.com/firewall/dropped_bytes_count"
|
|
},
|
|
"resource": {
|
|
"type": "gce_instance",
|
|
"labels": {
|
|
"instance_id": "2268399396335228490",
|
|
"project_id": "raintank-dev"
|
|
}
|
|
},
|
|
"metricKind": "DELTA",
|
|
"valueType": "INT64",
|
|
"metadata": {
|
|
"systemLabels": {
|
|
"region": "us-west1",
|
|
"name": "diana-ubuntu1910",
|
|
"test": ["value1", "value2","value3"],
|
|
"spot_instance": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"metric": {
|
|
"type": "compute.googleapis.com/firewall/dropped_bytes_count"
|
|
},
|
|
"resource": {
|
|
"type": "gce_instance",
|
|
"labels": {
|
|
"instance_id": "2390486324245305300",
|
|
"project_id": "raintank-dev"
|
|
}
|
|
},
|
|
"metricKind": "DELTA",
|
|
"valueType": "INT64",
|
|
"metadata": {
|
|
"systemLabels": {
|
|
"name": "premium-plugin-staging",
|
|
"region": "us-central1",
|
|
"test": ["value1", "value2","value4", "value5"],
|
|
"test2": ["testvalue"],
|
|
"spot_instance": true
|
|
},
|
|
"userLabels": {
|
|
"name": "name3",
|
|
"region": "region3"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|