Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Support Builtin Events as a data source e.g. for built in events #86

Closed
shashank-Jain-T-M opened this issue Feb 2, 2021 · 5 comments
Closed
Assignees
Labels
feature New feature or request
Milestone

Comments

@shashank-Jain-T-M
Copy link

We wanted to add builtin events that exist in instana to the alerts that are managed by terraform.
as i could see there is no entity to add via DFQ
So can you help me with a way to add builtin events for alerts created terraform

@gessnerfl gessnerfl self-assigned this Feb 2, 2021
@gessnerfl gessnerfl added feature New feature or request question Further information is requested labels Feb 2, 2021
@gessnerfl
Copy link
Owner

@shashank-Jain-T-M: So far there is no native implementation for built in events available. I will consider this as a feature request. Built in events will be provided as a data source in future.

For the time being you could query the id of the builtin event manually through the API ( https://<your-account>.instana.io/api/events/settings/event-specifications/built-in) and use the ID in the terraform code. This is not nice but can be used as a workaround until the data source is available.

@shashank-Jain-T-M
Copy link
Author

shashank-Jain-T-M commented Feb 4, 2021

@gessnerfl I have got the Id for that event.
but how do i add that in my terraform code, as DFQ(entity.event.id:)?
This step need to be known if available.

@gessnerfl
Copy link
Owner

@shashank-Jain-T-M
My understanding is that you want to configure built in events in alerts. Alerts are configured in the terraform instana provider through the resource instana_alerting_config. In this resource you can either configure event types or specific events (field event_filter_rule_ids). The field contains the ID of custom and/or builtin events. You can enter the id in this list. For sure you can also mix this with references to fields of resources (such as custom event configurations).
Hope this helps.

@gessnerfl gessnerfl changed the title Need to add Builtin Events for terraform managed alerts Support Builtin Events as a data source e.g. for built in events Feb 8, 2021
gessnerfl added a commit that referenced this issue Feb 8, 2021
gessnerfl added a commit that referenced this issue Feb 9, 2021
gessnerfl added a commit that referenced this issue Feb 9, 2021
@gessnerfl
Copy link
Owner

Feature will be released with the upcoming release 0.11.0. Changes already merged to master.

@gessnerfl gessnerfl added this to the 0.11.0 milestone Feb 9, 2021
@gessnerfl
Copy link
Owner

Release 0.11.0 is now available

@gessnerfl gessnerfl removed the question Further information is requested label Feb 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants