Skip to content
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

Case sensitivity with run_url tag on Spacelift metrics #9

Open
jack-white9 opened this issue Oct 22, 2024 · 0 comments
Open

Case sensitivity with run_url tag on Spacelift metrics #9

jack-white9 opened this issue Oct 22, 2024 · 0 comments

Comments

@jack-white9
Copy link

Hello 👋

My team are currently using this module to send tagged metrics to Datadog, which are then used by a datadog_monitor resource that sends Slack alerts on failed Spacelift runs.

However, when we call run_url in the monitor message (e.g. "Stack run: {{run_url.name}}"), the value has been converted to lowercase despite the Spacelift URL being case-sensitive, resulting in a 404 error. Presumably, this is caused by Datadog's tagging requirements which include setting tags to lowercase.

For example:

  • Actual URL: https://my-self-hosted-spacelift.com/stack/my-spacelift-stack/run/PF09DJ203MWKAG4K4OE7L71I9F
  • run_url value: https://my-self-hosted-spacelift.com/stack/my-spacelift-stack/run/pf09dj203mwkag4k4oe7l71i9f (invalid link)

Has anyone dealt with this before and are there any workarounds for this?

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

No branches or pull requests

1 participant