Managed Prometheus

6 resource kinds. Generated from the operator's CRD schemas.

API Group: aws.konfig.io/v1alpha1

PrometheusAlertManagerDefinition # GA

PrometheusAlertManagerDefinition is the Schema for managing alert manager definitions in Amazon Managed Prometheus workspaces.

kubectl get prometheusalertmanagerdefinitions · example on GitHub

Example

# PrometheusAlertManagerDefinition — Managed Prometheus
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/amp.html#prometheusalertmanagerdefinition
apiVersion: aws.konfig.io/v1alpha1
kind: PrometheusAlertManagerDefinition
metadata:
  name: example-prometheusalertmanagerdefinition
  namespace: default
spec:
  definition: example
  providerRef:
    name: example-prometheusalertmanagerdefinition
    region: us-east-1
  workspaceRef:
    name: example-prometheusalertmanagerdefinition

Spec

FieldTypeRequiredDescription
definitionstringyesDefinition is the alert manager definition, as a YAML string.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
workspaceRefobjectyesWorkspaceRef references the Prometheus workspace holding the definition.
workspaceRef.namestring—Name of a PrometheusWorkspace CR in the same namespace.
workspaceRef.workspaceIdstring—WorkspaceID is a direct AWS workspace ID (ws-...), bypassing CR lookup.

Status

FieldTypeRequiredDescription
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.
workspaceIdstring—WorkspaceID is the resolved AWS workspace ID the definition was created in.

PrometheusAnomalyDetector # CLOUD CONTROL · AWS::APS::AnomalyDetector

PrometheusAnomalyDetector manages AWS::APS::AnomalyDetector through the AWS Cloud Control API.

kubectl get prometheusanomalydetectors · example on GitHub

Example

# PrometheusAnomalyDetector — Managed Prometheus
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/amp.html#prometheusanomalydetector
apiVersion: aws.konfig.io/v1alpha1
kind: PrometheusAnomalyDetector
metadata:
  name: example-prometheusanomalydetector
  namespace: default
spec:
  alias: example
  configuration:
    randomCutForest:
      ignoreNearExpectedFromAbove:
        amount: 1
        ratio: 1
      ignoreNearExpectedFromBelow:
        amount: 1
        ratio: 1
      query: example
      sampleSize: 256
      shingleSize: 2
  evaluationIntervalInSeconds: 300
  labels:
  - key: example
    value: example
  missingDataAction:
    markAsAnomaly: false
    skip: false
  providerRef:
    name: example-prometheusanomalydetector
    region: us-east-1
  tags:
  - key: example
    value: example
  workspace: example

Spec

FieldTypeRequiredDescription
aliasstringyesThe AnomalyDetector alias.
configurationobjectyesDetermines the anomaly detector's algorithm and its configuration.
configuration.randomCutForestobjectyesPrometheusAnomalyDetectorRandomCutForestConfiguration is a nested property type of AWS::APS::AnomalyDetector.
configuration.randomCutForest.ignoreNearExpectedFromAboveobject—PrometheusAnomalyDetectorRandomCutForestConfigurationIgnoreNearExpectedFromAbove is a nested property type of AWS::APS::AnomalyDetector.
configuration.randomCutForest.ignoreNearExpectedFromAbove.amountnumber—
configuration.randomCutForest.ignoreNearExpectedFromAbove.rationumber—
configuration.randomCutForest.ignoreNearExpectedFromBelowobject—PrometheusAnomalyDetectorRandomCutForestConfigurationIgnoreNearExpectedFromBelow is a nested property type of AWS::APS::AnomalyDetector.
configuration.randomCutForest.ignoreNearExpectedFromBelow.amountnumber—
configuration.randomCutForest.ignoreNearExpectedFromBelow.rationumber—
configuration.randomCutForest.querystringyes
configuration.randomCutForest.sampleSizeinteger—
configuration.randomCutForest.shingleSizeinteger—
evaluationIntervalInSecondsinteger—The AnomalyDetector period of detection and metric generation.
labelsarray<object>—An array of key-value pairs to provide meta-data.
labels[].keystringyes
labels[].valuestringyes
missingDataActionobject—The action to perform when running the expression returns no data.
missingDataAction.markAsAnomalyboolean—
missingDataAction.skipboolean—
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
tagsarray<object>—An array of key-value pairs to apply to this resource.
tags[].keystringyes
tags[].valuestringyes
workspacestringyesRequired to identify a specific APS Workspace associated with this Anomaly Detector.

