-
Notifications
You must be signed in to change notification settings - Fork 2
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
RFE: Add Resource for Telemetry Collector #1034
Comments
Hi @gneville-ot, thank you for opening this issue. Indeed, there's no terraform resource for instantiating a collector. As it happens, I created a collector using terraform for the first time yesterday using the low-level The The The configuration I used looked like this: resource "apstra_raw_json" "collector" {
url = "/api/telemetry/collectors"
id = local.collector_name
payload = jsonencode({
"collectors" = [
{
"cli" = "show loop-detect enhanced interface"
"platform" = {
"family" = "junos,junos-ex,junos-qfx"
"model" = ""
"os_type" = "junos"
"os_version" = "22.2r2"
}
"query" = {
"accessors" = {
"LocalIF" = "/loop-detect-enhanced-interface-information/loop-detect-enhanced-interface-entry/ld-interface-name"
"RemoteHost" = "/loop-detect-enhanced-interface-information/loop-detect-enhanced-interface-entry/ld-remote-host"
"RemoteIF" = "/loop-detect-enhanced-interface-information/loop-detect-enhanced-interface-entry/ld-remote-interface"
"value" = "/loop-detect-enhanced-interface-information/loop-detect-enhanced-interface-entry/ld-interface-state"
}
"filter" = ""
"keys" = {
"LocalIF" = "LocalIF"
"RemoteHost" = "RemoteHost"
"RemoteIF" = "RemoteIF"
}
"value" = "value"
}
"relaxed_schema_validation" = true
"source_type" = "cli"
},
]
"relaxed_schema_validation" = true
"service_name" = local.collector_name
})
} I'll leave this issue open until we've got a proper resource for telemetry collectors. |
Add Resource for Telemetry Collector
There is currently a service registry
apstra_telemetry_service_registry_entry
resource but no collector resource.The text was updated successfully, but these errors were encountered: