wasfree / terraform-provider-uptrends Goto Github PK
View Code? Open in Web Editor NEWTerraform Uptrends provider
License: Mozilla Public License 2.0
Terraform Uptrends provider
License: Mozilla Public License 2.0
Terraform v1.1.0
on darwin_amd64
resource "uptrends_monitor_web" "testing-api" {
name = "api"
check_interval = 2
notes = "Managed by Terraform"
primary_checkpoints_only = true
type = "Https"
url = "https://www.google.com/"
expected_http_status_code = 200
selected_checkpoints {
checkpoints = ["Frankfurt"]
}
}
Plan: https://gist.github.com/GeorgeGlarakis/c3fba7f9e3cb0ff523771a7ed6d8ed50
Apply: https://gist.github.com/GeorgeGlarakis/847742d9bc7c265721fc59b450b35fbb
What should have happened?
Accept the provided checkpoint.
What actually happened?
Returns an error when a checkpoint is selected.
terraform init
terraform plan
terraform apply
Hi there,
% terraform -v
Terraform v1.5.2
Please list the resources as a list, for example:
resource "uptrends_monitor_web" "test" {
type = "Https"
name = "Google Test"
url = "https://www.google.com"
check_interval = 5
primary_checkpoints_only = true
generate_alert = false
expected_http_status_code = 200
match_pattern {
is_positive = true
pattern = "Some text here"
}
selected_checkpoints {
...
}
}
Also, the docs for match_pattern do not match what is required to be passed, e.g.
Docs
match_pattern = "blah"
Required
match_pattern {
is_positive = true
pattern = "Some text here"
}
Please list the steps required to reproduce the issue, for example:
terraform apply
Terraform v1.5.1
on darwin_arm64
resource "uptrends_monitor_web" "resource_name" {
name = var.web-name
type = "Https"
url = var.web-url
notes = var.default-notes
check_interval = var.check-interval
alert_on_load_time_limit_1 = true
load_time_limit_1 = var.load-time-limit-1
alert_on_load_time_limit_2 = true
load_time_limit_2 = var.load-time-limit-2
alert_on_min_bytes = var.alert-on-min-bytes
min_bytes = var.min-bytes
#expected_http_status_code = 0
user_agent = var.user-agent
auth_type = var.auth-type
primary_checkpoints_only = true
match_pattern {
pattern = var.match-pattern
is_positive = true
}
selected_checkpoints {
exclude_locations = ["Moscow", "Novosibirsk", "Saint Petersburg"]
}
request_headers {
name = var.header-name-1
value = var.header-value-1
}
request_headers {
name = var.header-name-2
value = var.header-value-2
}
}
variable "web-name" {
description = "Name of service"
}
variable "web-url" {
description = "URL of service to be monitored"
}
variable "default-notes" {
description = "Description to add to web monitor"
default = "Managed by Terraform"
}
variable "match-pattern" {
description = "Phrase used when scanning site to verify availability(?)"
default = ""
}
variable "check-interval" {
description = "Frequency (in minutes) to poll site"
default = "1"
}
variable "load-time-limit-1" {
description = "Level 1 trigger alert time (in ms)"
default = "10000" #10 seconds
}
variable "load-time-limit-2" {
description = "Level 2 trigger alert time (in ms)"
default = "25000" #10 seconds
}
variable "alert-on-min-bytes" {
description = "Alert when data received is less than X bytes?"
default = "true"
}
variable "min-bytes" {
description = "How many bytes minimum should be returned?"
default = "1024"
}
variable "user-agent" {
description = "What browser user agent should be used?"
default = "chrome108"
}
variable "auth-type" {
description = "Authentication needed?"
default = "None"
}
variable "header-name-1" {
default = ""
}
variable "header-name-2" {
default = ""
}
variable "header-value-1" {
default = ""
}
variable "header-value-2" {
default = ""
}
web-name = "API"
web-url = "https://masked"
https://gist.github.com/rknightion/4a7fee0b05ccbe4cfdd6c5131935cf86
It removed previously added request_headers
500 sever error
tf apply. Is happening across all our monitors
The headers were added in a previous run without issue. It's only now trying to remove them again that the error is happening
Hi,
we just noticed that while we can create a uptrends_monitor_group
resource, there doesn't seem to be a way to actually link monitors to these groups? Is this something that's planned? Are you accepting PRs?
Thanks!
Terraform v1.1.0
on darwin_amd64
I haven't tried with a different resource.
resource "uptrends_monitor_web" "testing-api" {
name = "api"
check_interval = 2
notes = "Managed by Terraform"
primary_checkpoints_only = true
type = "Https"
mode = "Development"
url = "https://www.google.com/"
expected_http_status_code = 200
}
https://gist.github.com/GeorgeGlarakis/48872a89c7e0f49e3e42db6aa4e1ee57
https://gist.github.com/GeorgeGlarakis/6023335c4c4fb09aa140093ca19149bf
What should have happened?
It should have been accepted the mode "Development".
What actually happened?
Throws an error without any specific explanation and turns out that it does not accept other modes than "Production".
Please list the steps required to reproduce the issue, for example:
terraform init
terraform plan
terraform apply
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.