Giter VIP home page Giter VIP logo

micrometer's Introduction

Getting Started

This is a Bare minimum implementation to setup and scale an app based on custom Metric being Written in MyBean.java

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Setup a test cluster (update project ids)

gcloud beta container --project "{GCP_PROJECT_ID}" clusters create "cluster-1" --no-enable-basic-auth --cluster-version "1.25.12-gke.500" --release-channel "None" --machine-type "e2-small" --image-type "COS_CONTAINERD" --disk-type "pd-balanced" --disk-size "100" --metadata disable-legacy-endpoints=true --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --num-nodes "2" --logging=SYSTEM,WORKLOAD --monitoring=SYSTEM --enable-ip-alias --network "projects/{GCP_PROJECT_ID}/global/networks/default" --subnetwork "projects/{GCP_PROJECT_ID}/regions/europe-west1/subnetworks/default" --no-enable-intra-node-visibility --default-max-pods-per-node "110" --security-posture=disabled --workload-vulnerability-scanning=disabled --no-enable-master-authorized-networks --addons HorizontalPodAutoscaling,HttpLoadBalancing,GcePersistentDiskCsiDriver --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0 --binauthz-evaluation-mode=DISABLED --no-enable-managed-prometheus --enable-shielded-nodes --region "europe-west1-c"

Build and deploy code using cloud shell

To authenticate to GCR use

gcloud auth configure-docker

Deploy Stackdriver Adapter

kubectl apply -f https://raw.githubusercontent.com/GoogleCloudPlatform/k8s-stackdriver/master/custom-metrics-stackdriver-adapter/deploy/production/adapter_new_resource_model.yaml

Build image with correct GCP_PROJECT_ID

gradle jib --image=gcr.io/GCP_PROJECT_ID/micrometer

Connect to GKE and then Deploy the chart

helm upgrade --install metric-test micrometer-test/ --set PROJECT_ID={GCP_PROJECT_ID}

See the scaling after a while

Scaled pods

Additional Links

These additional references should also help you:

SHA ID of docker image of stackdriver adapter

sha256:6937c0a9b2035d7ab4fee817703241161af149578c4ad685a9745070a92901f5

Outstanding

Identify why Kind External is needed.

micrometer's People

Contributors

apurvc avatar apurvchandra avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.