|
| 1 | +namespace: newrelic |
| 2 | +name: com.newrelic.pipeline_control_gateway_config_mode |
| 3 | +version: 0.1.0 |
| 4 | +variables: |
| 5 | + k8s: |
| 6 | + config: |
| 7 | + description: "OTel Collector configuration for the Pipeline Control Gateway" |
| 8 | + type: yaml |
| 9 | + required: true |
| 10 | + config_map_name: |
| 11 | + description: "Name of the ConfigMap that AC creates and PCG mounts as its configuration source" |
| 12 | + type: string |
| 13 | + required: false |
| 14 | + default: "pipeline-control-gateway-custom-config" |
| 15 | + deployment_name: |
| 16 | + description: "Name of the pipeline control deployment for health-checks" |
| 17 | + type: string |
| 18 | + required: false |
| 19 | + default: "pipeline-control-gateway" |
| 20 | + daemonset_name: |
| 21 | + description: "Name of the pipeline control daemonset for health-checks (used when PCG is deployed as a DaemonSet via daemonset.enabled=true)" |
| 22 | + type: string |
| 23 | + required: false |
| 24 | + default: "pipeline-control-gateway-daemonset" |
| 25 | + |
| 26 | +deployment: |
| 27 | + k8s: |
| 28 | + health: |
| 29 | + interval: 30s |
| 30 | + initial_delay: 15s |
| 31 | + # Both checks coexist: PCG's chart renders either a Deployment or a DaemonSet (mutually |
| 32 | + # exclusive via daemonset.enabled). The unused workload simply isn't found by name and the |
| 33 | + # corresponding check is treated as healthy, so the agent reports healthy in both modes. |
| 34 | + checks: |
| 35 | + - namespace: ${nr-ac:namespace_agents} |
| 36 | + name: ${nr-var:deployment_name} |
| 37 | + kind: Deployment |
| 38 | + target_namespace: ${nr-ac:namespace_agents} |
| 39 | + - namespace: ${nr-ac:namespace_agents} |
| 40 | + name: ${nr-var:daemonset_name} |
| 41 | + kind: DaemonSet |
| 42 | + target_namespace: ${nr-ac:namespace_agents} |
| 43 | + objects: |
| 44 | + config: |
| 45 | + apiVersion: v1 |
| 46 | + kind: ConfigMap |
| 47 | + metadata: |
| 48 | + name: ${nr-var:config_map_name} |
| 49 | + namespace: ${nr-ac:namespace_agents} |
| 50 | + data: |
| 51 | + deployment-config.yaml: | |
| 52 | + ${nr-var:config} |
| 53 | + # This is required as it is also defined in: |
| 54 | + # https://github.com/newrelic/helm-charts/blob/8c3b88bdf03e600aec8a5d94bab80635b4eec671/charts/pipeline-control-gateway/templates/deployment-configmap.yaml#L7 |
| 55 | + gateway-config.yaml: | |
| 56 | + reserved_melt_attributes: |
| 57 | + Metric: |
| 58 | + - interval.ms |
| 59 | + - metricName |
0 commit comments