Closed rahulguptajss closed 1 year ago
Typo Space used
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.
verified in 23.02
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
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:
node_cpu_seconds_total
- this is the name of the metric that you want to collect from StorageGRID. Since a right side is not defined, Harvest will use node_cpu_seconds_total
for the right side, and after prefixing, Harvest will export that metric as storagegrid_node_cpu_seconds_total
.
storagegrid_ilm_awaiting_client_objects
name of the metric that you want to collect from StorageGRID. The right side is defined as ilm_awaiting_client_objects
, which after prefixing, means Harvest will export that metric as storagegrid_ilm_awaiting_client_objects
.
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:
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?
I created issue #3021 for this @Bhagyasri-Dolly
@Bhagyasri-Dolly these changes are in the latest nightly build if you want to give them a try.
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: @.***>
Test story for #1420