woot woot, finally adding registration to `ccm` `...
# choria
r
woot woot, finally adding registration to
ccm
Copy code
[rip@ryzo]% nats s subjects REGISTRATION --context ngs-ccm
╭───────────────────────────────────────────────────────────────────────────────────╮
│                         2 Subjects in stream REGISTRATION                         │
├───────────────────────────────────────────────────────────────────────────┬───────┤
│ Subject                                                                   │ Count │
├───────────────────────────────────────────────────────────────────────────┼───────┤
│ ccm.registration.v1.DEV.prometheus.nats-server.127.0.0.1.d7b99a89140f8e11 │ 1     │
│ ccm.registration.v1.DEV.tcp.nats-server.127.0.0.1.2f3585bce75055aa        │ 1     │
╰───────────────────────────────────────────────────────────────────────────┴───────╯
Copy code
~
[rip@ryzo]% nats s get REGISTRATION --last-for ccm.registration.v1.DEV.prometheus.nats-server.127.0.0.1.d7b99a89140f8e11 --context ngs-ccm -j|jq '.data|@base64d|fromjson'
{
  "cluster": "DEV",
  "service": "nats-server",
  "protocol": "prometheus",
  "address": "127.0.0.1",
  "port": 8080,
  "priority": 1,
  "annotations": {
    "prometheus.io/path": "/metrics",
    "prometheus.io/scrape": "true"
  }
}
As long as service is healthy - including just healthcheck only runs - its showing up in the registration table