scraper_logging_configurations
Creates, updates, deletes, gets or lists a scraper_logging_configurations resource.
Overview
| Name | scraper_logging_configurations |
| Type | Resource |
| Id | aws.amp.scraper_logging_configurations |
Fields
The following fields are returned by SELECT queries:
- describe_scraper_logging_configuration
| Name | Datatype | Description |
|---|---|---|
logging_destination | object | The destination where scraper logs are sent. |
modified_at | string (date-time) | The date and time when the logging configuration was last modified. |
scraper_components | array | The list of scraper components configured for logging. |
scraper_id | string | A scraper ID. (pattern: <code>[0-9A-Za-z][-.0-9A-Z_a-z]*</code>) |
status | object | The status of the scraper logging configuration. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_scraper_logging_configuration | select | scraper_id, region | Describes the logging configuration for a Amazon Managed Service for Prometheus scraper. | |
update_scraper_logging_configuration | update | scraper_id, region, loggingDestination | Updates the logging configuration for a Amazon Managed Service for Prometheus scraper. | |
delete_scraper_logging_configuration | delete | scraper_id, region | clientToken | Deletes the logging configuration for a Amazon Managed Service for Prometheus scraper. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
scraper_id | string | The ID of the scraper whose logging configuration will be deleted. |
clientToken | string | A unique, case-sensitive identifier that you provide to ensure the request is processed exactly once. |
SELECT examples
- describe_scraper_logging_configuration
Describes the logging configuration for a Amazon Managed Service for Prometheus scraper.
SELECT
logging_destination,
modified_at,
scraper_components,
scraper_id,
status
FROM aws.amp.scraper_logging_configurations
WHERE scraper_id = '{{ scraper_id }}' -- required
AND region = '{{ region }}' -- required
;
UPDATE examples
- update_scraper_logging_configuration
Updates the logging configuration for a Amazon Managed Service for Prometheus scraper.
UPDATE aws.amp.scraper_logging_configurations
SET
loggingDestination = '{{ loggingDestination }}',
scraperComponents = '{{ scraperComponents }}'
WHERE
scraper_id = '{{ scraper_id }}' --required
AND region = '{{ region }}' --required
AND loggingDestination = '{{ loggingDestination }}' --required
RETURNING
status;
DELETE examples
- delete_scraper_logging_configuration
Deletes the logging configuration for a Amazon Managed Service for Prometheus scraper.
DELETE FROM aws.amp.scraper_logging_configurations
WHERE scraper_id = '{{ scraper_id }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;