Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Reorganise request and block metrics #2785

Merged
merged 4 commits into from
Jan 16, 2018
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 15, 2018

In order to circumvent the number of duplicate foo:count metrics increasing without bounds, it's time for a rearrangement.

The following are all deprecated, and replaced with synapse_util_metrics_block_count:
synapse_util_metrics_block_timer:count
synapse_util_metrics_block_ru_utime:count
synapse_util_metrics_block_ru_stime:count
synapse_util_metrics_block_db_txn_count:count
synapse_util_metrics_block_db_txn_duration:count

The following are all deprecated, and replaced with synapse_http_server_response_count:
synapse_http_server_requests
synapse_http_server_response_time:count
synapse_http_server_response_ru_utime:count
synapse_http_server_response_ru_stime:count
synapse_http_server_response_db_txn_count:count
synapse_http_server_response_db_txn_duration:count

The following are renamed (the old metrics are kept for now, but deprecated):

synapse_util_metrics_block_timer:total ->
synapse_util_metrics_block_time_seconds

synapse_util_metrics_block_ru_utime:total ->
synapse_util_metrics_block_ru_utime_seconds

synapse_util_metrics_block_ru_stime:total ->
synapse_util_metrics_block_ru_stime_seconds

synapse_util_metrics_block_db_txn_count:total ->
synapse_util_metrics_block_db_txn_count

synapse_util_metrics_block_db_txn_duration:total ->
synapse_util_metrics_block_db_txn_duration_seconds

synapse_http_server_response_time:total ->
synapse_http_server_response_time_seconds

synapse_http_server_response_ru_utime:total ->
synapse_http_server_response_ru_utime_seconds

synapse_http_server_response_ru_stime:total ->
synapse_http_server_response_ru_stime_seconds

synapse_http_server_response_db_txn_count:total ->
synapse_http_server_response_db_txn_count

synapse_http_server_response_db_txn_duration:total ->
synapse_http_server_response_db_txn_duration_seconds

@richvdh richvdh force-pushed the rav/reorganise_metrics_again branch from 100309c to f18883b Compare January 15, 2018 17:04
In order to circumvent the number of duplicate foo:count metrics increasing
without bounds, it's time for a rearrangement.

The following are all deprecated, and replaced with synapse_util_metrics_block_count:
  synapse_util_metrics_block_timer:count
  synapse_util_metrics_block_ru_utime:count
  synapse_util_metrics_block_ru_stime:count
  synapse_util_metrics_block_db_txn_count:count
  synapse_util_metrics_block_db_txn_duration:count

The following are all deprecated, and replaced with synapse_http_server_response_count:
   synapse_http_server_requests
   synapse_http_server_response_time:count
   synapse_http_server_response_ru_utime:count
   synapse_http_server_response_ru_stime:count
   synapse_http_server_response_db_txn_count:count
   synapse_http_server_response_db_txn_duration:count

The following are renamed (the old metrics are kept for now, but deprecated):

  synapse_util_metrics_block_timer:total ->
     synapse_util_metrics_block_time_seconds

  synapse_util_metrics_block_ru_utime:total ->
     synapse_util_metrics_block_ru_utime_seconds

  synapse_util_metrics_block_ru_stime:total ->
     synapse_util_metrics_block_ru_stime_seconds

  synapse_util_metrics_block_db_txn_count:total ->
     synapse_util_metrics_block_db_txn_count

  synapse_util_metrics_block_db_txn_duration:total ->
     synapse_util_metrics_block_db_txn_duration_seconds

  synapse_http_server_response_time:total ->
     synapse_http_server_response_time_seconds

  synapse_http_server_response_ru_utime:total ->
     synapse_http_server_response_ru_utime_seconds

  synapse_http_server_response_ru_stime:total ->
     synapse_http_server_response_ru_stime_seconds

   synapse_http_server_response_db_txn_count:total ->
      synapse_http_server_response_db_txn_count

   synapse_http_server_response_db_txn_duration:total
      synapse_http_server_response_db_txn_duration_seconds
return flatten(
self._render_for_labels(k, value[k])
for k in sorted(value.keys())
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is k here really going to be a list? Why do we need to flatten this when we didn't previously?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I'm an idiot, nevermind

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@erikjohnston erikjohnston assigned richvdh and unassigned erikjohnston Jan 16, 2018
@richvdh richvdh merged commit febdca4 into develop Jan 16, 2018
@richvdh richvdh deleted the rav/reorganise_metrics_again branch January 16, 2018 15:45
richvdh added a commit that referenced this pull request Jan 18, 2018
... which I introduced in #2785
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants