Skip to content

Instantly share code, notes, and snippets.

@rmoff
Created May 1, 2019 09:58
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rmoff/3dc53b0dfede6809fb0091ce0296f9a8 to your computer and use it in GitHub Desktop.
Save rmoff/3dc53b0dfede6809fb0091ce0296f9a8 to your computer and use it in GitHub Desktop.
Show status of all Kafka Connect connectors
curl -s "http://localhost:8083/connectors"| \
jq '.[]'| \
xargs -I{connector_name} curl -s "http://localhost:8083/connectors/"{connector_name}"/status" | \
jq -c -M '[.name,.connector.state,.tasks[].state]|join(":|:")' | \
column -s : -t | \
sed 's/\"//g' | \
sort
@rmoff
Copy link
Author

rmoff commented Jul 18, 2023

@juzn01
Copy link

juzn01 commented Jul 18, 2023

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment