r/devops • ClickOps • Oct 09 '26

Observability Script output Best Practice Contracts

Hi Devops!

I’m putting together an automation orchestration engine and I want to mature the team by standardizing script output across bash, python, powershell, tofu, etc.

So looking at a JSON output contract that anyone creating a script can adhere to. Then everyone would consume the same format. (The dream right?)

  • Operation name
  • Host
  • Execution status (success, fail, warning, etc)
  • Structured result summary
  • Errors
  • Duration
  • Run ID (UUID)?
  • A schema version (requires a lot of upkeep but can eliminate headaches down the road if maintained. If maintained being key word here lol.)

I’ve been searching around but want to hear from the experts who live in this stuff. Is there any universal or open standard people are using to define these ?

Would rather not build it myself if something people have already settled on.

Thanks for your input.

7 Upvotes

23 comments sorted by

View all comments

Show parent comment

3

u/SuperQue Oct 09 '26

This has a design smell. Having some scripts for automation is good, but if you have too many it is a sign that your underlying orchestration architecture is failing you. Things like this should be part of your Ansible/Terraform/Kubernetes/etc.

Also from a data/observability/reporting perspective if the fields are standard it gets much easier to build on top of.

This stuff should come from your existing observability pipeline(s). There are existing protocols that should feed everything to your dashboards.

Your post has a bunch of red flags that you're solving the wrong problems because your team is unwilling to fix fundamental things.

0

u/generic-d-engineer ClickOps Oct 09 '26 edited Oct 11 '26

We’re cobbling together a bunch of silos which includes a lot of legacy, and now want to do it right and start eliminating duplicate work by establishing common standards. Pushing down the output into the native tool is a good starting point.

I did read another post where it warned about over orchestration. I’m think we’re sfter the same thing but I’d disagree on the red flags, that’s a bit overreacting.

Thanks for the tips

3

u/SuperQue Oct 09 '26

I'd recommend reading this.

There are already a ton of existing, industry standard, tools for what you're proposing.

I suggest taking a step back from the NIH cliff you're standing on and think about "what would I do today without all that legacy".

Getting to good practices from legacy is easier than you think it is. But you have to want to do it and your team also has to want to change.

1

u/generic-d-engineer ClickOps Oct 09 '26 edited Oct 11 '26

Yah the whole goal of this post was to use an established framework and not try to invent anything new.

I don’t think kubernetes or Prometheus are the right tools tho, that is over architecture and solving flaking house paint by ripping out walls and rebuilding with bricks.

Seems a lot the recommendation is out of context