-
Notifications
You must be signed in to change notification settings - Fork 164
LDMS-Vector deployment #4330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
LDMS-Vector deployment #4330
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
10fe923
vector ldms configuration and deployment
Kratika-P 9dfba37
vector updates
Kratika-P 5132b0e
vector-ldms metrics chnages and image change
Kratika-P 09001dd
Merge branch 'pub/telemetry' into pub/telemetry
Kratika-P b8a07c5
Update telemetry_prereq.yml
Kratika-P 2cf1ad8
Set changed_when to false for telemetry deployment
Kratika-P 34e37e7
Merge branch 'pub/telemetry' into pub/telemetry
Kratika-P ca9e21d
vecotr-ldms review comments
Kratika-P aff8edf
lint-fix
Kratika-P File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| # Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| # Deploy Vector-LDMS Pipeline | ||
| # Purpose: Kafka-to-VictoriaMetrics ingestion pipeline for LDMS metrics | ||
| # Spec Reference: Vector HLD Engineering Spec (ESPEC-VECTOR-2026-001) §4.1.3.6 | ||
| # Deployment Flow: U1 (Fresh deployment) and U7 (Configuration change) | ||
| # Note: Pre-flight validation removed - Kafka cluster, topics, and secrets are deployed | ||
| # via kustomization.yaml AFTER this task generates the Vector manifests. | ||
| # Validation happens during Vector pod startup when it connects to Kafka. | ||
|
|
||
| # ============================================================================ | ||
| # Render Vector-LDMS ConfigMap (TOML Configuration) | ||
| # ============================================================================ | ||
| - name: Render Vector-LDMS ConfigMap | ||
| ansible.builtin.template: | ||
| src: "telemetry/vector/vector-ldms-configmap.yaml.j2" | ||
| dest: "{{ hostvars['localhost']['k8s_client_share_path'] }}/telemetry/deployments/vector/vector-ldms-configmap.yaml" | ||
| mode: "{{ hostvars['localhost']['file_permissions_644'] }}" | ||
| register: vector_ldms_configmap_rendered | ||
|
|
||
| # ============================================================================ | ||
| # Render Vector-LDMS Deployment | ||
| # ============================================================================ | ||
| - name: Render Vector-LDMS Deployment | ||
| ansible.builtin.template: | ||
| src: "telemetry/vector/vector-ldms-deployment.yaml.j2" | ||
| dest: "{{ hostvars['localhost']['k8s_client_share_path'] }}/telemetry/deployments/vector/vector-ldms-deployment.yaml" | ||
| mode: "{{ hostvars['localhost']['file_permissions_644'] }}" | ||
| register: vector_ldms_deployment_rendered | ||
|
|
||
| # ============================================================================ | ||
| # Render Vector-LDMS Service | ||
| # ============================================================================ | ||
| - name: Render Vector-LDMS Service | ||
| ansible.builtin.template: | ||
| src: "telemetry/vector/vector-ldms-service.yaml.j2" | ||
| dest: "{{ hostvars['localhost']['k8s_client_share_path'] }}/telemetry/deployments/vector/vector-ldms-service.yaml" | ||
| mode: "{{ hostvars['localhost']['file_permissions_644'] }}" | ||
| register: vector_ldms_service_rendered |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
provision/roles/telemetry/tasks/generate_telemetry_script.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| # Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # Generate Telemetry Deployment Script | ||
| # Purpose: Create telemetry.sh script in shared directory for cloud-init execution | ||
| # This replaces the inline script generation in cloud-init templates | ||
| # | ||
| # The script is created at: {{ k8s_client_share_path }}/telemetry/telemetry.sh | ||
| # Cloud-init will execute this script during node provisioning to deploy telemetry stack | ||
|
|
||
| - name: Create telemetry deployment script | ||
| ansible.builtin.template: | ||
| src: "{{ role_path }}/templates/telemetry/telemetry.sh.j2" | ||
| dest: "{{ hostvars['localhost']['k8s_client_share_path'] }}/telemetry/telemetry.sh" | ||
| mode: "{{ hostvars['localhost']['file_permissions_755'] }}" | ||
| vars: | ||
| k8s_client_mount_path: "{{ hostvars['localhost']['k8s_client_share_path'] }}" | ||
|
|
||
| - name: Display telemetry deployment script location | ||
| ansible.builtin.debug: | ||
| msg: "Telemetry deployment script created at {{ hostvars['localhost']['k8s_client_share_path'] }}/telemetry/telemetry.sh" | ||
| verbosity: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.