- Newest
- Most votes
- Most comments
It sounds like you're encountering some challenges with setting up a managed Prometheus collector for your EKS cluster. Let's address your concerns step by step:
-
Endpoint Access Settings: The documentation is correct in stating that your EKS cluster's endpoint access should include 'private'. However, it's important to note that it doesn't have to be exclusively private. The 'public and private' setting should work as well, which aligns with your observation that it worked when you switched to this setting.
-
Scraper Configuration: When you create or modify a scraper, it's crucial to ensure that the configuration aligns with your cluster's current settings. If you change the cluster's endpoint access, you may need to recreate the scraper to reflect these changes.
-
Lack of Logs: The absence of logs in CloudWatch when the scraper isn't working is concerning. Even with the log stream assigned and the setting set to "ALL" in the Prometheus workspace, you should be seeing some activity. This could indicate a connectivity issue between the scraper and your cluster.
-
Troubleshooting Steps:
- Double-check that your VPC has DNS hostnames and DNS resolution enabled.
- Ensure that the IAM roles and permissions are correctly set up for the scraper to access your cluster.
- Verify that the security groups and network ACLs allow the necessary traffic between the scraper and your cluster.
- Check if there are any VPC endpoints that might be interfering with the connection.
-
Alternative Approach: If you continue to face issues with the managed collector, you might want to consider using a self-hosted Prometheus server within your cluster and configure it to remote write to your Amazon Managed Service for Prometheus workspace. This approach gives you more control and visibility into the collection process.
-
Custom Metrics: For including custom metrics, you typically need to ensure that your applications are exposing metrics in a format that Prometheus can scrape. This usually involves setting up /metrics endpoints in your applications and configuring service discovery in Prometheus.
Given the complexity of your setup and the lack of visible logs, it might be beneficial to reach out to AWS support for a more in-depth investigation of your specific configuration. They can help identify any misconfigurations or compatibility issues that may not be immediately apparent.
Sources
Using an AWS managed collector - Amazon Managed Service for Prometheus
Ingest Prometheus metrics to the workspace - Amazon Managed Service for Prometheus
Relevant content
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago