Open bb-Ricardo opened 3 years ago
@bb-Ricardo Try this? station: "{[*].station.name}"
metrics:
- name: total_current_listeners
path: "{ [*].listeners.current }"
help: Example of a top-level global value scrape in the json
labels:
station: "{[*].station.name}"
- name: per_mount
type: object
path: "{ [*].station.mounts[*] }"
help: num of current mount listeners
labels:
station: "{[*].station.name}"
name: "{ .name }"
bitrate: "{ .bitrate }"
format: "{ .format }"
values:
listeners: "{ .listeners.current }"
Hi,
thank you very much for this neat handy tool.
I try to monitor a project where you can host your own online radio station: https://github.com/AzuraCast/AzuraCast
The most interesting statistics come from here:
curl https://demo.azuracast.com/api/nowplaying
I tried following config and failed:
Result:
I can't get the station label per mount to work.
Also tried other options according to this page: https://kubernetes.io/docs/reference/kubectl/jsonpath/
Can anyone point me in the right direction please?