更新时间:2023-04-20 GMT+08:00
分享

APM.Pinpoint

模型说明

APM.Pinpoint策略用于编排含有Pinpoint监控策略的堆栈。堆栈部署成功后,可在监控页面查看对应堆栈下应用的监控组及监控详情。

模型属性

表1 模型定义属性说明

属性

是否必选

描述

name

调用链探针的名称

参数类型:string

取值说明:用户自定义

取值约束:正则规范要求:{"^[a-zA-Z][0-9a-zA-Z-_]*$"}

使用建议:用户自定义

关联关系

输出

blueprint样例

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  images:
    type: string
  instances:
    default: 1
    type: integer
node_templates:
  containercomponent-2:
    type: HuaweiCloud.ServiceStage.ContainerComponent
    properties:
      package:
        image:
          get_input: images
        imagePullPolicy: Always
        lifecycle:
          postStart:
            - '/bin/bash'
            - '-c'
            - touch aos
          preStop:
            - '/bin/bash'
            - '-c'
            - sleep 60
  statelessapplication-1:
    type: HuaweiCloud.ServiceStage.StatelessApplication
    properties:
      affinitySelector:
        affinities:
          antiself: false
      instances:
        get_input: instances
      type: container
    requirements:
      - package:
          node: containercomponent-2
          relationship: HuaweiCloud.Relationships.PackageConsistsOf
policies:
  test-apm:
    type: HuaweiCloud.APM.Pinpoint
    properties:
      name: test
    targets:
      - statelessapplication-1

相关文档