Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "Resource" config section to write_gcm. #200

Merged

Conversation

igorpeshansky
Copy link
Member

This would allow using the configuration to specify the exact monitored resource to send metrics against.

Example configuration would look like this:

<Plugin "write_gcm">
  <Resource "generic_node">
    location "europe-west1-b"
    namespace "my-namespace"
    node_id "12345"
  </Resource>
</Plugin>

Since this allows fully specifying the monitored resource, the previous options for partially specifying resource labels (CloudProvider, Instance, Zone, Region, Account) are effectively deprecated.

@igorpeshansky igorpeshansky requested review from a team and hsmatulisgoogle and removed request for a team May 9, 2022 20:24
src/write_gcm.c Show resolved Hide resolved
@igorpeshansky igorpeshansky merged commit 04cccf4 into stackdriver-agent-5.8.1 Jun 8, 2022
@igorpeshansky igorpeshansky deleted the igorpeshansky-resource-config branch June 8, 2022 06:11
igorpeshansky added a commit to Stackdriver/agent-packaging that referenced this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants