-
Notifications
You must be signed in to change notification settings - Fork 61
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
RedShift graph no data #18
Comments
You can try to extend the period of gathering cloudwatch data, change start time from 5 mins ago to 15 mins ago, sometimes there is a delay in receiving latest data. STARTTIME=$(date -u "+%F %H:%M:00" -d "15 minutes ago") |
@omni-lchen I tried with that option but did not work. Other monitoring is working fine ELB, Cache etc. Only I am facing this issue with Redshift. Redshift I am seeing only [no-data] on the graph page. |
You can uncomment the line "#zabbix_sender.printData()" in the function "sendLatestCloudWatchData", then run the bash script with parameters to see what data you get in cloudwatch. |
This is what I am getting IAM user have full access to cloudwatch and read access to RedShift in this case.
|
@omni-lchen Can you let me know what changes I should do to make it work? |
Are you able to see redshift metrics from cloudwatch in AWS console? Please check the cluster identifier is correct. |
@omni-lchen Yes I see cloudwatch metrics from aws frontend and identifier is correct as well. |
If all are set correctly and you still get the value 0, it could be either the issue with a timestamp, dimensions or region. Could you manually set the value in the bash script? You can also test different dimension with NodeID. |
I tried again but looks something else is missing here. My Zabbix server was in us-west and redshift is in us-east however when I tried the same from us-east zabbix proxy server result is same. All time across the servers and redshift is in UTC only which is default. |
I am having a similar issues. It almost seems like dimensions filtering.. will return a blank dataset no matter what ever I send to the command line. ./zabbixCloudWatch.py -z zabbix.venky.com -x venkyRds -a 1234 -r us-east-1 -s RedShift -d ClusterIdentifier=venkyRds -p 60 -f "2017-08-30 00:00:00" -t "2017-08-30 05:00:00" and ./zabbixCloudWatch.py -z zabbix.venky.com -x venkyRds -a 1234 -r us-east-1 -s RedShift -d 1=2 -p 60 -f "2017-08-30 00:00:00" -t "2017-08-30 05:00:00" return the same? @omni-lchen I assume you have seen it working ? .. thanks again for this project its super helpful |
It was working before when I tested with Python 2.7 and Boto2, possibly AWS has changed something in Python API since then, could you try to test with AWS CLI see you can get the results. |
yup tried with aws cli and got results..
|
Try to test in python script with the parameters where you specified in AWS CLI, but change dimension as: |
i tried all possible dimension arguments.. its almost like dimensions part is not getting parsed?
|
Could be dimension issue, but the dimension format should be correct, otherwise the script will throw out an error. I have no redshift here to test, sorry can't help debug further. |
thanks ? anyways for me to see the actually aws cli call thats getting made? |
This script uses aws boto api, please check this fucntion "get_metric_statistics" in http://boto.cloudhackers.com/en/latest/ref/cloudwatch.html, hope that help. |
@omni-lchen @venkysomes everything working for me except Redshift metrics. do you have work alternative to pull the Redshift Metrics. |
i ended up using aws alerts go directly to pagerduty. |
Thanks @venkysomes . @omni-lchen do you have any sample conf file for EMR. |
Thanks Yurij, Now it works like a charm for Red(s)hift metrics ! RESPECT 🥇 |
Hi ,
I have configured ELB, Cloudfront and those are working fine with provided template but for RedShift it is not working. I am not getting any data on the zabbix.
Cron entry.
/bin/bash /opt/zabbix/cloudwatch/cron.d/cron.RedShift.sh "prod-Redshift-2017" "prod-Redshift-2017" "zabbix.production.com" "default" "us-east-1"
AWS use have full access to cloud watch. Also the same user is used for other service monitoring too.
Template is imported correctly. Can you help me here plz?
Thanks,
Pratap
The text was updated successfully, but these errors were encountered: