Skip to content

Commit 26f0536

Browse files
committed
docs: Add new metrics to README
1 parent 3ed476a commit 26f0536

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Required authentication scopes:
3232

3333
To authenticate this way, only set `CF_API_TOKEN` (omit `CF_API_EMAIL` and `CF_API_KEY`)
3434

35+
[Shortcut to create the API token](https://dash.cloudflare.com/profile/api-tokens?permissionGroupKeys=%5B%7B%22key%22%3A%22account_analytics%22%2C%22type%22%3A%22read%22%7D%2C%7B%22key%22%3A%22account_settings%22%2C%22type%22%3A%22read%22%7D%2C%7B%22key%22%3A%22analytics%22%2C%22type%22%3A%22read%22%7D%2C%7B%22key%22%3A%22firewall_services%22%2C%22type%22%3A%22read%22%7D%5D&name=Cloudflare+Exporter&accountId=*&zoneId=all)
36+
3537
### User email + API key
3638
To authenticate with user email + API key, use the `Global API Key` from the Cloudflare dashboard.
3739
Beware that this key authenticates with write access to every Cloudflare resource.
@@ -104,6 +106,9 @@ Note: `ZONE_<name>` configuration is not supported as flag.
104106
# HELP cloudflare_zone_pool_requests_total Requests per pool
105107
# HELP cloudflare_logpush_failed_jobs_account_count Number of failed logpush jobs on the account level
106108
# HELP cloudflare_logpush_failed_jobs_zone_count Number of failed logpush jobs on the zone level
109+
# HELP cloudflare_r2_operation_count Number of operations performed by R2
110+
# HELP cloudflare_r2_storage_bytes Storage used by R2
111+
# HELP cloudflare_r2_storage_total_bytes Total storage used by R2
107112
```
108113

109114
## Helm chart repository

cloudflare.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,6 @@ func fetchR2Account(accountID string) (*cloudflareResponseR2Account, error) {
758758
now := time.Now().Add(-time.Duration(viper.GetInt("scrape_delay")) * time.Second).UTC()
759759
s := 60 * time.Second
760760
now = now.Truncate(s)
761-
now1mAgo := now.Add(-60 * time.Second)
762761

763762
request := graphql.NewRequest(`query($accountID: String!, $limit: Int!, $date: String!) {
764763
viewer {

0 commit comments

Comments
 (0)