Labels in command line not working as expected

Hi Everyone,

I hope this message finds you well.

I have passed a couple of labels while installing sensu agent using --labels argument, but after fetching using GET API It is returning only one label.

Operating system information

  • Windows

Package versions

  • Sensu Go: 6.7.3
  • Etcd: 3.5.4

Installation command

.\sensu-agent.exe service install --backend-url ws://localhost:8081 --name asset14 --subscriptions system --namespace dev --labels category="1" subcategory="7" --keepalive-handlers email

GET command response metadata

  "name": "asset14",
  "namespace": "dev",
  "labels": {
    "category": "1"

In the above response, you can see there is only one label which is category.

Thank you in advance for considering my request. I truly appreciate your time and effort. Looking forward to hearing from you guys.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.