Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
/ monitoring_rpm Public archive

Transforming certain metric (in this case loadbalancing.googleapis.com/https/request_count) from google monitoring to a custom metric

Notifications You must be signed in to change notification settings

pduchnovsky/monitoring_rpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is designed for transforming certain metric (in this case loadbalancing.googleapis.com/https/request_count) from google monitoring to a custom metric so it could be used as a target for Kubernetes Horizontal Pod Autoscaler even if you'd like to filter special characters that normally can't be used within HPA.

This script is designed to run with 'every 1 minute' schedule, it internally performs several runs to cover at least 1 minute and ignores errors related to 'duplicate' descriptors and so on.

Prepare local environment

Install packages

nvm install 12
npm install

Set an environment variable with a path to your auth key

export GOOGLE_APPLICATION_CREDENTIALS="KEY_PATH"

Run the script

node app.js

Note

If you'd like to delete certain custom descriptors, use script delete_metric_descriptors.js

About

Transforming certain metric (in this case loadbalancing.googleapis.com/https/request_count) from google monitoring to a custom metric

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published