https://rancher.com/ logo
Title
c

chilly-breakfast-69670

04/21/2023, 6:28 AM
Hello everyone 👋 I’d like to get NeuVector’s ‘Notifications’ such as ‘Security Events’ and ‘Events’ into my Grafana. Is there a way to do this? Either by sending it to stdout where Loki will pick-up the logs and displaying them in Grafana. Or by using Prometheus? I did search the docs and found a link to the Prometheus exporter: https://github.com/neuvector/prometheus-exporter Am I correct in guessing, that this https://github.com/neuvector/neuvector-helm/tree/master/charts/monitor installs the same thing? I tried the helm chart and imported the Grafana json, but nothing shows up. I used this command:
helm upgrade --install neuvector-monitor --namespace neuvector --create-namespace neuvector/monitor -f values-prometheus-test.yaml
Here what’s in the values-prometheus-test.yaml:
exporter:
 # If false, exporter will not be installed
 enabled: true
 # changes this to a readonly user !
 CTRL_USERNAME: prometheus-monitor
 CTRL_PASSWORD: <redacted>
q

quiet-fountain-46593

04/21/2023, 5:37 PM
Hi Markus! I believe we have just recently added the ServiceMonitor object into the neuvector/monitor chart. It looks like we need to add that option to the readme, as it is not enabled by default. I suspect this is why prometheus is not actually scraping the exporter metrics. if you set the following in the values, it should then add the servicemonitor
exporter:
  serviceMonitor:
    enabled: true
there is also
exporter.grafanaDashboard.enabled
to install the grafana dashboard via configmap. if your prometheus is set up in a different way, then might need to just make sure there is an appropriate servicemonitor
c

chilly-breakfast-69670

04/25/2023, 3:56 PM
Hi @quiet-fountain-46593 Thanks a lot. I’ll try again.