Open vorburger opened 1 year ago
Hey @vorburger , sorry for the delay in replying to you. Indeed, I think you'd have to use a "query" for this, which would have to come as a new feature to the project. I'd happy to accept a PR for this.
In the configuration file, it would be good to allow these queries to be added as a list, and an alias. Somethng like this;
customQueries:
- name: fooquery
value: "important in:inbox"
Which would then expose metrics like gmail_fooquery_total
.
@jamesread do you happen to know if the Gmail API could somehow allow us to count the Important messages in Inbox?
The
gmail_IMPORTANT_total
(andgmail_IMPORTANT_unread
) counts ALL messages, not just those which are (also)gmail_INBOX_total
(andgmail_INBOX_unread
) in the Inbox.Might it be possible to get a count for Gmail "queries", such as
is:important in:inbox
?