New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alertad.conf settings not taken into account (same settings working if put inside the alerta.conf file) #1537
Comments
You don't say what version you are running. |
This issue is blocked waiting on more information. The description or subsequent comments do not provide enough information to triage, investigate or resolve the issue. Please review the description against the issue template and ensure all relevant information is included. If you do not know what is expected you can ask on Slack. |
Hi, I have the same problem. I don't want to delete closed alarms. I can only find closed alarms not older than 2 hours. Regards |
Found a old issue #1493 Will try the parameter |
The parameter |
I found the solution in the docker-alerta repo/commit: alerta/docker-alerta@9aa906c Supervisord for the housekeeping is running in the docker container. The housekeeping reference the var To change this you have to set/override the var in your docker environment e.g. docker-compose file. The other variables in alertad.conf are not suitable/used for docker. @AndreaLVR hope this will help you |
Thank you so much, @CWollinger. |
Hello @satterly I believe this is a regression introduced by #1508. Passing In the following piece of code the backward compatibility is kept only for environment variables. Lines 79 to 84 in 5059351
|
Hi,
I am facing a problem with some settings in the alertad.conf file. I state that I'm using Alerta inside a docker container, but I doubt that is the source of the problem.
What I am trying to do is simply preventing Alerta from automatically deleting the alerts after a certain period of time.
Below are the relevant environment variables and the contents of /app/alertad.conf, /app/alerta.conf and /web/config.json.
ALERTA_SVR_CONF_FILE=/app/alertad.conf
ALERTA_CONF_FILE=/app/alerta.conf
DEFAULT_EXPIRED_DELETE_HRS = 0
DEFAULT_INFO_DELETE_HRS = 0
[DEFAULT]
endpoint = http://localhost:8080/api
{"endpoint": "http://localhost:8080/api"}
Despite the settings in the /app/alertad.conf file, the alerts are cleared shortly after their insertion, but the interesting thing is that if I copy the exact content of /app/alertad.conf into /app/alerta.conf then everything works as expected and the alerts are no longer deleted.
Is there something that I am wrong or that I misunderstood? Thank you in advance.
The text was updated successfully, but these errors were encountered: