AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Implementation for accessing PrometheusService
Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for container metrics that makes it easier to securely monitor container environments at scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data model and query language that you use today to monitor the performance of your containerized workloads, and also enjoy improved scalability, availability, and security without having to manage the underlying infrastructure.For more information about Amazon Managed Service for Prometheus, see the Amazon Managed Service for Prometheus User Guide.
Amazon Managed Service for Prometheus includes two APIs.
Use the Amazon Web Services API described in this guide to manage Amazon Managed Service for Prometheus resources, such as workspaces, rule groups, and alert managers.
Use the Prometheus-compatible API to work within your Prometheus workspace.
Namespace: Amazon.PrometheusService
Assembly: AWSSDK.PrometheusService.dll
Version: 3.x.y.z
public class AmazonPrometheusServiceClient : AmazonServiceClient IAmazonPrometheusService, IAmazonService, IDisposable
The AmazonPrometheusServiceClient type exposes the following members
Name | Description | |
---|---|---|
AmazonPrometheusServiceClient() |
Constructs AmazonPrometheusServiceClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonPrometheusServiceClient(RegionEndpoint) |
Constructs AmazonPrometheusServiceClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonPrometheusServiceClient(AmazonPrometheusServiceConfig) |
Constructs AmazonPrometheusServiceClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonPrometheusServiceClient(AWSCredentials) |
Constructs AmazonPrometheusServiceClient with AWS Credentials |
|
AmazonPrometheusServiceClient(AWSCredentials, RegionEndpoint) |
Constructs AmazonPrometheusServiceClient with AWS Credentials |
|
AmazonPrometheusServiceClient(AWSCredentials, AmazonPrometheusServiceConfig) |
Constructs AmazonPrometheusServiceClient with AWS Credentials and an AmazonPrometheusServiceClient Configuration object. |
|
AmazonPrometheusServiceClient(string, string) |
Constructs AmazonPrometheusServiceClient with AWS Access Key ID and AWS Secret Key |
|
AmazonPrometheusServiceClient(string, string, RegionEndpoint) |
Constructs AmazonPrometheusServiceClient with AWS Access Key ID and AWS Secret Key |
|
AmazonPrometheusServiceClient(string, string, AmazonPrometheusServiceConfig) |
Constructs AmazonPrometheusServiceClient with AWS Access Key ID, AWS Secret Key and an AmazonPrometheusServiceClient Configuration object. |
|
AmazonPrometheusServiceClient(string, string, string) |
Constructs AmazonPrometheusServiceClient with AWS Access Key ID and AWS Secret Key |
|
AmazonPrometheusServiceClient(string, string, string, RegionEndpoint) |
Constructs AmazonPrometheusServiceClient with AWS Access Key ID and AWS Secret Key |
|
AmazonPrometheusServiceClient(string, string, string, AmazonPrometheusServiceConfig) |
Constructs AmazonPrometheusServiceClient with AWS Access Key ID, AWS Secret Key and an AmazonPrometheusServiceClient Configuration object. |
Name | Type | Description | |
---|---|---|---|
Config | Amazon.Runtime.IClientConfig | Inherited from Amazon.Runtime.AmazonServiceClient. | |
Paginators | Amazon.PrometheusService.Model.IPrometheusServicePaginatorFactory |
Paginators for the service |
Name | Description | |
---|---|---|
CreateAlertManagerDefinition(CreateAlertManagerDefinitionRequest) |
The |
|
CreateAlertManagerDefinitionAsync(CreateAlertManagerDefinitionRequest, CancellationToken) |
The |
|
CreateLoggingConfiguration(CreateLoggingConfigurationRequest) |
The |
|
CreateLoggingConfigurationAsync(CreateLoggingConfigurationRequest, CancellationToken) |
The |
|
CreateRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest) |
The
Use this operation only to create new rule groups namespaces. To update an existing
rule groups namespace, use |
|
CreateRuleGroupsNamespaceAsync(CreateRuleGroupsNamespaceRequest, CancellationToken) |
The
Use this operation only to create new rule groups namespaces. To update an existing
rule groups namespace, use |
|
CreateScraper(CreateScraperRequest) |
The An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your cluster. You must configure this role with a policy that allows it to scrape metrics from your cluster. For more information, see Configuring your Amazon EKS cluster in the Amazon Managed Service for Prometheus User Guide.
The For more information about collectors, including what metrics are collected, and how to configure the scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide. |
|
CreateScraperAsync(CreateScraperRequest, CancellationToken) |
The An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your cluster. You must configure this role with a policy that allows it to scrape metrics from your cluster. For more information, see Configuring your Amazon EKS cluster in the Amazon Managed Service for Prometheus User Guide.
The For more information about collectors, including what metrics are collected, and how to configure the scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide. |
|
CreateWorkspace(CreateWorkspaceRequest) |
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. |
|
CreateWorkspaceAsync(CreateWorkspaceRequest, CancellationToken) |
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. |
|
DeleteAlertManagerDefinition(DeleteAlertManagerDefinitionRequest) |
Deletes the alert manager definition from a workspace. |
|
DeleteAlertManagerDefinitionAsync(DeleteAlertManagerDefinitionRequest, CancellationToken) |
Deletes the alert manager definition from a workspace. |
|
DeleteLoggingConfiguration(DeleteLoggingConfigurationRequest) |
Deletes the logging configuration for a workspace. |
|
DeleteLoggingConfigurationAsync(DeleteLoggingConfigurationRequest, CancellationToken) |
Deletes the logging configuration for a workspace. |
|
DeleteRuleGroupsNamespace(DeleteRuleGroupsNamespaceRequest) |
Deletes one rule groups namespace and its associated rule groups definition. |
|
DeleteRuleGroupsNamespaceAsync(DeleteRuleGroupsNamespaceRequest, CancellationToken) |
Deletes one rule groups namespace and its associated rule groups definition. |
|
DeleteScraper(DeleteScraperRequest) |
The |
|
DeleteScraperAsync(DeleteScraperRequest, CancellationToken) |
The |
|
DeleteWorkspace(DeleteWorkspaceRequest) |
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.
|
|
DeleteWorkspaceAsync(DeleteWorkspaceRequest, CancellationToken) |
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.
|
|
DescribeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest) |
Retrieves the full information about the alert manager definition for a workspace. |
|
DescribeAlertManagerDefinitionAsync(DescribeAlertManagerDefinitionRequest, CancellationToken) |
Retrieves the full information about the alert manager definition for a workspace. |
|
DescribeLoggingConfiguration(DescribeLoggingConfigurationRequest) |
Returns complete information about the current logging configuration of the workspace. |
|
DescribeLoggingConfigurationAsync(DescribeLoggingConfigurationRequest, CancellationToken) |
Returns complete information about the current logging configuration of the workspace. |
|
DescribeRuleGroupsNamespace(DescribeRuleGroupsNamespaceRequest) |
Returns complete information about one rule groups namespace. To retrieve a list of
rule groups namespaces, use |
|
DescribeRuleGroupsNamespaceAsync(DescribeRuleGroupsNamespaceRequest, CancellationToken) |
Returns complete information about one rule groups namespace. To retrieve a list of
rule groups namespaces, use |
|
DescribeScraper(DescribeScraperRequest) |
The |
|
DescribeScraperAsync(DescribeScraperRequest, CancellationToken) |
The |
|
DescribeWorkspace(DescribeWorkspaceRequest) |
Returns information about an existing workspace. |
|
DescribeWorkspaceAsync(DescribeWorkspaceRequest, CancellationToken) |
Returns information about an existing workspace. |
|
DetermineServiceOperationEndpoint(AmazonWebServiceRequest) |
Returns the endpoint that will be used for a particular request. |
|
Dispose() | Inherited from Amazon.Runtime.AmazonServiceClient. | |
GetDefaultScraperConfiguration(GetDefaultScraperConfigurationRequest) |
The |
|
GetDefaultScraperConfigurationAsync(GetDefaultScraperConfigurationRequest, CancellationToken) |
The |
|
ListRuleGroupsNamespaces(ListRuleGroupsNamespacesRequest) |
Returns a list of rule groups namespaces in a workspace. |
|
ListRuleGroupsNamespacesAsync(ListRuleGroupsNamespacesRequest, CancellationToken) |
Returns a list of rule groups namespaces in a workspace. |
|
ListScrapers(ListScrapersRequest) |
The |
|
ListScrapersAsync(ListScrapersRequest, CancellationToken) |
The |
|
ListTagsForResource(ListTagsForResourceRequest) |
The |
|
ListTagsForResourceAsync(ListTagsForResourceRequest, CancellationToken) |
The |
|
ListWorkspaces(ListWorkspacesRequest) |
Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted. |
|
ListWorkspacesAsync(ListWorkspacesRequest, CancellationToken) |
Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted. |
|
PutAlertManagerDefinition(PutAlertManagerDefinitionRequest) |
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 |
|
PutAlertManagerDefinitionAsync(PutAlertManagerDefinitionRequest, CancellationToken) |
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 |
|
PutRuleGroupsNamespace(PutRuleGroupsNamespaceRequest) |
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
You can't use this operation to add tags to an existing rule groups namespace. Instead,
use |
|
PutRuleGroupsNamespaceAsync(PutRuleGroupsNamespaceRequest, CancellationToken) |
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
You can't use this operation to add tags to an existing rule groups namespace. Instead,
use |
|
TagResource(TagResourceRequest) |
The
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. To remove a tag, use |
|
TagResourceAsync(TagResourceRequest, CancellationToken) |
The
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. To remove a tag, use |
|
UntagResource(UntagResourceRequest) |
Removes the specified tags from an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are rule groups namespaces, scrapers, and workspaces. |
|
UntagResourceAsync(UntagResourceRequest, CancellationToken) |
Removes the specified tags from an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are rule groups namespaces, scrapers, and workspaces. |
|
UpdateLoggingConfiguration(UpdateLoggingConfigurationRequest) |
Updates the log group ARN or the workspace ID of the current logging configuration. |
|
UpdateLoggingConfigurationAsync(UpdateLoggingConfigurationRequest, CancellationToken) |
Updates the log group ARN or the workspace ID of the current logging configuration. |
|
UpdateScraper(UpdateScraperRequest) |
Updates an existing scraper. You can't use this function to update the source from which the scraper is collecting metrics. To change the source, delete the scraper and create a new one. |
|
UpdateScraperAsync(UpdateScraperRequest, CancellationToken) |
Updates an existing scraper. You can't use this function to update the source from which the scraper is collecting metrics. To change the source, delete the scraper and create a new one. |
|
UpdateWorkspaceAlias(UpdateWorkspaceAliasRequest) |
Updates the alias of an existing workspace. |
|
UpdateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest, CancellationToken) |
Updates the alias of an existing workspace. |
Name | Description | |
---|---|---|
AfterResponseEvent | Inherited from Amazon.Runtime.AmazonServiceClient. | |
BeforeRequestEvent | Inherited from Amazon.Runtime.AmazonServiceClient. | |
ExceptionEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5