in

Prometheus on GCP Kubernetes cluster error "no such host"


I am trying to setup Prometheus on GCP Kubernetes cluster. I followed a tutorial https://devopscube.com/setup-prometheus-monitoring-on-kubernetes/.
I have the deployment pod running.
Now I am trying to access the prometheus dashboard by port forwarding as shown in the blog.
But the page is inaccessible.
I tried to debug and checked the logs of the deployment pod and found that there is an error there.

ts=2021-12-31T06:49:42.109Z caller=notifier.go:526 level=error component=notifier alertmanager=http://alertmanager.monitoring.svc:9093/api/v2/alerts count=1 msg="Error sending alert" err="Post "http://alertmanager.monitoring.svc:9093/api/v2/alerts": dial tcp: lookup alertmanager.monitoring.svc on <IP>:53: no such host"



Source: https://stackoverflow.com/questions/70539739/prometheus-on-gcp-kubernetes-cluster-error-no-such-host

This script is intended to crawl license information of repositories through the GitHub API

Using GNOME Screenshot Tool in Linux Like a Pro