# Show \*all\* metrics as Netdata does

**URL:** <https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410>\
**Category:** Metrics\
**Created:** [August 26, 2020, 8:33am UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410 "2020-08-26T08:33:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [August 26, 2020, 8:33am UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/1 "2020-08-26T08:33:53Z")

</div>

Hi how can I display _all_ metrics, one by one, each as a row? Just like: [https://london.my-netdata.io/](https://london.my-netdata.io/) this example. Thanks very much!

---

<div class="post-metadata">

**Author:** ![afgomez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afgomez/32/59274_2.png) [@afgomez](https://discuss.elastic.co/u/afgomez)\
**Post date:** [August 27, 2020, 9:18am UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/2 "2020-08-27T09:18:22Z")

</div>

Hi @fzyzcjy,

What I understand from your example is that you want to see all metrics for one host, correct?

If that's the case, you can do so from the metrics app. From the inventory view, click on the host that you want to inspect and a meny will appear. From there you can select "host metrics", which will show you all available metrics for that host.

 ![Screenshot 2020-08-27 at 11.12.58](https://us1.discourse-cdn.com/elastic/original/3X/5/5/558e0f0535531789761c6cef85d5a4ba0b803144.png)

---

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [August 27, 2020, 10:05am UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/3 "2020-08-27T10:05:55Z")

</div>

Thanks for the reply! Sorry I do not see _all_ metrics. I only see things like CPU memory etc. But I collect hundreds of metrics by getting data from Prometheus exporter (thus it is automatically stored such as `prothemethus.metrics.redis_some_metric_one`). Thus my question is how to see them?  
Thanks!

---

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [August 28, 2020, 3:53am UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/4 "2020-08-28T03:53:06Z")

</div>

@afgomez Hi I am new to Elastic forum so I forgot to @ your id. Sorry for that

---

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [August 29, 2020, 9:14am UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/5 "2020-08-29T09:14:13Z")

</div>

@afgomez Hi I have a naive idea: Can I use Python Elasticsearch to query all available field names (promethue.metrics.\*), and then assemble a big json file representing dashboard, then use [the api](https://github.com/elastic/kibana/pull/10858) to programmatically import into kibana.

Thanks for any suggestions!

---

<div class="post-metadata">

**Author:** ![afgomez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afgomez/32/59274_2.png) [@afgomez](https://discuss.elastic.co/u/afgomez)\
**Post date:** [September 3, 2020, 1:53pm UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/6 "2020-09-03T13:53:04Z")

</div>

Sorry for the late reply!

> [@fzyzcjy](#):
>
> Can I use Python Elasticsearch to query all available field names (promethue.metrics.\*), and then assemble a big json file representing dashboard, then use the api to programmatically import into kibana.

I don't think this can be an option 😕 The import API is intended to be used with [the response of the export API](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api.html#dashboard-api-import-request-body).

> [@fzyzcjy](#):
>
> I collect hundreds of metrics by getting data from Prometheus exporter (thus it is automatically stored such as `prothemethus.metrics.redis_some_metric_one` )

Do you have any control over how the fields are stored? If that's the case you can try to match some them to the [metrics app fields](https://www.elastic.co/guide/en/metrics/guide/current/metrics-fields-reference.html). However, if you have fields that cannot be matched, I'm afraid you'll have to manually create the dashboards for them.

---

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [September 4, 2020, 3:53am UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/7 "2020-09-04T03:53:07Z")

</div>

@afgomez The fields seem to have no relation to what is listed to "metrics app fields"... So you mean for all programmers who use kibana, they have to create one by one manually? Sad to hear that 😕

---

<div class="post-metadata">

**Author:** ![afgomez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afgomez/32/59274_2.png) [@afgomez](https://discuss.elastic.co/u/afgomez)\
**Post date:** [September 4, 2020, 12:02pm UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/8 "2020-09-04T12:02:00Z")

</div>

I'm afraid so, yes 😕

---

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [September 4, 2020, 1:27pm UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/9 "2020-09-04T13:27:05Z")

</div>

@afgomez ☹ 😢 😭

---

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [September 4, 2020, 1:48pm UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/10 "2020-09-04T13:48:53Z")

</div>

@afgomez A short question: If I put, say, 200 metrics onto one dashboard, will the performance be bad, or is it completely OK? Thanks!

---

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [September 4, 2020, 2:14pm UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/11 "2020-09-04T14:14:25Z")

</div>

@afgomez Hmm I did a little experiment: I first create this dashboard -

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/5/158dbd08594323c7cf087a17ed8f268e519a490c.png)

Then I export the json

```auto
curl --insecure --user elastic:2I4E3Nqj072dk9F5zOwv49TZ -X GET "https://localhost:5601/api/kibana/dashboards/export?dashboard=be5f2860-eeb5-11ea-82c3-7576bb27d27a" -o "/Users/tom/QAPMain/Data/503_kibana_dashboard/1_kibana_export.json"

```

and write down a simple script to decode the json _inside_ json. The final result:

```json
{
    "version": "7.9.0",
    "objects": [
        {
            "id": "be5f2860-eeb5-11ea-82c3-7576bb27d27a",
            "type": "dashboard",
            "namespaces": [
                "default"
            ],
            "updated_at": "2020-09-04T14:11:24.903Z",
            "version": "WzQyNTYyLDdd",
            "attributes": {
                "title": "dashboard-hello",
                "hits": 0,
                "description": "",
                "panelsJSON": [
                    {
                        "version": "7.9.0",
                        "gridData": {
                            "h": 15,
                            "i": "b1f6a747-04a6-4fbc-9367-7657e3154803",
                            "w": 24,
                            "x": 0,
                            "y": 0
                        },
                        "panelIndex": "b1f6a747-04a6-4fbc-9367-7657e3154803",
                        "embeddableConfig": {},
                        "panelRefName": "panel_0"
                    },
                    {
                        "version": "7.9.0",
                        "gridData": {
                            "x": 24,
                            "y": 0,
                            "w": 24,
                            "h": 15,
                            "i": "d257ef7d-ea8d-43b6-b497-e39f8cb69d6f"
                        },
                        "panelIndex": "d257ef7d-ea8d-43b6-b497-e39f8cb69d6f",
                        "embeddableConfig": {},
                        "panelRefName": "panel_1"
                    }
                ],
                "optionsJSON": {
                    "hidePanelTitles": false,
                    "useMargins": true
                },
                "version": 1,
                "timeRestore": false,
                "kibanaSavedObjectMeta": {
                    "searchSourceJSON": {
                        "query": {
                            "language": "kuery",
                            "query": ""
                        },
                        "filter": []
                    }
                }
            },
            "references": [
                {
                    "name": "panel_0",
                    "type": "visualization",
                    "id": "b4a20630-eeb5-11ea-82c3-7576bb27d27a"
                },
                {
                    "name": "panel_1",
                    "type": "visualization",
                    "id": "81f85470-eeb8-11ea-82c3-7576bb27d27a"
                }
            ],
            "migrationVersion": {
                "dashboard": "7.3.0"
            }
        },
        {
            "id": "b4a20630-eeb5-11ea-82c3-7576bb27d27a",
            "type": "visualization",
            "namespaces": [
                "default"
            ],
            "updated_at": "2020-09-04T13:51:17.523Z",
            "version": "WzQyNTUxLDdd",
            "attributes": {
                "title": "vis-redis-up",
                "visState": {
                    "title": "vis-redis-up",
                    "type": "metrics",
                    "aggs": [],
                    "params": {
                        "id": "61ca57f0-469d-11e7-af02-69e470af7417",
                        "type": "timeseries",
                        "series": [
                            {
                                "id": "61ca57f1-469d-11e7-af02-69e470af7417",
                                "color": "#68BC00",
                                "split_mode": "everything",
                                "split_color_mode": "kibana",
                                "metrics": [
                                    {
                                        "id": "61ca57f2-469d-11e7-af02-69e470af7417",
                                        "type": "avg",
                                        "field": "prometheus.metrics.redis_uptime_in_seconds"
                                    }
                                ],
                                "separate_axis": 0,
                                "axis_position": "right",
                                "formatter": "number",
                                "chart_type": "line",
                                "line_width": 1,
                                "point_size": 1,
                                "fill": 0.5,
                                "stacked": "none",
                                "label": "",
                                "type": "timeseries"
                            }
                        ],
                        "time_field": "@timestamp",
                        "index_pattern": "metric*",
                        "interval": "",
                        "axis_position": "left",
                        "axis_formatter": "number",
                        "axis_scale": "normal",
                        "show_legend": 1,
                        "show_grid": 1,
                        "tooltip_mode": "show_all",
                        "default_index_pattern": "filebeat-*",
                        "default_timefield": "@timestamp",
                        "isModelInvalid": false,
                        "background_color_rules": [
                            {
                                "id": "9758c550-eeb5-11ea-8894-b39f50745416"
                            }
                        ],
                        "filter": {
                            "query": "",
                            "language": "kuery"
                        }
                    }
                },
                "uiStateJSON": {},
                "description": "",
                "version": 1,
                "kibanaSavedObjectMeta": {
                    "searchSourceJSON": {
                        "query": {
                            "query": "",
                            "language": "kuery"
                        },
                        "filter": []
                    }
                }
            },
            "references": [],
            "migrationVersion": {
                "visualization": "7.8.0"
            }
        },
        {
            "id": "81f85470-eeb8-11ea-82c3-7576bb27d27a",
            "type": "visualization",
            "namespaces": [
                "default"
            ],
            "updated_at": "2020-09-04T14:11:21.014Z",
            "version": "WzQyNTYxLDdd",
            "attributes": {
                "title": "redis-mem-vis",
                "visState": {
                    "title": "redis-mem-vis",
                    "type": "metrics",
                    "aggs": [],
                    "params": {
                        "id": "61ca57f0-469d-11e7-af02-69e470af7417",
                        "type": "timeseries",
                        "series": [
                            {
                                "id": "61ca57f1-469d-11e7-af02-69e470af7417",
                                "color": "#68BC00",
                                "split_mode": "everything",
                                "split_color_mode": "kibana",
                                "metrics": [
                                    {
                                        "id": "61ca57f2-469d-11e7-af02-69e470af7417",
                                        "type": "avg",
                                        "field": "prometheus.metrics.redis_memory_used_bytes"
                                    }
                                ],
                                "separate_axis": 0,
                                "axis_position": "right",
                                "formatter": "number",
                                "chart_type": "line",
                                "line_width": 1,
                                "point_size": 1,
                                "fill": 0.5,
                                "stacked": "none",
                                "label": "",
                                "type": "timeseries"
                            }
                        ],
                        "time_field": "",
                        "index_pattern": "metric*",
                        "interval": "",
                        "axis_position": "left",
                        "axis_formatter": "number",
                        "axis_scale": "normal",
                        "show_legend": 1,
                        "show_grid": 1,
                        "tooltip_mode": "show_all",
                        "default_index_pattern": "filebeat-*",
                        "default_timefield": "@timestamp",
                        "isModelInvalid": false
                    }
                },
                "uiStateJSON": {},
                "description": "",
                "version": 1,
                "kibanaSavedObjectMeta": {
                    "searchSourceJSON": {
                        "query": {
                            "query": "",
                            "language": "kuery"
                        },
                        "filter": []
                    }
                }
            },
            "references": [],
            "migrationVersion": {
                "visualization": "7.8.0"
            }
        }
    ]
}

```

Looks a little bit readable and manageable by code

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 2, 2020, 2:14pm UTC](https://discuss.elastic.co/t/show-all-metrics-as-netdata-does/246410/12 "2020-10-02T14:14:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
