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

Logs dashboard #866

Closed

Conversation

v-zhuravlev
Copy link
Contributor

This adds conditional pods logs dashboard by using log library, that can be used to generate dashboard in any mixin (Linux, Windows, Clickhouse, MySQL, PostgreSQL etc) with custom chained label selectors.

image

Features:

  • Enable or disable dash with enableLokiLogs
  • Use common kube labels as selectors: ['cluster', 'namespace', 'app', 'pod', 'container']
  • Use free type regex_search variable to 'grep' lines as last resort
  • Enable or disable graph that shows log volume grouped by application label (configurable). Suggested default is app, which is available in default promtail helm chart.
  • Smart line output:
    • Append with pod name by default. If pod variable is selected - append with container name instead.
    • Don't show timestamps to preserve space, but store timestamp in additional field to have an option to view it.

Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
@povilasv
Copy link
Contributor

povilasv commented Nov 8, 2023

Hey, original mixin is only Grafana dashboard and Prometheus Alerting and recording rules. See https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/master/DESIGN.md#aims

The logging part I would say an open question. And which logging system fits Monitoring Mixins best is also an open question. If we would merge this, this means that we are going into direction Grafana's Loki product.

@v-zhuravlev
Copy link
Contributor Author

Sure, but this logs additional is still a Grafana dashboard as well, but with different DS. It is opt-in addition, no problem if you don't you use Loki, you just keep it disabled.

Copy link

github-actions bot commented Sep 6, 2024

This PR has been automatically marked as stale because it has not
had any activity in the past 30 days.

The next time this stale check runs, the stale label will be
removed if there is new activity. The issue will be closed in 7
days if there is no new activity.

Thank you for your contributions!

@github-actions github-actions bot added the stale label Sep 6, 2024
@github-actions github-actions bot closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants