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

New Datasource: circonus_broker #27

Open
radeksimko opened this issue Feb 19, 2019 · 0 comments
Open

New Datasource: circonus_broker #27

radeksimko opened this issue Feb 19, 2019 · 0 comments

Comments

@radeksimko
Copy link
Contributor

User shouldn't have to look up numeric ID of a broker and codify it in the config, e.g. in circonus_check.

It would be great to have a data source which can look up broker's ID, so the user can reference it like this:

data "circonus_broker" "london" {
  filter {
    key = "cn"
    value = "uk1-1.noit.circonus.net"
  }
}

resource "circonus_check" "consul_server" {
  active = true
  name = "radek-test"
  period = "60s"

  collector {
    id = "${data.circonus_broker.london.id}"
  }
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant