SchwarzIT / node-red-chart

Node-red Helm Chart
Apache License 2.0
36 stars 23 forks source link

Cannot GET /metrics #319

Closed janpieper closed 1 month ago

janpieper commented 4 months ago

What happened?

Don't think this is a bug, but I am not familiar with Node.js/NodeRED to fully understand how to enable the prometheus metrics.


I just realized that the metrics from NodeRED are not available for Prometheus, so I checked what is the problem. I only enabled the metrics via the chart values:

metrics:
  enabled: true
  serviceMonitor:
    enabled: true

But today I read that I also need to install the node-red-contrib-prometheus-exporter like described in the chart README: README > Monitoring.

I tried to do so by enabling the sidecar container and added node-red-contrib-prometheus-exporter to sidecar.extraNodeModules.

After deploying this to my K8s, there now is the sidecar container for the node-red pod, but the node module is still not installed :thinking:

Screenshot from 2024-02-23 12-39-04

Requesting :1880/metrics gives me Cannot GET /metrics :man_shrugging:

How can we reproduce this?

sidecar:
  enabled: true
  extraNodeModules:
    - node-red-contrib-prometheus-exporter

metrics:
  enabled: true
  serviceMonitor:
    enabled: true

Helm Chart version

0.29.0

Search

Code of Conduct

Additional context

No response

dirien commented 1 month ago

Hey @janpieper,

you need to deploy the prometheus node first and then it will display a metric.

image

Kind regards