Skip to content

Instantly share code, notes, and snippets.

View manugarg's full-sized avatar
😀
Building browser probe for Cloudprober - github.com/orgs/cloudprober/projects/6

Manu Garg manugarg

😀
Building browser probe for Cloudprober - github.com/orgs/cloudprober/projects/6
View GitHub Profile
"Simple, easy, and utilitarian. Exactly what I was looking for."
-- Owen Johnson
"Tried 20+ extension for onsite notes, this is the best in Chrome Web Store"
-- Henry Rundkvist
"So simple, yet so great! the info I need, exactly when I need it. Thank you, Manu Garg, great work! :)"
-- Elaine Migues
"Excellent to keep notes. Simple and intuitive. Love the ability to synchronize between devices."
-- Spiros Kakos
"I just started using it but it was exactly what I was looking for something just to jot down a simple note on a website like an episode number in a series to remember which episode you were on. Unlike others this was simple to use and setup."
-- Cole Osborne
"Simple, fast and effective. you have a winner here."
-- Sean Bugeja
" Simple and effective. Just what I needed." -- Pedro
@manugarg
manugarg / Comparison Table.md
Last active September 11, 2024 21:55
why_probers_comparison_table.md
Probers Service Metrics and Logs Real User Monitoring
Reliability of signal High Moderate Low as signal is noisy
Initial ease and cost of implementation Significant initial investment Easy Moderate to significant initial investment
Closeness to the user? Very Close Not close Super close but noisy
@manugarg
manugarg / gist:81d68bc17b455664bfacff541f29cea3
Last active January 6, 2020 18:45
TLS certificate to authenticate to K8s API Server
# Generate private key for RDS
openssl genrsa -out rds.key 4096
# Create certificate signing request config (config for CSR: [1])
cat > /tmp/csr.cnf <<END
[ req ]
default_bits = 2048
prompt = no
default_md = sha256
distinguished_name = dn
@manugarg
manugarg / gist:1726dfbbc312c0a074d592140dae9aee
Last active December 10, 2019 19:40
OAuth support in Cloudprober HTTP probes
OAuth is a widely used HTTP authentication mechanism these days. It will be nice to add some OAuth support to Cloudprober.
This feature has also been requested by the users:
https://github.com/google/cloudprober/issues/27
Main complexity in adding OAuth support is in managing the token itself: How do we get it -- from config or retrieve from
somewhere at the runtime, how often to refresh it, etc.
Since OAuth tokens usually expire, it's not very useful to specify tokens in the config or even environment variable
(environment variables are passed at the process at the start time). In the config, we should specify the token source
and how often to access that token source. For example, a config could look like this: