Skip to content

Commit bf817f8

Browse files
committed
improve documentation wording
1 parent 6b975cd commit bf817f8

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ The metrics exposed beyond the default Prometheus metrics are:
186186
record uploads.
187187
* `deptracker_post_record_rate_limited`: the number of post attempts
188188
that were rate limited.
189-
* `deptracker_post_record_no_attestation`: the number of successful
190-
posts for container digest with no matching attestation for the org.
189+
* `deptracker_post_record_no_attestation`: the number of attempts
190+
that resulted in no matching attestation for the container digest
191+
(404 "no artifacts found" responses).
191192
* `deptracker_post_record_soft_fail`: the number of recoverable failed
192193
attempts to upload the deployment record.
193194
* `deptracker_post_record_hard_fail`: the number of failures to

pkg/deploymentrecord/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (c *ClientError) Unwrap() error {
160160
return c.err
161161
}
162162

163-
// NoArtifactError represents a 404 client response where no artifact was found.
163+
// NoArtifactError represents a 404 client response whose body indicates "no artifacts found".
164164
type NoArtifactError struct {
165165
err error
166166
}

pkg/dtmetrics/prom.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ var (
5353
PostDeploymentRecordNoAttestation = promauto.NewCounter(
5454
prometheus.CounterOpts{
5555
Name: "deptracker_post_record_no_attestation",
56-
Help: "The total number of successful posts for container digest with no matching attestation for the org",
56+
Help: "The total number of post attempts that resulted in no matching attestation for the container digest (404 'no artifacts found' responses)",
5757
},
5858
)
5959

6060
//nolint: revive
6161
PostDeploymentRecordRateLimited = promauto.NewCounter(
6262
prometheus.CounterOpts{
6363
Name: "deptracker_post_record_rate_limited",
64-
Help: "The total number of post failures due to rate limits",
64+
Help: "The total number of post attempts that were rate limited",
6565
},
6666
)
6767

0 commit comments

Comments
 (0)