Skip to content

Commit

Permalink
docs: Support for custom queries (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed May 14, 2024
1 parent c378869 commit e2a475d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ gmail_Label_33_total 159.0
# HELP gmail_Label_33_unread >/0. Triage Unread
# TYPE gmail_Label_33_unread gauge
gmail_Label_33_unread 0.0
# HELP gmail_fooquery fooquery
# TYPE gmail_fooquery gauge
gmail_fooquery 201.0
```

## Example configuration file (`prometheus-gmail-exporter.yaml`)

```yaml
labels:
- Label_33

customQueries:
- name: fooquery
query: "important in:inbox"
```
## Setup API access
Expand Down

0 comments on commit e2a475d

Please sign in to comment.