Status

FieldTypeRequiredDescription
arnstring—The AnomalyDetector ARN.
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.

PrometheusResourcePolicy # CLOUD CONTROL · AWS::APS::ResourcePolicy

PrometheusResourcePolicy manages AWS::APS::ResourcePolicy through the AWS Cloud Control API.

kubectl get prometheusresourcepolicies · example on GitHub

Example

# PrometheusResourcePolicy — Managed Prometheus
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/amp.html#prometheusresourcepolicy
apiVersion: aws.konfig.io/v1alpha1
kind: PrometheusResourcePolicy
metadata:
  name: example-prometheusresourcepolicy
  namespace: default
spec:
  policyDocument: '{"Version": "2012-10-17", "Statement": [{"Effect": "Allow", "Action": ["s3:GetObject"],
    "Resource": "*"}]}'
  providerRef:
    name: example-prometheusresourcepolicy
    region: us-east-1
  workspaceArn: arn:aws:iam::123456789012:role/example-role

Spec

FieldTypeRequiredDescription
policyDocumentstringyesThe JSON to use as the Resource-based Policy.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
workspaceArnstringyesThe Arn of an APS Workspace that the PolicyDocument will be attached to.

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.

PrometheusRuleGroupsNamespace # GA

PrometheusRuleGroupsNamespace is the Schema for managing rule groups namespaces in Amazon Managed Prometheus workspaces.

kubectl get prometheusrulegroupsnamespaces · example on GitHub

Example

# PrometheusRuleGroupsNamespace — Managed Prometheus
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/amp.html#prometheusrulegroupsnamespace
apiVersion: aws.konfig.io/v1alpha1
kind: PrometheusRuleGroupsNamespace
metadata:
  name: example-prometheusrulegroupsnamespace
  namespace: default
spec:
  data: example
  name: example-prometheusrulegroupsnamespace
  providerRef:
    name: example-prometheusrulegroupsnamespace
    region: us-east-1
  tags:
    environment: dev
    team: platform
  workspaceRef:
    name: example-prometheusrulegroupsnamespace

Spec

FieldTypeRequiredDescription
datastringyesData is the rule groups file for the namespace, as a YAML string.
namestringyesName is the name of the rule groups namespace.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
tagsmap<string>—Tags are AWS resource tags to apply at creation time.
workspaceRefobjectyesWorkspaceRef references the Prometheus workspace containing the namespace.
workspaceRef.namestring—Name of a PrometheusWorkspace CR in the same namespace.
workspaceRef.workspaceIdstring—WorkspaceID is a direct AWS workspace ID (ws-...), bypassing CR lookup.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the rule groups namespace.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.
workspaceIdstring—WorkspaceID is the resolved AWS workspace ID the namespace was created in.

PrometheusScraper # CLOUD CONTROL · AWS::APS::Scraper

PrometheusScraper manages AWS::APS::Scraper through the AWS Cloud Control API.

kubectl get prometheusscrapers · example on GitHub

Example

# PrometheusScraper — Managed Prometheus
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/amp.html#prometheusscraper
apiVersion: aws.konfig.io/v1alpha1
kind: PrometheusScraper
metadata:
  name: example-prometheusscraper
  namespace: default
spec:
  alias: example
  destination:
    ampConfiguration:
      workspaceArn: arn:aws:iam::123456789012:role/example-role
    cloudWatchConfiguration:
      datasetArn: arn:aws:iam::123456789012:role/example-role
  providerRef:
    name: example-prometheusscraper
    region: us-east-1
  roleConfiguration:
    sourceRoleArn: arn:aws:iam::123456789012:role/example-role
    targetRoleArn: arn:aws:iam::123456789012:role/example-role
  scrapeConfiguration:
    configurationBlob: example
  scraperLoggingConfiguration:
    loggingDestination:
      cloudWatchLogs:
        logGroupArn: arn:aws:iam::123456789012:role/example-role
    scraperComponents:
    - type: SERVICE_DISCOVERY
  source:
    eksConfiguration:
      clusterArn: arn:aws:iam::123456789012:role/example-role
      securityGroupIds:
      - example
      subnetIds:
      - example
    vpcConfiguration:
      securityGroupIds:
      - example
      subnetIds:
      - example
  tags:
  - key: example
    value: example

