This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##################################### | |
| Instance: 10.74.147.10:7203 | |
| ##################################### | |
| Matching: 1/350. Bean name: kafka.network:type=RequestMetrics,name=RequestsPerSec,request=OffsetCommit,version=6 - Attribute name: Count - Attribute type: long | |
| Matching: 2/350. Bean name: kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchConsumer - Attribute name: 50thPercentile - Attribute type: double | |
| Matching: 3/350. Bean name: kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchConsumer - Attribute name: Mean - Attribute type: double | |
| Matching: 4/350. Bean name: kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchConsumer - Attribute name: 99thPercentile - Attribute type: double | |
| Matching: 5/350. Bean name: kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchConsumer - Attribute name: 999thPercentile - Attribute type: double |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### how to upload to gist with bash / curl | |
| DESC="file that I'm uploading" | |
| FNAME="file_to_upload" | |
| FPATH="/tmp/file_to_upload" | |
| # 1. Somehow sanitize the file content | |
| # Remove \r (from Windows end-of-lines), | |
| # Replace tabs by \t | |
| # Replace " by \" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FIXED_HOURLY_COSTS = { | |
| 'DISKS': { | |
| 'aws': { | |
| 'us-east-1': { | |
| 'io1': 0.125 / 30 / 24, | |
| 'gp2': 0.1 / 30 / 24, | |
| 'st1': 0.045 / 30 / 24, | |
| 'sc1': 0.025 / 30 / 24 | |
| }, | |
| 'us-east-2': { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # | |
| # cc-viz.py | |
| # | |
| # A hastily-thrown together collection of functions that gets confluent cloud metrics into datadog, graphite, or prometheus (or any combination of those) | |
| # | |
| GRAPHITE_HOST = '10.1.2.3' | |
| GRAPHITE_PORT = 2003 | |
| GRAPHITE_METRIC_PREFIX = 'confluent.cloud.kafka' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import boto3 | |
| import json | |
| from boto3.dynamodb.conditions import Key, Attr | |
| from datetime import datetime | |
| DIMENSION = 'logicalCpuCount' | |
| TABLE_NAME = 'ms-usage-metering' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SSH Agent | |
| if [[ ! $(ps -ef | grep "[s]sh-agent") ]]; then | |
| echo "Starting SSH Agent" | |
| eval $(ssh-agent -s) | |
| else | |
| ssh_agent_pid=$(pidof ssh-agent) | |
| socket=$(find /tmp/ssh* | grep agent) | |
| short_sock=$(find /tmp/ssh* | grep agent | cut -d '.' -f 2) | |
| if [[ "${short_sock::-2}" == "${ssh_agent_pid::-2}" ]]; then | |
| echo "Found ssh-agent running with pid ${ssh_agent_pid} and matching" |
OlderNewer