This repository contains:
- A Go application that generates metrics by probing external URLs. It is instrumented using the Prometheus Golang Client.
- Dockerfile to build a Docker image containing the Go binary.
- Kubernetes deployment specification and other related files to deploy the docker image in a Kubernetes cluster.
- A project report containing all the steps to be followed along with relevant screenshots.
-
Building the Go program to run locally:
make build
-
Running the Go binary:
./metrics
-
View Prometheus scrape targets:
http://localhost:9090/metrics
-
Building a Docker image:
make image
-
Deploying on a Kubernetes cluster:
make deploy
-
Delete deployment from cluster:
make undeploy