aws-sdk-prometheusservice 1.63.0 → 1.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-prometheusservice/client.rb +71 -10
- data/lib/aws-sdk-prometheusservice/client_api.rb +7 -0
- data/lib/aws-sdk-prometheusservice/types.rb +37 -1
- data/lib/aws-sdk-prometheusservice.rb +1 -1
- data/sig/client.rbs +4 -0
- data/sig/types.rbs +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 90a872b2beb7ae5f7161f410369f8ff6bc2690d3dddb34a43dbd7daedfdeca42
|
|
4
|
+
data.tar.gz: 575573a7f6d0c85f8c17dc1afae4ed51072dd00d0f4386458301058f833e4437
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1239b23949c21a49c92e52feac6308fa9076e4d0ab6ce8ccedb3e5314e8b374c88739292b51fda34624821cca92b8c89d702ed26be38fee176f37839ed33bd4c
|
|
7
|
+
data.tar.gz: 8737b2f27b851ba74b7cd8df66af2fa9758989578063f21dd7844369638c260f67c7261611471b99f4e57a5f46aa49a9044c62a1fd55938096ea26bbf39648f4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.64.0 (2025-11-12)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Add VPC source configuration support enabling Amazon Managed Service for Prometheus Collector to collect metrics from MSK clusters.
|
|
8
|
+
|
|
4
9
|
1.63.0 (2025-10-30)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.64.0
|
|
@@ -732,6 +732,9 @@ module Aws::PrometheusService
|
|
|
732
732
|
# with exactly one rules file. A workspace can have multiple rule groups
|
|
733
733
|
# namespaces.
|
|
734
734
|
#
|
|
735
|
+
# The combined length of a rule group namespace and a rule group name
|
|
736
|
+
# cannot exceed 721 UTF-8 bytes.
|
|
737
|
+
#
|
|
735
738
|
# Use this operation only to create new rule groups namespaces. To
|
|
736
739
|
# update an existing rule groups namespace, use
|
|
737
740
|
# `PutRuleGroupsNamespace`.
|
|
@@ -803,16 +806,18 @@ module Aws::PrometheusService
|
|
|
803
806
|
end
|
|
804
807
|
|
|
805
808
|
# The `CreateScraper` operation creates a scraper to collect metrics. A
|
|
806
|
-
# scraper pulls metrics from Prometheus-compatible sources
|
|
807
|
-
#
|
|
808
|
-
#
|
|
809
|
-
#
|
|
809
|
+
# scraper pulls metrics from Prometheus-compatible sources and sends
|
|
810
|
+
# them to your Amazon Managed Service for Prometheus workspace. You can
|
|
811
|
+
# configure scrapers to collect metrics from Amazon EKS clusters, Amazon
|
|
812
|
+
# MSK clusters, or from VPC-based sources that support DNS-based service
|
|
813
|
+
# discovery. Scrapers are flexible, and can be configured to control
|
|
814
|
+
# what metrics are collected, the frequency of collection, what
|
|
810
815
|
# transformations are applied to the metrics, and more.
|
|
811
816
|
#
|
|
812
817
|
# An IAM role will be created for you that Amazon Managed Service for
|
|
813
|
-
# Prometheus uses to access the metrics in your
|
|
818
|
+
# Prometheus uses to access the metrics in your source. You must
|
|
814
819
|
# configure this role with a policy that allows it to scrape metrics
|
|
815
|
-
# from your
|
|
820
|
+
# from your source. For Amazon EKS sources, see [Configuring your Amazon
|
|
816
821
|
# EKS cluster][1] in the *Amazon Managed Service for Prometheus User
|
|
817
822
|
# Guide*.
|
|
818
823
|
#
|
|
@@ -821,8 +826,8 @@ module Aws::PrometheusService
|
|
|
821
826
|
#
|
|
822
827
|
# When creating a scraper, the service creates a `Network Interface` in
|
|
823
828
|
# each **Availability Zone** that are passed into `CreateScraper`
|
|
824
|
-
# through subnets. These network interfaces are used to connect to
|
|
825
|
-
#
|
|
829
|
+
# through subnets. These network interfaces are used to connect to your
|
|
830
|
+
# source within the VPC for scraping metrics.
|
|
826
831
|
#
|
|
827
832
|
# <note markdown="1"> For more information about collectors, including what metrics are
|
|
828
833
|
# collected, and how to configure the scraper, see [Using an Amazon Web
|
|
@@ -850,7 +855,8 @@ module Aws::PrometheusService
|
|
|
850
855
|
# [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration
|
|
851
856
|
#
|
|
852
857
|
# @option params [required, Types::Source] :source
|
|
853
|
-
# The Amazon EKS cluster from which the scraper
|
|
858
|
+
# The Amazon EKS or Amazon Web Services cluster from which the scraper
|
|
859
|
+
# will collect metrics.
|
|
854
860
|
#
|
|
855
861
|
# @option params [required, Types::Destination] :destination
|
|
856
862
|
# The Amazon Managed Service for Prometheus workspace to send metrics
|
|
@@ -920,6 +926,46 @@ module Aws::PrometheusService
|
|
|
920
926
|
# },
|
|
921
927
|
# }
|
|
922
928
|
#
|
|
929
|
+
# @example Example: CreateScraper with generic VPC config with mandatory securityGroupIds and subnetIds
|
|
930
|
+
#
|
|
931
|
+
# resp = client.create_scraper({
|
|
932
|
+
# alias: "alias",
|
|
933
|
+
# client_token: "token",
|
|
934
|
+
# destination: {
|
|
935
|
+
# amp_configuration: {
|
|
936
|
+
# workspace_arn: "arn:aws:aps:us-west-2:123456789012:workspace/ws-ogh2u499-ce12-hg89-v6c7-123412341234",
|
|
937
|
+
# },
|
|
938
|
+
# },
|
|
939
|
+
# scrape_configuration: {
|
|
940
|
+
# configuration_blob: "blob",
|
|
941
|
+
# },
|
|
942
|
+
# source: {
|
|
943
|
+
# vpc_configuration: {
|
|
944
|
+
# security_group_ids: [
|
|
945
|
+
# "sg-abc123",
|
|
946
|
+
# ],
|
|
947
|
+
# subnet_ids: [
|
|
948
|
+
# "subnet-abc123",
|
|
949
|
+
# ],
|
|
950
|
+
# },
|
|
951
|
+
# },
|
|
952
|
+
# tags: {
|
|
953
|
+
# "exampleTag" => "exampleValue",
|
|
954
|
+
# },
|
|
955
|
+
# })
|
|
956
|
+
#
|
|
957
|
+
# resp.to_h outputs the following:
|
|
958
|
+
# {
|
|
959
|
+
# arn: "arn:aws:aps:us-west-2:123456789012:scraper/scraper-123",
|
|
960
|
+
# scraper_id: "scraper-123",
|
|
961
|
+
# status: {
|
|
962
|
+
# status_code: "CREATING",
|
|
963
|
+
# },
|
|
964
|
+
# tags: {
|
|
965
|
+
# "exampleTag" => "exampleValue",
|
|
966
|
+
# },
|
|
967
|
+
# }
|
|
968
|
+
#
|
|
923
969
|
# @example Request syntax with placeholder values
|
|
924
970
|
#
|
|
925
971
|
# resp = client.create_scraper({
|
|
@@ -933,6 +979,10 @@ module Aws::PrometheusService
|
|
|
933
979
|
# security_group_ids: ["SecurityGroupId"],
|
|
934
980
|
# subnet_ids: ["SubnetId"], # required
|
|
935
981
|
# },
|
|
982
|
+
# vpc_configuration: {
|
|
983
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
|
984
|
+
# subnet_ids: ["SubnetId"], # required
|
|
985
|
+
# },
|
|
936
986
|
# },
|
|
937
987
|
# destination: { # required
|
|
938
988
|
# amp_configuration: {
|
|
@@ -1681,6 +1731,10 @@ module Aws::PrometheusService
|
|
|
1681
1731
|
# resp.scraper.source.eks_configuration.security_group_ids[0] #=> String
|
|
1682
1732
|
# resp.scraper.source.eks_configuration.subnet_ids #=> Array
|
|
1683
1733
|
# resp.scraper.source.eks_configuration.subnet_ids[0] #=> String
|
|
1734
|
+
# resp.scraper.source.vpc_configuration.security_group_ids #=> Array
|
|
1735
|
+
# resp.scraper.source.vpc_configuration.security_group_ids[0] #=> String
|
|
1736
|
+
# resp.scraper.source.vpc_configuration.subnet_ids #=> Array
|
|
1737
|
+
# resp.scraper.source.vpc_configuration.subnet_ids[0] #=> String
|
|
1684
1738
|
# resp.scraper.destination.amp_configuration.workspace_arn #=> String
|
|
1685
1739
|
# resp.scraper.role_configuration.source_role_arn #=> String
|
|
1686
1740
|
# resp.scraper.role_configuration.target_role_arn #=> String
|
|
@@ -2167,6 +2221,10 @@ module Aws::PrometheusService
|
|
|
2167
2221
|
# resp.scrapers[0].source.eks_configuration.security_group_ids[0] #=> String
|
|
2168
2222
|
# resp.scrapers[0].source.eks_configuration.subnet_ids #=> Array
|
|
2169
2223
|
# resp.scrapers[0].source.eks_configuration.subnet_ids[0] #=> String
|
|
2224
|
+
# resp.scrapers[0].source.vpc_configuration.security_group_ids #=> Array
|
|
2225
|
+
# resp.scrapers[0].source.vpc_configuration.security_group_ids[0] #=> String
|
|
2226
|
+
# resp.scrapers[0].source.vpc_configuration.subnet_ids #=> Array
|
|
2227
|
+
# resp.scrapers[0].source.vpc_configuration.subnet_ids[0] #=> String
|
|
2170
2228
|
# resp.scrapers[0].destination.amp_configuration.workspace_arn #=> String
|
|
2171
2229
|
# resp.scrapers[0].role_configuration.source_role_arn #=> String
|
|
2172
2230
|
# resp.scrapers[0].role_configuration.target_role_arn #=> String
|
|
@@ -2506,6 +2564,9 @@ module Aws::PrometheusService
|
|
|
2506
2564
|
# groups namespace is associated with exactly one rules file. A
|
|
2507
2565
|
# workspace can have multiple rule groups namespaces.
|
|
2508
2566
|
#
|
|
2567
|
+
# The combined length of a rule group namespace and a rule group name
|
|
2568
|
+
# cannot exceed 721 UTF-8 bytes.
|
|
2569
|
+
#
|
|
2509
2570
|
# Use this operation only to update existing rule groups namespaces. To
|
|
2510
2571
|
# create a new rule groups namespace, use `CreateRuleGroupsNamespace`.
|
|
2511
2572
|
#
|
|
@@ -3022,7 +3083,7 @@ module Aws::PrometheusService
|
|
|
3022
3083
|
tracer: tracer
|
|
3023
3084
|
)
|
|
3024
3085
|
context[:gem_name] = 'aws-sdk-prometheusservice'
|
|
3025
|
-
context[:gem_version] = '1.
|
|
3086
|
+
context[:gem_version] = '1.64.0'
|
|
3026
3087
|
Seahorse::Client::Request.new(handlers, context)
|
|
3027
3088
|
end
|
|
3028
3089
|
|
|
@@ -207,6 +207,7 @@ module Aws::PrometheusService
|
|
|
207
207
|
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
|
208
208
|
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
|
209
209
|
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
|
210
|
+
VpcConfiguration = Shapes::StructureShape.new(name: 'VpcConfiguration')
|
|
210
211
|
WorkspaceAlias = Shapes::StringShape.new(name: 'WorkspaceAlias')
|
|
211
212
|
WorkspaceArn = Shapes::StringShape.new(name: 'WorkspaceArn')
|
|
212
213
|
WorkspaceConfigurationDescription = Shapes::StructureShape.new(name: 'WorkspaceConfigurationDescription')
|
|
@@ -758,8 +759,10 @@ module Aws::PrometheusService
|
|
|
758
759
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
759
760
|
|
|
760
761
|
Source.add_member(:eks_configuration, Shapes::ShapeRef.new(shape: EksConfiguration, location_name: "eksConfiguration"))
|
|
762
|
+
Source.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "vpcConfiguration"))
|
|
761
763
|
Source.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
762
764
|
Source.add_member_subclass(:eks_configuration, Types::Source::EksConfiguration)
|
|
765
|
+
Source.add_member_subclass(:vpc_configuration, Types::Source::VpcConfiguration)
|
|
763
766
|
Source.add_member_subclass(:unknown, Types::Source::Unknown)
|
|
764
767
|
Source.struct_class = Types::Source
|
|
765
768
|
|
|
@@ -854,6 +857,10 @@ module Aws::PrometheusService
|
|
|
854
857
|
|
|
855
858
|
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
|
856
859
|
|
|
860
|
+
VpcConfiguration.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, required: true, location_name: "securityGroupIds"))
|
|
861
|
+
VpcConfiguration.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "subnetIds"))
|
|
862
|
+
VpcConfiguration.struct_class = Types::VpcConfiguration
|
|
863
|
+
|
|
857
864
|
WorkspaceConfigurationDescription.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceConfigurationStatus, required: true, location_name: "status"))
|
|
858
865
|
WorkspaceConfigurationDescription.add_member(:limits_per_label_set, Shapes::ShapeRef.new(shape: LimitsPerLabelSetList, location_name: "limitsPerLabelSet"))
|
|
859
866
|
WorkspaceConfigurationDescription.add_member(:retention_period_in_days, Shapes::ShapeRef.new(shape: WorkspaceConfigurationDescriptionRetentionPeriodInDaysInteger, location_name: "retentionPeriodInDays"))
|
|
@@ -649,7 +649,8 @@ module Aws::PrometheusService
|
|
|
649
649
|
# @return [Types::ScrapeConfiguration]
|
|
650
650
|
#
|
|
651
651
|
# @!attribute [rw] source
|
|
652
|
-
# The Amazon EKS cluster from which the scraper
|
|
652
|
+
# The Amazon EKS or Amazon Web Services cluster from which the scraper
|
|
653
|
+
# will collect metrics.
|
|
653
654
|
# @return [Types::Source]
|
|
654
655
|
#
|
|
655
656
|
# @!attribute [rw] destination
|
|
@@ -2742,16 +2743,25 @@ module Aws::PrometheusService
|
|
|
2742
2743
|
# The Amazon EKS cluster from which a scraper collects metrics.
|
|
2743
2744
|
# @return [Types::EksConfiguration]
|
|
2744
2745
|
#
|
|
2746
|
+
# @!attribute [rw] vpc_configuration
|
|
2747
|
+
# The Amazon VPC configuration for the Prometheus collector when
|
|
2748
|
+
# connecting to Amazon MSK clusters. This configuration enables
|
|
2749
|
+
# secure, private network connectivity between the collector and your
|
|
2750
|
+
# Amazon MSK cluster within your Amazon VPC.
|
|
2751
|
+
# @return [Types::VpcConfiguration]
|
|
2752
|
+
#
|
|
2745
2753
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/Source AWS API Documentation
|
|
2746
2754
|
#
|
|
2747
2755
|
class Source < Struct.new(
|
|
2748
2756
|
:eks_configuration,
|
|
2757
|
+
:vpc_configuration,
|
|
2749
2758
|
:unknown)
|
|
2750
2759
|
SENSITIVE = []
|
|
2751
2760
|
include Aws::Structure
|
|
2752
2761
|
include Aws::Structure::Union
|
|
2753
2762
|
|
|
2754
2763
|
class EksConfiguration < Source; end
|
|
2764
|
+
class VpcConfiguration < Source; end
|
|
2755
2765
|
class Unknown < Source; end
|
|
2756
2766
|
end
|
|
2757
2767
|
|
|
@@ -3157,6 +3167,32 @@ module Aws::PrometheusService
|
|
|
3157
3167
|
include Aws::Structure
|
|
3158
3168
|
end
|
|
3159
3169
|
|
|
3170
|
+
# The Amazon VPC configuration that specifies the network settings for a
|
|
3171
|
+
# Prometheus collector to securely connect to Amazon MSK clusters. This
|
|
3172
|
+
# configuration includes the security groups and subnets that control
|
|
3173
|
+
# network access and placement for the collector.
|
|
3174
|
+
#
|
|
3175
|
+
# @!attribute [rw] security_group_ids
|
|
3176
|
+
# The security group IDs that control network access for the
|
|
3177
|
+
# Prometheus collector. These security groups must allow the collector
|
|
3178
|
+
# to communicate with your Amazon MSK cluster on the required ports.
|
|
3179
|
+
# @return [Array<String>]
|
|
3180
|
+
#
|
|
3181
|
+
# @!attribute [rw] subnet_ids
|
|
3182
|
+
# The subnet IDs where the Prometheus collector will be deployed. The
|
|
3183
|
+
# subnets must be in the same Amazon VPC as your Amazon MSK cluster
|
|
3184
|
+
# and have network connectivity to the cluster.
|
|
3185
|
+
# @return [Array<String>]
|
|
3186
|
+
#
|
|
3187
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/VpcConfiguration AWS API Documentation
|
|
3188
|
+
#
|
|
3189
|
+
class VpcConfiguration < Struct.new(
|
|
3190
|
+
:security_group_ids,
|
|
3191
|
+
:subnet_ids)
|
|
3192
|
+
SENSITIVE = []
|
|
3193
|
+
include Aws::Structure
|
|
3194
|
+
end
|
|
3195
|
+
|
|
3160
3196
|
# This structure contains the description of the workspace
|
|
3161
3197
|
# configuration.
|
|
3162
3198
|
#
|
data/sig/client.rbs
CHANGED
|
@@ -195,6 +195,10 @@ module Aws
|
|
|
195
195
|
cluster_arn: ::String,
|
|
196
196
|
security_group_ids: Array[::String]?,
|
|
197
197
|
subnet_ids: Array[::String]
|
|
198
|
+
}?,
|
|
199
|
+
vpc_configuration: {
|
|
200
|
+
security_group_ids: Array[::String],
|
|
201
|
+
subnet_ids: Array[::String]
|
|
198
202
|
}?
|
|
199
203
|
},
|
|
200
204
|
destination: {
|
data/sig/types.rbs
CHANGED
|
@@ -741,11 +741,14 @@ module Aws::PrometheusService
|
|
|
741
741
|
|
|
742
742
|
class Source
|
|
743
743
|
attr_accessor eks_configuration: Types::EksConfiguration
|
|
744
|
+
attr_accessor vpc_configuration: Types::VpcConfiguration
|
|
744
745
|
attr_accessor unknown: untyped
|
|
745
746
|
SENSITIVE: []
|
|
746
747
|
|
|
747
748
|
class EksConfiguration < Source
|
|
748
749
|
end
|
|
750
|
+
class VpcConfiguration < Source
|
|
751
|
+
end
|
|
749
752
|
class Unknown < Source
|
|
750
753
|
end
|
|
751
754
|
end
|
|
@@ -863,6 +866,12 @@ module Aws::PrometheusService
|
|
|
863
866
|
SENSITIVE: []
|
|
864
867
|
end
|
|
865
868
|
|
|
869
|
+
class VpcConfiguration
|
|
870
|
+
attr_accessor security_group_ids: ::Array[::String]
|
|
871
|
+
attr_accessor subnet_ids: ::Array[::String]
|
|
872
|
+
SENSITIVE: []
|
|
873
|
+
end
|
|
874
|
+
|
|
866
875
|
class WorkspaceConfigurationDescription
|
|
867
876
|
attr_accessor status: Types::WorkspaceConfigurationStatus
|
|
868
877
|
attr_accessor limits_per_label_set: ::Array[Types::LimitsPerLabelSet]
|