Skip to content

feat: move logs agents to its own tile #2

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

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

feat: move logs agents to its own tile #2

wants to merge 23 commits into from

Conversation

jor2
Copy link
Member

@jor2 jor2 commented Mar 13, 2025

Description

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

@jor2 jor2 self-assigned this Mar 13, 2025
@jor2 jor2 changed the title feat: Move Observability agents to its own tile feat: Move logs agents to its own tile Mar 18, 2025
Copy link
Member

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments, but maybe this is still WIP as I notice the DA inputs still have cloud monitoring inputs there?

@jor2 jor2 marked this pull request as draft March 19, 2025 02:28
@jor2 jor2 marked this pull request as ready for review March 19, 2025 14:12
@jor2 jor2 force-pushed the agent-da branch 2 times, most recently from a43364d to 9a924ef Compare March 19, 2025 16:46
@ocofaigh
Copy link
Member

@jor2 jor2 force-pushed the agent-da branch 2 times, most recently from 62b2320 to c93af1d Compare March 20, 2025 19:38
@jor2
Copy link
Member Author

jor2 commented Mar 20, 2025

/run pipeline

1 similar comment
@jor2
Copy link
Member Author

jor2 commented Mar 21, 2025

/run pipeline

@jor2 jor2 requested review from ocofaigh, shemau and Aashiq-J and removed request for daniel-butler-irl March 21, 2025 16:11
@jor2 jor2 changed the title feat: Move logs agents to its own tile feat: move logs agents to its own tile Mar 21, 2025
Copy link
Member

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • See comments
  • The diagram should show some kind of flow of the agents sending data to a Cloud Logs instance.
  • Can we please use cross variable validation in the DA inputs

README.md Outdated
Use real values instead of "var.<var_name>" or other placeholder values
unless real values don't help users know what to change.
-->
## Usage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change back the readme so it aligns with the module template please

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jor2 This is still an open comment

}

variable "logs_agent_additional_metadata" {
description = "The list of additional metadata fields to add to the routed logs."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a complex input so needs a corresponding markdown helper doc

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still open comment

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ocofaigh
Copy link
Member

@jor2 Ca you see if you can add support for terraform-ibm-modules/terraform-ibm-observability-agents#470 in this PR too? I think the logic is slightly incorrect in that PR so you might need to fix it to get it working

@jor2
Copy link
Member Author

jor2 commented Mar 25, 2025

/run pipeline

1 similar comment
@jor2
Copy link
Member Author

jor2 commented Mar 25, 2025

/run pipeline

Copy link
Member

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • cloud logs icon is missing from diagram
  • You dont need to commit images/cloud-logs-icon.svg?
  • Can you add this to the renovate.json?
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["github>terraform-ibm-modules/common-dev-assets:commonRenovateConfig"],
  "customManagers": [
    {
      "customType": "regex",
      "description": "Update agent version to the latest in variables.tf",
      "fileMatch": ["variables.tf$"],
      "datasourceTemplate": "docker",
      "matchStrings": [
        "default\\s*=\\s*\"(?<currentValue>.*)\"\\s*# datasource: (?<depName>[^\\s]+)"
      ]
    }
  ]
}

}

variable "logs_agent_additional_metadata" {
description = "The list of additional metadata fields to add to the routed logs."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still open comment

@jor2
Copy link
Member Author

jor2 commented Apr 1, 2025

/run pipeline

1 similar comment
@jor2
Copy link
Member Author

jor2 commented Apr 1, 2025

/run pipeline

@jor2
Copy link
Member Author

jor2 commented Apr 2, 2025

/run pipeline

@jor2
Copy link
Member Author

jor2 commented Apr 2, 2025

/run pipeline

@jor2 jor2 requested a review from ocofaigh April 2, 2025 16:24
@jor2
Copy link
Member Author

jor2 commented Apr 3, 2025

error - known issue. https://ibm-cloudplatform.slack.com/archives/C02DYMP47EF/p1743596567371199?thread_ts=1743522645.890589&cid=C02DYMP47EF

TestFullyConfigurableSolution 2025-04-02T16:54:12Z logger.go:67: module.cloud_logs.ibm_resource_instance.cloud_logs: Still creating... [30s elapsed]
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: ╷
Error: gurableSolution 2025-04-02T16:54:16Z logger.go:67: │ Error: [ERROR] Error waiting for create resource instance (crn:v1:bluemix:public:logs:au-syd:a/abac0df06b644a9cabc6e44f55b3880e:19f4bfb0-7ce6-4462-a642-52dae97ca0e0::) to be succeeded: [ERROR] The resource instance 'crn:v1:bluemix:public:logs:au-syd:a/abac0df06b644a9cabc6e44f55b3880e:19f4bfb0-7ce6-4462-a642-52dae97ca0e0::' create failed during async operation. error: <nil>
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ last_operation_description: Provisioning operation for crn crn:v1:bluemix:public:logs:au-syd:a/abac0df06b644a9cabc6e44f55b3880e:19f4bfb0-7ce6-4462-a642-52dae97ca0e0:: has failed. Reason: Failed on precondition checking. Details: ValidationFailed Logs bucket is invalid
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ 
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │   with module.cloud_logs.ibm_resource_instance.cloud_logs,
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │   on .terraform/modules/cloud_logs/main.tf line 7, in resource "ibm_resource_instance" "cloud_logs":
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │    7: resource "ibm_resource_instance" "cloud_logs" {
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ 
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ ---
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ id: terraform-446cc00a
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ summary: |-
Error: lyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │   [ERROR] Error waiting for create resource instance (crn:v1:bluemix:public:logs:au-syd:a/abac0df06b644a9cabc6e44f55b3880e:19f4bfb0-7ce6-4462-a642-52dae97ca0e0::) to be succeeded: [ERROR] The resource instance 'crn:v1:bluemix:public:logs:au-syd:a/abac0df06b644a9cabc6e44f55b3880e:19f4bfb0-7ce6-4462-a642-52dae97ca0e0::' create failed during async operation. error: <nil>
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │   last_operation_description: Provisioning operation for crn crn:v1:bluemix:public:logs:au-syd:a/abac0df06b644a9cabc6e44f55b3880e:19f4bfb0-7ce6-4462-a642-52dae97ca0e0:: has failed. Reason: Failed on precondition checking. Details: ValidationFailed Logs bucket is invalid
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ severity: error
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ resource: ibm_resource_instance
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ operation: create
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ component:
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │   name: github.com/IBM-Cloud/terraform-provider-ibm
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │   version: 1.76.3
TestFullyConfigurableSolution 2025-04-02T16:54:16Z logger.go:67: │ ---

@jor2
Copy link
Member Author

jor2 commented Apr 7, 2025

/run pipeline

Copy link
Member

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jor2 see comments

README.md Outdated
Use real values instead of "var.<var_name>" or other placeholder values
unless real values don't help users know what to change.
-->
## Usage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jor2 This is still an open comment

Copy link
Member

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jor2 The chart and image versions need to be separate inputs. So we should have:

  • logs_agent_image
  • logs_agent_image_version
  • logs_agent_chart
  • logs_agent_chart_location
  • logs_agent_chart_version

Copy link
Member

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants