Amp
This page documents function available when using the Amp
module, created with @service Amp
.
Index
Main.Amp.create_alert_manager_definition
Main.Amp.create_logging_configuration
Main.Amp.create_rule_groups_namespace
Main.Amp.create_scraper
Main.Amp.create_workspace
Main.Amp.delete_alert_manager_definition
Main.Amp.delete_logging_configuration
Main.Amp.delete_rule_groups_namespace
Main.Amp.delete_scraper
Main.Amp.delete_workspace
Main.Amp.describe_alert_manager_definition
Main.Amp.describe_logging_configuration
Main.Amp.describe_rule_groups_namespace
Main.Amp.describe_scraper
Main.Amp.describe_workspace
Main.Amp.get_default_scraper_configuration
Main.Amp.list_rule_groups_namespaces
Main.Amp.list_scrapers
Main.Amp.list_tags_for_resource
Main.Amp.list_workspaces
Main.Amp.put_alert_manager_definition
Main.Amp.put_rule_groups_namespace
Main.Amp.tag_resource
Main.Amp.untag_resource
Main.Amp.update_logging_configuration
Main.Amp.update_workspace_alias
Documentation
Main.Amp.create_alert_manager_definition
— Methodcreate_alert_manager_definition(data, workspace_id)
create_alert_manager_definition(data, workspace_id, params::Dict{String,<:Any})
The CreateAlertManagerDefinition operation creates the alert manager definition in a workspace. If a workspace already has an alert manager definition, don't use this operation to update it. Instead, use PutAlertManagerDefinition.
Arguments
data
: The alert manager definition to add. A base64-encoded version of the YAML alert manager definition file. For details about the alert manager definition, see AlertManagedDefinitionData.workspace_id
: The ID of the workspace to add the alert manager definition to.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.create_logging_configuration
— Methodcreate_logging_configuration(log_group_arn, workspace_id)
create_logging_configuration(log_group_arn, workspace_id, params::Dict{String,<:Any})
The CreateLoggingConfiguration operation creates a logging configuration for the workspace. Use this operation to set the CloudWatch log group to which the logs will be published to.
Arguments
log_group_arn
: The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist prior to calling this API.workspace_id
: The ID of the workspace to create the logging configuration for.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.create_rule_groups_namespace
— Methodcreate_rule_groups_namespace(data, name, workspace_id)
create_rule_groups_namespace(data, name, workspace_id, params::Dict{String,<:Any})
The CreateRuleGroupsNamespace operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces. Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use PutRuleGroupsNamespace.
Arguments
data
: The rules file to use in the new namespace. Contains the base64-encoded version of the YAML rules file. For details about the rule groups namespace structure, see RuleGroupsNamespaceData.name
: The name for the new rule groups namespace.workspace_id
: The ID of the workspace to add the rule groups namespace.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive."tags"
: The list of tag keys and values to associate with the rule groups namespace.
Main.Amp.create_scraper
— Methodcreate_scraper(destination, scrape_configuration, source)
create_scraper(destination, scrape_configuration, source, params::Dict{String,<:Any})
The CreateScraper operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. You can configure the scraper to control what metrics are collected, and what transformations are applied prior to sending them to your workspace. If needed, an IAM role will be created for you that gives Amazon Managed Service for Prometheus access to the metrics in your cluster. For more information, see Using roles for scraping metrics from EKS in the Amazon Managed Service for Prometheus User Guide. You cannot update a scraper. If you want to change the configuration of the scraper, create a new scraper and delete the old one. The scrapeConfiguration parameter contains the base64-encoded version of the YAML configuration file. For more information about collectors, including what metrics are collected, and how to configure the scraper, see Amazon Web Services managed collectors in the Amazon Managed Service for Prometheus User Guide.
Arguments
destination
: The Amazon Managed Service for Prometheus workspace to send metrics to.scrape_configuration
: 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
: The Amazon EKS cluster from which the scraper will collect metrics.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"alias"
: (optional) a name to associate with the scraper. This is for your use, and does not need to be unique."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.
Main.Amp.create_workspace
— Methodcreate_workspace()
create_workspace(params::Dict{String,<:Any})
Creates a Prometheus workspace. A workspace is a logical space dedicated to the storage and querying of Prometheus metrics. You can have one or more workspaces in each Region in your account.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"alias"
: An alias that you assign to this workspace to help you identify it. It does not need to be unique. Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used."clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive."kmsKeyArn"
: (optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide."tags"
: The list of tag keys and values to associate with the workspace.
Main.Amp.delete_alert_manager_definition
— Methoddelete_alert_manager_definition(workspace_id)
delete_alert_manager_definition(workspace_id, params::Dict{String,<:Any})
Deletes the alert manager definition from a workspace.
Arguments
workspace_id
: The ID of the workspace to delete the alert manager definition from.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.delete_logging_configuration
— Methoddelete_logging_configuration(workspace_id)
delete_logging_configuration(workspace_id, params::Dict{String,<:Any})
Deletes the logging configuration for a workspace.
Arguments
workspace_id
: The ID of the workspace containing the logging configuration to delete.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.delete_rule_groups_namespace
— Methoddelete_rule_groups_namespace(name, workspace_id)
delete_rule_groups_namespace(name, workspace_id, params::Dict{String,<:Any})
Deletes one rule groups namespace and its associated rule groups definition.
Arguments
name
: The name of the rule groups namespace to delete.workspace_id
: The ID of the workspace containing the rule groups namespace and definition to delete.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.delete_scraper
— Methoddelete_scraper(scraper_id)
delete_scraper(scraper_id, params::Dict{String,<:Any})
The DeleteScraper operation deletes one scraper, and stops any metrics collection that the scraper performs.
Arguments
scraper_id
: The ID of the scraper to delete.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
Main.Amp.delete_workspace
— Methoddelete_workspace(workspace_id)
delete_workspace(workspace_id, params::Dict{String,<:Any})
Deletes an existing workspace. When you delete a workspace, the data that has been ingested into it is not immediately deleted. It will be permanently deleted within one month.
Arguments
workspace_id
: The ID of the workspace to delete.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.describe_alert_manager_definition
— Methoddescribe_alert_manager_definition(workspace_id)
describe_alert_manager_definition(workspace_id, params::Dict{String,<:Any})
Retrieves the full information about the alert manager definition for a workspace.
Arguments
workspace_id
: The ID of the workspace to retrieve the alert manager definition from.
Main.Amp.describe_logging_configuration
— Methoddescribe_logging_configuration(workspace_id)
describe_logging_configuration(workspace_id, params::Dict{String,<:Any})
Returns complete information about the current logging configuration of the workspace.
Arguments
workspace_id
: The ID of the workspace to describe the logging configuration for.
Main.Amp.describe_rule_groups_namespace
— Methoddescribe_rule_groups_namespace(name, workspace_id)
describe_rule_groups_namespace(name, workspace_id, params::Dict{String,<:Any})
Returns complete information about one rule groups namespace. To retrieve a list of rule groups namespaces, use ListRuleGroupsNamespaces.
Arguments
name
: The name of the rule groups namespace that you want information for.workspace_id
: The ID of the workspace containing the rule groups namespace.
Main.Amp.describe_scraper
— Methoddescribe_scraper(scraper_id)
describe_scraper(scraper_id, params::Dict{String,<:Any})
The DescribeScraper operation displays information about an existing scraper.
Arguments
scraper_id
: The ID of the scraper to describe.
Main.Amp.describe_workspace
— Methoddescribe_workspace(workspace_id)
describe_workspace(workspace_id, params::Dict{String,<:Any})
Returns information about an existing workspace.
Arguments
workspace_id
: The ID of the workspace to describe.
Main.Amp.get_default_scraper_configuration
— Methodget_default_scraper_configuration()
get_default_scraper_configuration(params::Dict{String,<:Any})
The GetDefaultScraperConfiguration operation returns the default scraper configuration used when Amazon EKS creates a scraper for you.
Main.Amp.list_rule_groups_namespaces
— Methodlist_rule_groups_namespaces(workspace_id)
list_rule_groups_namespaces(workspace_id, params::Dict{String,<:Any})
Returns a list of rule groups namespaces in a workspace.
Arguments
workspace_id
: The ID of the workspace containing the rule groups namespaces.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"maxResults"
: The maximum number of results to return. The default is 100."name"
: Use this parameter to filter the rule groups namespaces that are returned. Only the namespaces with names that begin with the value that you specify are returned."nextToken"
: The token for the next set of items to return. You receive this token from a previous call, and use it to get the next page of results. The other parameters must be the same as the initial call. For example, if your initial request has maxResults of 10, and there are 12 rule groups namespaces to return, then your initial request will return 10 and a nextToken. Using the next token in a subsequent call will return the remaining 2 namespaces.
Main.Amp.list_scrapers
— Methodlist_scrapers()
list_scrapers(params::Dict{String,<:Any})
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.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"filters"
: (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-12 34-abcd-56ef-123456789012 If this is included, it filters the results to only the scrapers that match the filter."maxResults"
: Optional) The maximum number of scrapers to return in one ListScrapers operation. The range is 1-1000. If you omit this parameter, the default of 100 is used."nextToken"
: (Optional) The token for the next set of items to return. (You received this token from a previous call.)
Main.Amp.list_tags_for_resource
— Methodlist_tags_for_resource(resource_arn)
list_tags_for_resource(resource_arn, params::Dict{String,<:Any})
The ListTagsForResource operation returns the tags that are associated with an Amazon Managed Service for Prometheus resource. Currently, the only resources that can be tagged are workspaces and rule groups namespaces.
Arguments
resource_arn
: The ARN of the resource to list tages for. Must be a workspace or rule groups namespace resource.
Main.Amp.list_workspaces
— Methodlist_workspaces()
list_workspaces(params::Dict{String,<:Any})
Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"alias"
: If this is included, it filters the results to only the workspaces with names that start with the value that you specify here. Amazon Managed Service for Prometheus will automatically strip any blank spaces from the beginning and end of the alias that you specify."maxResults"
: The maximum number of workspaces to return per request. The default is"nextToken"
: The token for the next set of items to return. You receive this token from a previous call, and use it to get the next page of results. The other parameters must be the same as the initial call. For example, if your initial request has maxResults of 10, and there are 12 workspaces to return, then your initial request will return 10 and a nextToken. Using the next token in a subsequent call will return the remaining 2 workspaces.
Main.Amp.put_alert_manager_definition
— Methodput_alert_manager_definition(data, workspace_id)
put_alert_manager_definition(data, workspace_id, params::Dict{String,<:Any})
Updates an existing alert manager definition in a workspace. If the workspace does not already have an alert manager definition, don't use this operation to create it. Instead, use CreateAlertManagerDefinition.
Arguments
data
: The alert manager definition to use. A base64-encoded version of the YAML alert manager definition file. For details about the alert manager definition, see AlertManagedDefinitionData.workspace_id
: The ID of the workspace to update the alert manager definition in.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.put_rule_groups_namespace
— Methodput_rule_groups_namespace(data, name, workspace_id)
put_rule_groups_namespace(data, name, workspace_id, params::Dict{String,<:Any})
Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces. Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use CreateRuleGroupsNamespace. You can't use this operation to add tags to an existing rule groups namespace. Instead, use TagResource.
Arguments
data
: The new rules file to use in the namespace. A base64-encoded version of the YAML rule groups file. For details about the rule groups namespace structure, see RuleGroupsNamespaceData.name
: The name of the rule groups namespace that you are updating.workspace_id
: The ID of the workspace where you are updating the rule groups namespace.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.tag_resource
— Methodtag_resource(resource_arn, tags)
tag_resource(resource_arn, tags, params::Dict{String,<:Any})
The TagResource operation associates tags with an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
Arguments
resource_arn
: The ARN of the workspace or rule groups namespace to apply tags to.tags
: The list of tag keys and values to associate with the resource. Keys may not begin with aws:.
Main.Amp.untag_resource
— Methoduntag_resource(resource_arn, tag_keys)
untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any})
Removes the specified tags from an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces.
Arguments
resource_arn
: The ARN of the workspace or rule groups namespace.tag_keys
: The keys of the tags to remove.
Main.Amp.update_logging_configuration
— Methodupdate_logging_configuration(log_group_arn, workspace_id)
update_logging_configuration(log_group_arn, workspace_id, params::Dict{String,<:Any})
Updates the log group ARN or the workspace ID of the current logging configuration.
Arguments
log_group_arn
: The ARN of the CloudWatch log group to which the vended log data will be published.workspace_id
: The ID of the workspace to update the logging configuration for.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Main.Amp.update_workspace_alias
— Methodupdate_workspace_alias(workspace_id)
update_workspace_alias(workspace_id, params::Dict{String,<:Any})
Updates the alias of an existing workspace.
Arguments
workspace_id
: The ID of the workspace to update.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"alias"
: The new alias for the workspace. It does not need to be unique. Amazon Managed Service for Prometheus will automatically strip any blank spaces from the beginning and end of the alias that you specify."clientToken"
: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.