helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[k8s-stack] Default grafana dashboard "Kubernetes / Compute Resources / Pod" not working

Open nikmel2803 opened this issue 2 years ago • 3 comments

I ran into a problem that the "Kubernetes / Compute Resources / Pod" dashboard does not display RAM consumption:

image

During the research, I found that the metric does not have an image label, which is the request:

image

I also found the following config in values (link):

    metricRelabelConfigs:
      - action: labeldrop
        regex: (uid)
      - action: labeldrop
        regex: (id|name|image)
      - action: drop
        source_labels: [__name__]
        regex: (rest_client_request_duration_seconds_bucket|rest_client_request_duration_seconds_sum|rest_client_request_duration_seconds_count)

It can be seen that the label image is removed, which is why the dashboard does not work.

If you change this config to the following, then everything works:

        metricRelabelConfigs:
          - action: labeldrop
            regex: (uid)
          - action: labeldrop
            regex: (id|name)
          - action: drop
            source_labels: [ __name__ ]
            regex: (rest_client_request_duration_seconds_bucket|rest_client_request_duration_seconds_sum|rest_client_request_duration_seconds_count)

Graph displayed:

image

Does this mean the default values need to be changed to fix this issue

nikmel2803 avatar Apr 29 '22 15:04 nikmel2803

Thanks for reporting, will fixed. Workaround for now - change default value.

f41gh7 avatar Apr 29 '22 18:04 f41gh7

@f41gh7 Hi! Any progress on this?

sergeyshevch avatar Jun 21 '22 06:06 sergeyshevch

Should be fixed at the latest release

f41gh7 avatar Jul 06 '22 08:07 f41gh7

thanks! I confirm the fix

nikmel2803 avatar Oct 31 '22 18:10 nikmel2803