Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion msstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ def process_google_service_account(

client = monitoring_v3.MetricServiceClient()
project_name = f"projects/{project_id}"
print(f"Working on project {project_id}:")

now = time.time()
seconds = int(now)
Expand All @@ -631,6 +632,7 @@ def process_google_service_account(
# https://cloud.google.com/memorystore/docs/redis/supported-monitoring-metrics

# Call the google cloud "redis.googleapis.com/commands/calls" to get commandstats
print(f"Loading the Redis metrics of calls (commandstats)...")
try:
results = list(
client.list_time_series(
Expand Down Expand Up @@ -729,6 +731,7 @@ def process_google_service_account(
}
)

print(f"Loading memory usage...")
try:
results = client.list_time_series(
request={
Expand All @@ -750,7 +753,7 @@ def process_google_service_account(
if database in metric_points:
metric_points[database][node_id]["BytesUsedForCache"] = BytesUsedForCache

# Retrieve MaxMemory (a.k.a. Capacity)
print(f"Loading MaxMemory (aka capacity)...")
try:
results = client.list_time_series(
request={
Expand Down