Skip to content

added compute metrics by status#231

Merged
leklund merged 1 commit intofastly:mainfrom
0daryo:feature-add-compute-individual-status
Dec 23, 2025
Merged

added compute metrics by status#231
leklund merged 1 commit intofastly:mainfrom
0daryo:feature-add-compute-individual-status

Conversation

@0daryo
Copy link
Contributor

@0daryo 0daryo commented Dec 15, 2025

CLOSE #230

% curl http://127.0.0.1:8080/metrics

(...)
fastly_rt_compute_status_code_total{datacenter="GRU",service_id="XXX",service_name="example.com",status_code="200"} 425
(...)
fastly_rt_compute_status_code_total{datacenter="GRU",service_id="XXX",service_name="example.com",status_code="500"} 0

ComputeRespBodyBytesTotal *prometheus.CounterVec
ComputeRespHeaderBytesTotal *prometheus.CounterVec
ComputeRespStatusTotal *prometheus.CounterVec
ComputeStatusCodeTotal *prometheus.CounterVec
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The metric name compute_status_code_total follows the existing VCL metric naming convention status_code_total, providing consistency across both VCL and Compute platforms.

@leklund leklund self-assigned this Dec 23, 2025
@leklund
Copy link
Member

leklund commented Dec 23, 2025

@0daryo Thank you so much for the contribution. This looks great!

@leklund leklund added the enhancement New feature or request label Dec 23, 2025
@leklund leklund merged commit 81ce809 into fastly:main Dec 23, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Add individual status code metrics for Compute platform

2 participants