aws.amp.list_scrapers
Example SQL Queries
SELECT * FROMaws.amp.list_scrapers;Description
The ListScrapers operation lists all of the scrapers in your account. This includes scrapers being created or deleted. You can optionally filter the returned list.
Table Definition
| Column Name | Column Data Type |
|---|---|
| filters Input Column (Optional) A list of key-value pairs to filter the list of scrapers returned. Keys include status, sourceArn, destinationArn, and alias. Filters on the same key are OR'd together, and filters on different keys are AND'd together. For example, status=ACTIVE&status=CREATING&alias=Test, will return all scrapers that have the alias Test, and are either in status ACTIVE or CREATING. To find all active scrapers that are sending metrics to a specific Amazon Managed Service for Prometheus workspace, you would use the ARN of the workspace in a query: status=ACTIVE&destinationArn=arn:aws:aps:us-east-1:123456789012:workspace/ws-example1-1234-abcd-56ef-123456789012 If this is included, it filters the results to only the scrapers that match the filter. | MAP(VARCHAR, VARCHAR[]) |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| alias (Optional) A name associated with the scraper. | VARCHAR |
| arn The Amazon Resource Name (ARN) of the scraper. | VARCHAR |
| created_at The date and time that the scraper was created. | TIMESTAMP_S |
| destination The Amazon Managed Service for Prometheus workspace the scraper sends metrics to. | STRUCT( |
Show child fields
| |
| last_modified_at The date and time that the scraper was last modified. | TIMESTAMP_S |
| role_arn The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf. | VARCHAR |
| scraper_id The ID of the scraper. | VARCHAR |
| source The Amazon EKS cluster from which the scraper collects metrics. | STRUCT( |
Show child fields
| |
| status A structure that contains the current status of the scraper. | STRUCT( |
Show child fields
| |
| status_reason If there is a failure, the reason for the failure. | VARCHAR |
| tags (Optional) The list of tag keys and values associated with the scraper. | MAP(VARCHAR, VARCHAR) |