NetApp / harvest

Open-metrics endpoint for ONTAP and StorageGRID
https://netapp.github.io/harvest/latest
Apache License 2.0
150 stars 37 forks source link

Storagegrid overview dashboard #1718

Closed rahulguptajss closed 1 year ago

rahulguptajss commented 1 year ago

Test story for #1420

rahulguptajss commented 1 year ago

Typo Space used

image

Most of these panel legend do not have cluster in their legend. In case of multi select, it is not possible to distinguish the information.

image

rahulguptajss commented 1 year ago

verified in 23.02

Bhagyasri-Dolly commented 5 months ago

using harvest prometheus - what all metrics we can collect from storage grid i can pull the metrics which are in con/storagegrid_metrics.yaml how to pull more metrics from storage grid

cgrinds commented 5 months ago

Hi @Bhagyasri-Dolly Harvest can collect any of the Prometheus metrics that StorageGRID makes available. As you noted, you can extend or modify the template at conf/storagegrid/11.6.0/storagegrid_metrics.yaml or create an new template that has a similar shape as storagegrid_metrics.yaml.

Here's a snippet from that file:

name:   Prometheus
query:  prometheus
object: storagegrid

schedule:
  - data: 3m

counters:
  - node_cpu_seconds_total
  - storagegrid_ilm_awaiting_client_objects  =>  ilm_awaiting_client_objects

The counter name on the left side is the name of the StorageGRID counter you want to collect and the name on the right side is the name you want Harvest to use when exporting this counter.

The right side will be prefixed with the template's object value (in the example above storagegrid). When the right side is not defined, the left side is used instead.

Here are a few examples continuing with the template above:

Bhagyasri-Dolly commented 4 months ago

hello @cgrinds - since the rightside is not defined below - How can i use the metric "cassandra_clientrequest_casread_percentile "with out prefix "storagegrid " Requiremenet : i want to display the metric name with out storage grid prefix

Example : name: Prometheuscassandra query: prometheus object: storagegrid

schedule:

counters:

plugins:

cgrinds commented 4 months ago

Harvest does not have a way to disable object prefixing. You could create a new template with an object name of cassandra and add the counters you want there as a workaround. If you have lots of different Prometheus metrics to scrape that is not the best solution.

If you would prefer Harvest to support object prefix disabling, can you create a feature request for that and we'll add it?

cgrinds commented 4 months ago

I created issue #3021 for this @Bhagyasri-Dolly

cgrinds commented 4 months ago

@Bhagyasri-Dolly these changes are in the latest nightly build if you want to give them a try.

Bhagyasri-Dolly commented 4 months ago

Sure thank you so much for the update.

On Mon, Jul 1, 2024, 6:16 PM Chris Grindstaff @.***> wrote:

@Bhagyasri-Dolly https://github.com/Bhagyasri-Dolly these changes are in the latest nightly build https://github.com/NetApp/harvest/releases/tag/nightly if you want to give them a try.

— Reply to this email directly, view it on GitHub https://github.com/NetApp/harvest/issues/1718#issuecomment-2200050940, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUOYI2TMVSXBH26XVD5LTJDZKFFSFAVCNFSM6AAAAAAUZ6XRVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGA2TAOJUGA . You are receiving this because you were mentioned.Message ID: @.***>