This repository was archived by the owner on Oct 3, 2023. It is now read-only.
Commit 5b851ab
authored
Use generic_task resource type when all generic labels are present (#286)
While converting an ocagent resource to a cloud resource, stackdriver
exporter looks for a set of labels that apply to a generic_task resource:
https://cloud.google.com/monitoring/api/resources#tag_generic_task
However, if it doesn't find one of the labels, it falls back to "global"
resource with just the project id label, and it works OK.
But if it does find all of the labels, it will attach them to the exported
resource, and Cloud API fails with "Unrecognized resource label" error,
because those labels do not exist on a "global" resource.
This change replaces use of global resource with generic resource
throughout stackdriver exporter code.1 parent f81d98c commit 5b851ab
2 files changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
209 | 215 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 216 | + | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
0 commit comments