[ https://issues.apache.org/jira/browse/AMBARI-26504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikita Pande updated AMBARI-26504: ---------------------------------- Description: The "Metrics" tab within a service's detailed view (e.g., Services > HDFS > Metrics) is powered by the Ambari Metrics System (AMS) and Grafana. When you define metrics and widgets in the {{metrics.json}} and {{widgets.json}} files , Ambari renders these pre-defined widgets on the service's "Metrics" tab. h3. Creating a Custom Widget via the UI Ambari provides a wizard to create new widgets directly from the UI, using the metrics that Ambari is already aware of (i.e., those defined in {{metrics.json}} and being collected by AMS). # {*}Open the Widget Browser{*}. # In the Widget Browser, click the *"Create Widget"* button (usually at the top right of the dialog). This will launch the "Create Widget" wizard. *Create Widget Wizard Steps:* * *Step 1: Details* * ** *Widget Type:* Choose the visualization type: *** *Graph:* For displaying trends over time. *** *Gauge:* For displaying a single value within a range (e.g., percentage full). *** *Number:* For displaying a single numerical value. *** *Template:* For displaying combined text and metric values. ** Click {*}"Next"{*}. * *Step 2: Metrics* * ** This is the most critical step. Here, you select which metrics to include in your widget. ** *Select Metric:* Choose a metric from the dropdown. This dropdown populates from the metrics defined in your {{metrics.json}} for the current service. ** *Component:* Select the specific component (e.g., {{{}MY_CUSTOM_SERVICE_MASTER{}}}) that exposes this metric. ** *Aggregator:* For graph or number widgets, select an aggregation function: *** *Avg:* Average value across all instances of the component. *** *Max:* Maximum value. *** *Min:* Minimum value. *** *Sum:* Sum of values. ** *Add Operator: + - /* / ( )* ** *Add Metric:* Click this to add more metrics to the same widget (especially useful for graphs with multiple lines). ** {*}Set Thresholds{*}: Warning and Critical ** Click {*}"Next"{*}. * *Step 3: Name and Description* * *Preview and Save* * ** Review your widget configuration. ** The wizard will often show a preview of how your widget will look. ** Click {*}"Save"{*}. Your newly created widget will now appear on the service's "Metrics" tab. was: The "Metrics" tab within a service's detailed view (e.g., Services > HDFS > Metrics) is powered by the Ambari Metrics System (AMS) and Grafana. When you define metrics and widgets in the {{metrics.json}} and {{widgets.json}} files , Ambari renders these pre-defined widgets on the service's "Metrics" tab. h3. Creating a Custom Widget via the UI Ambari provides a wizard to create new widgets directly from the UI, using the metrics that Ambari is already aware of (i.e., those defined in {{metrics.json}} and being collected by AMS). # {*}Open the Widget Browser{*}. # In the Widget Browser, click the *"Create Widget"* button (usually at the top right of the dialog). This will launch the "Create Widget" wizard. *Create Widget Wizard Steps:* * *Step 1: Details* ** *Widget Type:* Choose the visualization type: *** *Graph:* For displaying trends over time. *** *Gauge:* For displaying a single value within a range (e.g., percentage full). *** *Number:* For displaying a single numerical value. *** *Template:* For displaying combined text and metric values. ** Click {*}"Next"{*}. * *Step 2: Metrics* ** This is the most critical step. Here, you select which metrics to include in your widget. ** *Select Metric:* Choose a metric from the dropdown. This dropdown populates from the metrics defined in your {{metrics.json}} for the current service. ** *Component:* Select the specific component (e.g., {{{}MY_CUSTOM_SERVICE_MASTER{}}}) that exposes this metric. ** *Aggregator:* For graph or number widgets, select an aggregation function: *** *Avg:* Average value across all instances of the component. *** *Max:* Maximum value. *** *Min:* Minimum value. *** *Sum:* Sum of values. ** *Add Operator: + - /* / ( )* ** *Add Metric:* Click this to add more metrics to the same widget (especially useful for graphs with multiple lines). ** {*}Set Thresholds{*}: Warning and Critical ** Click {*}"Next"{*}. * *Step 3: Preview and Save* ** Review your widget configuration. ** The wizard will often show a preview of how your widget will look. ** Click {*}"Save"{*}. Your newly created widget will now appear on the service's "Metrics" tab. > Ambari Web React: Services Metrics Action - Create Widget > --------------------------------------------------------- > > Key: AMBARI-26504 > URL: https://issues.apache.org/jira/browse/AMBARI-26504 > Project: Ambari > Issue Type: Story > Reporter: Nikita Pande > Priority: Major > > The "Metrics" tab within a service's detailed view (e.g., Services > HDFS > > Metrics) is powered by the Ambari Metrics System (AMS) and Grafana. When you > define metrics and widgets in the {{metrics.json}} and {{widgets.json}} files > , Ambari renders these pre-defined widgets on the service's "Metrics" tab. > > h3. Creating a Custom Widget via the UI > Ambari provides a wizard to create new widgets directly from the UI, using > the metrics that Ambari is already aware of (i.e., those defined in > {{metrics.json}} and being collected by AMS). > # {*}Open the Widget Browser{*}. > # In the Widget Browser, click the *"Create Widget"* button (usually at the > top right of the dialog). This will launch the "Create Widget" wizard. > *Create Widget Wizard Steps:* > * *Step 1: Details* > * > ** *Widget Type:* Choose the visualization type: > *** *Graph:* For displaying trends over time. > *** *Gauge:* For displaying a single value within a range (e.g., percentage > full). > *** *Number:* For displaying a single numerical value. > *** *Template:* For displaying combined text and metric values. > ** Click {*}"Next"{*}. > * *Step 2: Metrics* > * > ** This is the most critical step. Here, you select which metrics to include > in your widget. > ** *Select Metric:* Choose a metric from the dropdown. This dropdown > populates from the metrics defined in your {{metrics.json}} for the current > service. > ** *Component:* Select the specific component (e.g., > {{{}MY_CUSTOM_SERVICE_MASTER{}}}) that exposes this metric. > ** *Aggregator:* For graph or number widgets, select an aggregation function: > *** *Avg:* Average value across all instances of the component. > *** *Max:* Maximum value. > *** *Min:* Minimum value. > *** *Sum:* Sum of values. > ** *Add Operator: + - /* / ( )* > ** *Add Metric:* Click this to add more metrics to the same widget > (especially useful for graphs with multiple lines). > ** {*}Set Thresholds{*}: Warning and Critical > ** Click {*}"Next"{*}. > * *Step 3: Name and Description* > * *Preview and Save* > * > ** Review your widget configuration. > ** The wizard will often show a preview of how your widget will look. > ** Click {*}"Save"{*}. > Your newly created widget will now appear on the service's "Metrics" tab. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org For additional commands, e-mail: issues-h...@ambari.apache.org