Use labels to reduce number of metrics #153

Closed
opened 2023-06-27 11:24:46 +00:00 by alexvanin · 0 comments

As in TrueCloudLab/frostfs-node#435, gateway can reduce number of metrics by using labels.

According to dumped metrics, I found that these two metrics can be merged into one with a direction label (as we done in for frostfs_s3_gw_billing_user_traffic metric).

  {
    "type": "GAUGE",
    "name": "frostfs_s3_gw_statistic_tx_bytes_total",
    "help": "Total number of bytes sent by current FrostFS S3 Gate instance"
  },
  {
    "type": "GAUGE",
    "name": "frostfs_s3_gw_statistic_rx_bytes_total",
    "help": "Total number of bytes received by current FrostFS S3 Gate instance"
  },
As in https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/435, gateway can reduce number of metrics by using labels. According to dumped metrics, I found that these two metrics can be merged into one with a direction label (as we done in for `frostfs_s3_gw_billing_user_traffic` metric). ```json { "type": "GAUGE", "name": "frostfs_s3_gw_statistic_tx_bytes_total", "help": "Total number of bytes sent by current FrostFS S3 Gate instance" }, { "type": "GAUGE", "name": "frostfs_s3_gw_statistic_rx_bytes_total", "help": "Total number of bytes received by current FrostFS S3 Gate instance" }, ```
alexvanin added the
good first issue
label 2023-06-27 11:24:46 +00:00
alexvanin changed title from Use labels to to Use labels to reduce number of metrics 2023-06-27 11:24:57 +00:00
mbiryukova self-assigned this 2023-08-15 07:22:28 +00:00
alexvanin added this to the v0.28.0 milestone 2023-09-08 12:02:59 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#153
There is no content yet.