monitoring

command
v0.0.0-...-d7993bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

Knative Monitoring

Knative monitoring is a service that listens to prow job pubsub messages. It scrapes through all the failure logs to catch test infrastructure failures.

System Diagram

alt text

Setup

Create the Cluster
gcloud container clusters create monitoring --enable-ip-alias --zone=us-central1-a

Note: The cluster connects to the CloudSQL instance via private IP. Thus, it is required that the cluster is in the same zone as the CloudSQL instance.

Build and Deploy Changes

Update the Kubernetes components

monitoring_service.yaml is the config to set up all the Kubernetes resources. Use kubectl apply on the monitoring_service file to make any updates.

Update Image
  1. Build and deploy the monitoring images.

    cd images/monitoring/
    make push
    
  2. Update tools/monitoring/gke_deployment/monitoring_service.yaml to use the image tag created in previous step

  3. Apply the changes to use the new image in production

    kubectl apply -f monitoring_service.yaml
    
Clearing the alerts

From tools/monitoring/clearalerts directory, run run_clear_alerts.sh script.

Note: run_clear_alerts.sh only works on linux machine. It builds the binary on the local machine and copies it to the monitoring pod. On MacOS, the binary it built returns error cannot execute binary file: Exec format error when it runs on the monitoring pod.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL