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

how to remove the unwanted indentation #710

Open
AbdullahFarhanSafwi opened this issue Aug 7, 2023 · 0 comments
Open

how to remove the unwanted indentation #710

AbdullahFarhanSafwi opened this issue Aug 7, 2023 · 0 comments

Comments

@AbdullahFarhanSafwi
Copy link

currently I am getting the output of yaml.dump() as like this

 error_query: |2-


                    sum(rate(http_request_duration_seconds_count{job="myservice",code=~"(5..|429)"}[{{.window}}]))
        total_query: |2-


                    sum(rate(http_request_duration_seconds_count{job="myservice"}[{{.window}}]))

for this piece of code

events: {
          error_query:`\n
          ${sloContextData.errorQuery.trim()}`,
          total_query:`\n
          ${sloContextData.totalQuery.trim()}`,   

what I want is the output to look like this

error_query: |
  sum(rate(http_request_duration_seconds_count{job="myservice",code=~"(5..|429)"}[{{.window}}]))
total_query: |
  sum(rate(http_request_duration_seconds_count{job="myservice"}[{{.window}}]))

Thanks any help is much appreciated

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