Skip to content

Commit

Permalink
chore(metrics): Added labels
Browse files Browse the repository at this point in the history
  • Loading branch information
emalinowski committed Jul 1, 2024
1 parent ea8dcce commit 13dae1a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions fence/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,47 +34,47 @@ def initialize_metrics(self, app):
app.wsgi_app, {"/metrics": make_wsgi_app(registry=app.prometheus_registry)}
)
self.presigned_url_counter = Counter(
"fence_presigned_url_requests_total",
"gen3_fence_presigned_url_requests_total",
"Total number of presigned URL requests",
registry=app.prometheus_registry,
)
self.login_counter = Counter(
"fence_all_login_requests_total",
"gen3_fence_all_login_requests_total",
"Total number of login requests",
registry=app.prometheus_registry,
)
self.fence_login_counter = Counter(
"fence_login_requests_total",
"gen3_fence_login_requests_total",
"Total number of fence login requests",
registry=app.prometheus_registry,
)
self.google_login_counter = Counter(
"google_login_requests_total",
"gen3_google_login_requests_total",
"Total number of Google login requests",
registry=app.prometheus_registry,
)
self.ras_login_counter = Counter(
"fence_ras_login_requests_total",
"gen3_fence_ras_login_requests_total",
"Total number of RAS login requests",
registry=app.prometheus_registry,
)
self.presigned_urls_ga4gh_drs_counter = Counter(
"fence_presigned_urls_ga4gh_drs_requests_total",
"gen3_fence_presigned_urls_ga4gh_drs_requests_total",
"Total number of presigned URL requests for GA4GH DRS",
registry=app.prometheus_registry,
)
self.presigned_url_download_protocol_gcs_counter = Counter(
"fence_presigned_url_download_protocol_gcs_requests_total",
"gen3_fence_presigned_url_download_protocol_gcs_requests_total",
"Total number of presigned URL requests for GCS",
registry=app.prometheus_registry,
)
self.presigned_url_download_protocol_s3_counter = Counter(
"fence_presigned_url_download_protocol_s3_requests_total",
"gen3_fence_presigned_url_download_protocol_s3_requests_total",
"Total number of presigned URL requests for S3",
registry=app.prometheus_registry,
)
self.presigned_url_data_metrics_size_gauge = Gauge(
"fence_presigned_url_data_metrics_size_bytes",
"gen3_fence_presigned_url_data_metrics_size_bytes",
"Size of data metrics in bytes",
["acl", "authz", "bucket", "user_sub", "client_id"],
registry=app.prometheus_registry,
Expand Down

0 comments on commit 13dae1a

Please sign in to comment.