View source: R/prometheusservice_operations.R
| prometheusservice_create_scraper | R Documentation |
Creates a scraper to collect metrics from Prometheus-compatible sources. The scraper sends the collected metrics to Amazon Managed Service for Prometheus workspaces or CloudWatch datasets. You can configure scrapers to collect metrics from Amazon EKS clusters, Amazon MSK clusters, or from VPC-based sources that support DNS-based service discovery. Scrapers are flexible. You can configure a scraper to control which metrics to collect, the frequency of collection, which transformations to apply to the metrics, and more.
See https://www.paws-r-sdk.com/docs/prometheusservice_create_scraper/ for full documentation.
prometheusservice_create_scraper(
alias = NULL,
scrapeConfiguration,
source,
destination,
roleConfiguration = NULL,
clientToken = NULL,
tags = NULL,
exporters = NULL
)
alias |
(optional) An alias to associate with the scraper. This is for your use, and does not need to be unique. |
scrapeConfiguration |
[required] The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide. |
source |
[required] The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics. |
destination |
[required] The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets. |
roleConfiguration |
Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts. |
clientToken |
(Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request. |
tags |
(Optional) The list of tag keys and values to associate with the scraper. |
exporters |
The exporter configurations for the scraper. You can configure at most one Amazon OpenSearch Service domain. If you don't specify a value, the scraper is created without an exporter configuration. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.