terraform-provider-stackitp.../docs/resources/argus_scrapeconfig.md
Henrique Santos 9d11098102
Improve region details (#90)
* Make client config error message more clear

* Add missing log

* Add region detail to resource/data source description

* Generate docs

* Remove resourcemanager using region

* Apply changes to MongoDBFlex user

* Generate docs

* Fix wrong description

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-17 16:02:13 +01:00

2.4 KiB

page_title subcategory description
stackit_argus_scrapeconfig Resource - stackit Argus scrape config resource schema. Must have a region specified in the provider configuration.

stackit_argus_scrapeconfig (Resource)

Argus scrape config resource schema. Must have a region specified in the provider configuration.

Example Usage

resource "stackit_argus_scrapeconfig" "example" {
  project_id   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  instance_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name         = "example-job"
  metrics_path = "/my-metrics"
  saml2 = {
    enable_url_parameters = true
  }
  targets = [
    {
      urls = ["url1", "urls2"]
      labels = {
        "url1" = "dev"
      }
    }
  ]
}

Schema

Required

  • instance_id (String) Argus instance ID to which the scraping job is associated.
  • metrics_path (String) Specifies the job scraping url path. E.g. /metrics.
  • name (String) Specifies the name of the scraping job.
  • project_id (String) STACKIT project ID to which the scraping job is associated.
  • targets (Attributes List) The targets list (specified by the static config). (see below for nested schema)

Optional

  • basic_auth (Attributes) A basic authentication block. (see below for nested schema)
  • saml2 (Attributes) A SAML2 configuration block. (see below for nested schema)
  • scheme (String) Specifies the http scheme. E.g. https.
  • scrape_interval (String) Specifies the scrape interval as duration string. E.g. 5m.
  • scrape_timeout (String) Specifies the scrape timeout as duration string. E.g.2m.

Read-Only

  • id (String) Terraform's internal resource ID. It is structured as "project_id,instance_id,name".

Nested Schema for targets

Required:

  • urls (List of String) Specifies target URLs.

Optional:

  • labels (Map of String) Specifies labels.

Nested Schema for basic_auth

Required:

  • password (String, Sensitive) Specifies basic auth password.
  • username (String) Specifies basic auth username.

Nested Schema for saml2

Optional:

  • enable_url_parameters (Boolean) Are URL parameters be enabled?