-
Notifications
You must be signed in to change notification settings - Fork 1
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
Start without Slack #3
Comments
Hi @sureshoss |
Thanks for your response, my use case is to get the AWS health data across regions exported and stored in Prometheus for visualizing ina Grafana map panel with traffic lights. And also was looking to see if we can scrape the account and resource level stats in the same way so we can build a drill down dashboards from the region to accounts and to the resources. |
@sureshsubramaniam @sureshoss Do you think a metric like would solve your needs?
I'm not sure adding the affected resources as labels is a good idea due to cardinality issues but maybe I can create a flag to enable it. The value of the metric could be the number of updates on that event, going back to zero when closed/resolved |
I tried implementing metrics support but found a few issues with AWS API:
The official AWS AHA implementation also does not have this concept of state where it does something if the event is opened or closed, it only notifies that something changed so I assume it is not possible (or practical) to try implementing something like that These are some example metrics of what I managed to implement, I think the best route will be only a counter that increments on each update and resets on exporter restart, any suggestions?
|
If you want to give it a shot, but keep in mind this is untested |
Thanks @AndreZiviani , i will test it and update you, with some more comments |
Initial testing: Dependency on the GLIBC from the compiled binary I will be compling with the GLIBC version that i have in my system and update |
I compiled and started on my linux machine, however the exporter starts without issue but i am unable to see any of the health metrics for the account or for the org. i am running it on a EC2 with redhat linux #-> ./aws-health-exporter --log-level debug --log-events true There are no debug logs printed to identify te issue |
I've added a hidden command to inject some time on the first scrape, try running with |
I forgot to disable CGO on release binaries, latest version should work for you |
Awesome let me give it a try today and update you |
@AndreZiviani I took a shot to run the latest build and seems there is a panic in the code #-> ./aws-health-exporter -v debug -r us-east-1 --time-shift -240h goroutine 68 [running]: |
@sureshoss That's odd, looks like you have a lot accounts/events and the api is blocking you but the SDK should handle retires and rate-limit, will try to look into it |
hey @sureshoss I wasn't able to reproduce your issue, probably because I don't have enough events/resources but I've changed the logic on the retryer please let me know if this fix your issue. If it does not then I can be more explicit and increase some other parameters |
This is impressive, is there an option that we can start the application without the slack integration, as we dont have options to connect to slack in the org
The text was updated successfully, but these errors were encountered: