Skip to content

exprting api state - #161

Merged
tomellm merged 1 commit into
mainfrom
tom/#156-expose-api-state
May 27, 2024
Merged

tomellm merged 1 commit into
mainfrom
tom/#156-expose-api-state

Conversation

@tomellm

@tomellm tomellm commented May 27, 2024 •

Copy link
Copy Markdown
Contributor

#156 Through a new exporter the ApiRateLimitState is now exposed on the actuator endpoint. With this the rate-limit state can now be monitored on the Grafana side.

Two things to note here are:

  • The status Enum is converted to ordinal and set to CRITICAL in the case that the Optional is empty
  • When the optional is empty the api_ratelimit_state_paused metric is set to 1 indicating that the requesting has being paused.

Through a new exporter the ApiRateLimitState is now exposed on the actuator
endpoint. With this the rate-limit state can now be monitored on the
Grafana side.

Two things to note here are:
- The status enum is converted to ordinal and set to CRITICAL in the case that the
   Optional is empty
- When the optional is empty the api_ratelimit_state_paused metric is set to
   1 indicating that the reqzuesting has beeing paused.
@tomellm
tomellm force-pushed the tom/#156-expose-api-state branch from ae1459e to c891c67 Compare May 27, 2024 13:50
@sonarqubecloud

Copy link
Copy Markdown

@henrybley henrybley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@tomellm
tomellm merged commit 288ca84 into main May 27, 2024
@tomellm
tomellm deleted the tom/#156-expose-api-state branch May 27, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants