-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add Logging dashboards (Loki, Logs, Fluent-bit) #2745
Add Logging dashboards (Loki, Logs, Fluent-bit) #2745
Conversation
10afdfc
to
fb88032
Compare
96c2445
to
a0acb6b
Compare
fb88032
to
f9aabd9
Compare
a0acb6b
to
0765628
Compare
Pretty cool dashboards, just few things:
|
16ea9b1
to
be626c7
Compare
25835e1
to
ccd1898
Compare
be626c7
to
c0a0a46
Compare
ccd1898
to
50d8903
Compare
Hello teddyandrieux,My role is to assist you with the merge of this Status report is not available. |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
|
Take Loki operational dashboard from Grafana GitHub repository https://github.com/grafana/loki/blob/fdf6208dd479c95777a82f29374acb26c0a0c51a/production/loki-mixin/dashboard-loki-operational.json Refs: #2721
We cannot use the Loki dashboard from Grafana repository as is, so some tuning was needed to use this dashboard: - We do not have Chunks, Memcached, Promtail, BigTable Backup, Consul dashboard, so remove links to these dashboards - We do not use Memcached, Consul, Big Table, GCS, Dynamo, S3, Cassandra, so remove these from the dashboard - We only have a single Loki Pod for Distributor + Ingester + Querier, so regroup panel when distinction do not make sense (e.g.: CPU, Ram consumption) - Since we only have a single Pod for Distributor + Ingester + Querier, adapt the query from all panels to query this Pod instead of `$namespace/Distributor`, ... - We only consider a single Loki cluster for MetalK8s deployment so hide the `cluster` templating from the dashboard - We do not use PromTail so the `Bad Words` panel do not make sense, replace it with a `Total Logs/Second` panel - Add links to Fluent-bit and Logs dashboards - Refactor a bit the dashboard organization so that it looks great with the previous changes Refs: #2721
Create an SLS to deploy the Loki dashboard from charts Refs: #2721
Take Loki logs dashboard from Grafana GitHub repository https://github.com/grafana/loki/blob/a5aa34137a48b69ec2b005719e134fbeb68af6ec/production/loki-mixin/dashboard-loki-logs.json Refs: #2721
We cannot use the Logs dashboard from Grafana loki repository as is, so some tunning was needed to use this dashboard: - We do not have `level` label for the moment, so remove this from all query and also the variable - We have a label for node and ability to filter logs per node look like a great feature, so added it - We do not use promtail so remove the graph related to promtail and instead have a graph for Memory usage on the selected containers - We only consider a single Loki cluster for MetalK8s deployment so hide the `cluster` templating from the dashboard - We also have system logs, so add 2 variables to enable, disable system logs and/or pods logs and adapt the query accordingly (NOTE: the method used to filter is a bit ugly, if system logs are disabled we query for logs with `node` label non-empty, because `node` label is empty on system logs, and we do the same with `hostname` for pod logs) - Add links to Loki and Fluent-bit dashboards - Refactor a bit the dashboard organization so that it looks great with the previous changes Refs: #2721
Create an SLS to deploy the Logs dashboard from charts Refs: #2721
Take fluent-bit dashboard from fluent GitHub repository https://github.com/fluent/fluent-bit-docs/blob/bc0b2fac9276b9d12dc09ae1061705fa550a270b/monitoring/dashboard.json Refs: #2721
Create an SLS to deploy the Fluent-bit dashboard from charts Refs: #2721
Add link to Loki and Logs dashboards and add a templating variable for `DS_PROMETHEUS` Refs: #2721
50d8903
to
2e18ee6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks really great!
Just one thing, there is too much selectors in the log dashboard, but I don't see a way of reducing this number. Maybe splitting system & pod logs ? But one may want to see both on the same page... IDK.
I think we can go with that and if we have feedback from TS, we could improve this later.
/approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue GH-2721. Goodbye teddyandrieux. |
Component:
'salt', 'build', 'logging'
Context:
#2721
Summary:
Fixes: #2721