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

Unassigned task status is not reflected in metrics #573

Open
chrisluedtke opened this issue Nov 21, 2024 · 0 comments
Open

Unassigned task status is not reflected in metrics #573

chrisluedtke opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chrisluedtke
Copy link

Description

$ curl -s http://localhost:8083/connectors/my_connector/status
{
  "name":"my_connector",
  "connector": {
    "state":"RUNNING",
    "worker_id":"10.7.28.57:8083"
  },
  "tasks":[{"id":0,"state":"UNASSIGNED","worker_id":"10.7.28.57:8083"}],
  "type":"source"
}

$ curl -s localhost:8080 | grep my_connector | grep status
kafka_connect_connector_task_status{connector="my_connector",status="running",task="0",} 1.0

JMX rule:

- pattern: 'kafka.connect<type=connector-task-metrics, connector=(.+), task=(.+)><>status: ([a-z-]+)'
  name: kafka_connect_connector_task_status
  value: "1"
  labels:
    connector: "$1"
    task: "$2"
    status: "$3"
  help: "Kafka Connect JMX Connector task status"
  type: GAUGE

Expected Behavior

Task status metric should report as unassigned.

Reproduce

To force the worker to be unassigned, we set "connect.cosmos.containers.topicmap" to a non-existent container.

@chrisluedtke chrisluedtke added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant