Open wallyqs opened 5 years ago
Seems this goes away if including an extra slash to the route:
- name: metrics
image: synadia/prometheus-nats-exporter:0.4.0
args:
- -connz
- -routez
- -subz
- -varz
- -prefix=nats
- -DV
- http://localhost:8222/
Also invalid character 'p' after top-level value
probably means page not found
I'm using it in my docker-compose setup like
nats-metrics:
image: natsio/prometheus-nats-exporter:0.15.0
command: [ "-D", "-channelz", "http://nats-server:8222" ]
and regardless of a trailing /
for the URL, I always get ignoring server http://nats-server:8222: invalid character 'p' after top-level value
.
It only vanishes when I don't use that -channelz
switch.
Using other switches like -varz
, -connz
, -jsz=all
, -serverz
or -subz
don't seem to trigger this debug message.
@manuel-koch channelz
relates to nats-streaming
which reached its End of Life and was replaced by JetStream.
Probably should be removed entirely from the exporter code.
Getting this error when starting prometheus exporter image as follows: