#changing retention days
1 messages · Page 1 of 1 (latest)
@foggy sluice Yes looks correct. You can verify the same from prometheus UI
I am getting EMS as inactive , how can I activate it I’m using ZAPI
From screenshot, EMS alert rules are being checked. Do you have EMS collector enabled in your Harvest configuration?
It says to find harvest.yml file , I’m really getting difficulty in finding its location can you please help me
Can you share your installation type? rpm, deb, native, container or nabox?
It’s NAbox and I have found it now
okay. You can run below command to share it here (NABox as root user)
dc exec -w /conf nabox-harvest2 /netapp-harvest/bin/harvest doctor --print
Better to run above command as it will remove any PII information from your configuration.
Also if EMS collector is enabled then check if Rest permissions are configured as mentioned here https://netapp.github.io/harvest/nightly/prepare-cdot-clusters/#create-rest-role
okay
It says harvest ems alert is inactive in Prometheus
Okay these are just tags. It means that currently all EMS events are inactive (none are firing) => means no condition is matched as per alert rules
Can you share your harvest logs @ ng-harvest-files@netapp.com
More details here https://netapp.github.io/harvest/nightly/help/log-collection/#nabox
Ok I will do so
Can you check Rest permissions once if user has permissions to call REST API
https://netapp.github.io/harvest/nightly/prepare-cdot-clusters/#create-rest-role
okay let’s restart harvest
nice!
I have one more question
Thank you
Ok I have uncommented in default.yaml file
Cifs session and nfs session
And restarted my docker
Do I need to do more
But after I save it it’s still gets commented out
You want to modify file /opt/harvest2-conf/conf/zapi/default.yaml But it will get overwritten post upgrade
I'll share steps on how you can extend these so that you won't have to modify default.yaml
Ok
Can you share what's the template name?
NFS Clients
Please note, Both of these templates may slow down data collection due to high number of metrics involved.
Thanks a lot Rahul , I will try to enable it and if any issue will bother you again , thanks a lot again
sure np.
I am trying to setup emails , am I doing it in right way , can you please let me know
Im editing /usr/local/nabox/docker-compose/docker-compose.override.yml
Looks alright to me as per NABox docs https://nabox.org/faq/#customize-grafana
@frozen cliff can add more on this.
Looks ok to be as well
Thank you guys but I’m getting error as -failed to send test alert failed to send notification to email address storage@project2.com:tls :failed to verify certificate:x509: certificate is valid for prdstorage:sap.ir not for mail.project2.com
try and add GF_SMTP_SKIP_VERIFY=true
Thanks a lot it solved issues
My last question- some volumes are having used percentages above 90 percent, and severity = critical and state is in firing in promethus but I’m not getting alert mails for these volumes, (I have got test messages from grafana) , what more I need to check
the alerts you're seeing are from the Prometheus alert rules that Harvest ships with. https://github.com/NetApp/harvest/blob/main/container/prometheus/alert_rules.yml
Typically you would use Prometheus Alertmanager to manage, notify, silence, etc those events. https://prometheus.io/docs/alerting/latest/alertmanager/
Grafana doesn't know anything about those Prometheus alerts, but I believe you can configure Grafana to do something similar with https://grafana.com/docs/grafana/latest/alerting/ But to be clear, the Harvest team has not tried Grafana alerts so not sure what all is possible. This article from last 2022 compares the two https://alexandre-vazquez.com/grafana-alerting-vs-alert-manager/
Thanks @weak cobalt it worked
I have one more question- can we add other storage like isilon , object storage , VMax , thank you
Harvest does only deal with ONTAP and StorageGRID.
If you had other software that pulls metrics from other arrays and publishes prometheus compatible metrics we can talk about it, but the short answer is no 🙂