Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/grafana tools #21

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Feat/grafana tools #21

wants to merge 3 commits into from

Conversation

danielpaulus
Copy link
Contributor

@danielpaulus danielpaulus commented Nov 29, 2024

This pull request introduces a new LokiClient class and associated tests to interact with a Loki logging service. The changes include the implementation of various methods to query logs and retrieve data from Loki, as well as the setup of environment variables and test cases to validate the functionality.

New LokiClient class implementation:

  • src/grafana/lokiclient.ts: Added LokiClient class with methods to query logs, count logs by level, get all environments, get all apps, and fetch errors for a service.

Test cases for LokiClient:

  • src/grafana/lokiclient.spec.ts: Added test cases to validate the LokiClient methods, including counting logs by level, getting available services, and running queries.

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.

1 participant