Spec

FieldTypeRequiredDescription
aliasstring—Scraper alias.
destinationobjectyesPrometheusScraperDestination is a nested property type of AWS::APS::Scraper.
destination.ampConfigurationobject—Configuration for Amazon Managed Prometheus metrics destination
destination.ampConfiguration.workspaceArnstringyesARN of an Amazon Managed Prometheus workspace
destination.cloudWatchConfigurationobject—Configuration for CloudWatch metrics destination
destination.cloudWatchConfiguration.datasetArnstringyesARN of a CloudWatch dataset
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
roleConfigurationobject—PrometheusScraperRoleConfiguration is a nested property type of AWS::APS::Scraper.
roleConfiguration.sourceRoleArnstring—IAM Role in source account
roleConfiguration.targetRoleArnstring—IAM Role in the target account
scrapeConfigurationobjectyesPrometheusScraperScrapeConfiguration is a nested property type of AWS::APS::Scraper.
scrapeConfiguration.configurationBlobstring—Prometheus compatible scrape configuration in base64 encoded blob format
scraperLoggingConfigurationobject—PrometheusScraperScraperLoggingConfiguration is a nested property type of AWS::APS::Scraper.
scraperLoggingConfiguration.loggingDestinationobjectyesPrometheusScraperScraperLoggingDestination is a nested property type of AWS::APS::Scraper.
scraperLoggingConfiguration.loggingDestination.cloudWatchLogsobject—PrometheusScraperCloudWatchLogDestination is a nested property type of AWS::APS::Scraper.
scraperLoggingConfiguration.loggingDestination.cloudWatchLogs.logGroupArnstring—ARN of the CloudWatch log group
scraperLoggingConfiguration.scraperComponentsarray<object>yes
scraperLoggingConfiguration.scraperComponents[].configobject—PrometheusScraperComponentConfig is a nested property type of AWS::APS::Scraper.
scraperLoggingConfiguration.scraperComponents[].config.optionsmap<string>—
scraperLoggingConfiguration.scraperComponents[].typeenumyesAllowed: SERVICE_DISCOVERY, COLLECTOR, EXPORTER
sourceobjectyesCreate-only in AWS: changing it requires replacing the resource.
source.eksConfigurationobject—Configuration for EKS metrics source
source.eksConfiguration.clusterArnstringyesARN of an EKS cluster
source.eksConfiguration.securityGroupIdsarray<string>—List of security group IDs
source.eksConfiguration.subnetIdsarray<string>yesList of subnet IDs
source.vpcConfigurationobject—Configuration for VPC metrics source
source.vpcConfiguration.securityGroupIdsarray<string>yesList of security group IDs
source.vpcConfiguration.subnetIdsarray<string>yesList of subnet IDs
tagsarray<object>—An array of key-value pairs to apply to this resource.
tags[].keystringyes
tags[].valuestringyes

Status

FieldTypeRequiredDescription
arnstring—Scraper ARN.
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.
roleArnstring—IAM role ARN for the scraper.
scraperIdstring—Required to identify a specific scraper.

PrometheusWorkspace # GA

PrometheusWorkspace is the Schema for managing Amazon Managed Prometheus workspaces.

kubectl get prometheusworkspaces · example on GitHub

Example

# PrometheusWorkspace — Managed Prometheus
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/amp.html#prometheusworkspace
apiVersion: aws.konfig.io/v1alpha1
kind: PrometheusWorkspace
metadata:
  name: example-prometheusworkspace
  namespace: default
spec:
  alias: example
  kmsKeyArn: arn:aws:iam::123456789012:role/example-role
  providerRef:
    name: example-prometheusworkspace
    region: us-east-1
  tags:
    environment: dev
    team: platform

Spec

FieldTypeRequiredDescription
aliasstring—Alias is a friendly name assigned to the workspace.
kmsKeyArnstring—KMSKeyARN is the ARN of a customer managed KMS key used to encrypt data in the workspace.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
tagsmap<string>—Tags are AWS resource tags to apply at creation time.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the workspace.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.
prometheusEndpointstring—PrometheusEndpoint is the Prometheus endpoint URL of the workspace.
statusstring—Status is the current AWS status of the workspace (CREATING, ACTIVE, ...).
workspaceIdstring—WorkspaceID is the unique ID of the workspace (ws-...).