Bug: while adding prometheus endpoint from cluster and environment page, getting 502 in api response #4408
Closed
2 tasks done
Labels
bug
Something isn't working
📜 Description
while adding prometheus endpoint from cluster and environment page, orchestrator is throwing nil pointer if grafana_url is not specified in orchestrator configmap.
![Screenshot 2023-12-14 at 4 04 27 PM](https://private-user-images.githubusercontent.com/128121299/290489690-58774b81-c6b9-40ec-bd55-ca77f60b2190.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NjcxMTksIm5iZiI6MTcxOTc2NjgxOSwicGF0aCI6Ii8xMjgxMjEyOTkvMjkwNDg5NjkwLTU4Nzc0YjgxLWM2YjktNDBlYy1iZDU1LWNhNzdmNjBiMjE5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYzMFQxNzAwMTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNTYwNjAxZjY1YzU3ZjE3YmZmYjQ0MGMwMTg5NTUwYTYyMjNkNjE5NzQ0ZDZkOWY5ZjBjZjQyNjY0MDYzZjQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.HXFaM08T9g1e1douRxQM5WhGq6ijhcaQseZpEhoHeXM)
👟 Reproduction steps
Add prometheus endpoint in cluster details.
👍 Expected behavior
It should add the endpoint in the cluster
👎 Actual Behavior
It is throwing 502 bad gateway error
☸ Kubernetes version
1.25
Cloud provider
🌍 Browser
Chrome
🧱 Your Environment
No response
✅ Proposed Solution
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
AB#7496
The text was updated successfully, but these errors were encountered: