Skip to content

Commit 8e74ce3

Browse files
authored
Add a few logs (#21)
1 parent 10263bc commit 8e74ce3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

msstats.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ def process_google_project(project_id, duration=604800, step=60):
609609

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

613614
now = time.time()
614615
seconds = int(now)
@@ -634,6 +635,7 @@ def process_google_project(project_id, duration=604800, step=60):
634635
# https://cloud.google.com/memorystore/docs/redis/supported-monitoring-metrics
635636

636637
# Call the google cloud "redis.googleapis.com/commands/calls" to get commandstats
638+
print(f"Loading the Redis metrics of calls (commandstats)...")
637639
try:
638640
results = list(
639641
client.list_time_series(
@@ -732,6 +734,7 @@ def process_google_project(project_id, duration=604800, step=60):
732734
}
733735
)
734736

737+
print(f"Loading memory usage...")
735738
try:
736739
results = client.list_time_series(
737740
request={
@@ -753,7 +756,7 @@ def process_google_project(project_id, duration=604800, step=60):
753756
if database in metric_points:
754757
metric_points[database][node_id]["BytesUsedForCache"] = BytesUsedForCache
755758

756-
# Retrieve MaxMemory (a.k.a. Capacity)
759+
print(f"Loading MaxMemory (aka capacity)...")
757760
try:
758761
results = client.list_time_series(
759762
request={

0 commit comments

Comments
 (0)