Skip to content

Commit

Permalink
Reduce Influx tag cardinality
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Mar 13, 2023
1 parent d85ca18 commit cbe27ef
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions twitch_hdt_ebs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ def post(self, request, format=None) -> Response:

write_point(
"pubsub_message",
{"count": 1},
channel_id=self.request.twitch_user_id,
{"count": 1, "channel_id": self.request.twitch_user_id},
status_code=resp.status_code,
message_type=serializer.validated_data["type"]
)
Expand Down Expand Up @@ -403,8 +402,7 @@ def get(self, request, user_id) -> Response:

write_point(
"live_check_request",
{"count": 1},
user_id=user_id,
{"count": 1, "user_id": user_id},
status_code=resp.status_code
)

Expand Down Expand Up @@ -435,8 +433,7 @@ def get(self, request, user_id) -> Response:

write_point(
"get_videos_request",
{"count": 1},
user_id=user_id,
{"count": 1, "user_id": user_id},
status_code=resp.status_code
)

Expand Down

0 comments on commit cbe27ef

Please sign in to comment.