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

Support attach and detach exporters from service #188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alevy713
Copy link
Contributor

@alevy713 alevy713 commented Apr 18, 2024

This adds support for attach and detaching exporters from service. This is supported using two new fields on the service resource, metric_exporter_id and log_exporter_id. This change also adds a data source to import existing exporters by name.

Issues

@alevy713 alevy713 force-pushed the aaron/attach_detatch_exporter branch 2 times, most recently from 64da386 to a1e3c87 Compare April 23, 2024 14:18
@alevy713 alevy713 marked this pull request as ready for review April 23, 2024 14:56
@alevy713 alevy713 requested review from a team as code owners April 23, 2024 14:56
This adds support for attach and detaching exporters from service. This is supported using two new fields on the service resource, metric_exporter_id and log_exporter_id. This change also adds a data source to import existing exporters by name.
@alevy713 alevy713 force-pushed the aaron/attach_detatch_exporter branch from a1e3c87 to 51882d3 Compare April 23, 2024 14:57

### Required

- `name` (String) The name of this exporter. Exporter names must be unique in order to manage them using Terraform.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we can have exporters with the same name, this isn't right
There is no issue with having two exporters with the same name since they're managed (ie attached) using the ids

Copy link
Contributor Author

@alevy713 alevy713 Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was an internal meeting where we decided to go forward with import by name, otherwise we'll have to start showing IDs in the UI. This seems similar to have VPC works? It also fetches VPCs by name and I don't see VPC IDs in the UI

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes but names are unique for vpc by design

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the solution you're thinking of to show IDs in the UI?

internal/provider/service_resource.go Show resolved Hide resolved
internal/client/graphql.go Show resolved Hide resolved
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.

Support attaching and detaching exporters using Terraform
3 participants