-
Notifications
You must be signed in to change notification settings - Fork 38
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
Unable to activate alerts + must manually restart monitor to register new alerts #39
Comments
Can you execute |
When I execute
or
or
|
Here are some additional specs I can find
The content of |
The problem is in DFSL. It has only the proxy as the address in |
OH! I do see what you are saying and have modified my environment variables accordingly.
What I had to failed to see was That being said, it has been several minutes now and my aforementioned issues don't seem to have changed. |
I even went so far as to remove DFP from the equation but none of the queries e.g. |
The problem is that you changed the name of the service to |
Oh wow, I feel rather stupid. Well, I appreciate your patience with assisting me as this certainly resolves my issue. Much thanks again! |
I found some time to revisit this part of my project again hopeful resolving my URL mistake would be the key, but I still find myself with unresponsive alerts and queries that execute to In the example below I keep
I really wish I could provide more substantial info but I have exhausted all possible logs. Is there an example that uses both DFM and DFP that you know to work that I can experiment with locally? |
Please send me the current config of your stacks and I'll try to replicate the problem inside one of my clusters. P.S. Sorry for not responding earlier. I had too much work on my plate. |
Closing due to inactivity. |
My main problem is no matter how restrictive I set my mem limit I cannot get the alert to indicate active on the
/alerts
page in Prometheus. In the example below you will see I have set my service's mem_limit to 10% where at rest, the service in question uses at least 60% of it's available memory limit, and to be triggered with no timespan. Yet no long how I wait for the alert says(0 active)
This is how the alert translates into Prometheus
When I plug the
expr
into the Prometheus Expression receiver I get no-data. Not evencontainer_memory_usage_bytes{container_label_com_docker_swarm_service_name="monitoring_elasticsearch"}
seems to produce a result.Here are the relevant docker-compose instructions
It may be worth noting that I have not incorporated the
alert-manager
as I didn't want to set it up and figured I could test my alert settings before moving on to that step. Am I wrong in assuming I can continue withdocker-flow-monitor
withoutalert-manager
.It's also worth noting that I am using proxy as the shared network between
docker-flow-monitor
,docker-flow-swarm-listener
because I am also usingdocker-flow-proxy
in this stack.It may also be worth noting that I must manually restart the
docker-flow-monitor
service for new alerts to register in the prometheus web console after spinning up other services that are notdocker-flow-monitor
I am not sure if that is intended behavior and perhaps this is a sign of something else wrong.Nothing in the monitor logs seem to indicate anything is amiss either
I am fully at a loss on how to debug this further. Perhaps I have made some mistake along the way or misunderstand what I should be expecting.
The text was updated successfully, but these errors were encountered: