Show *all* metrics as Netdata does

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

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.

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!

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

@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 to programmatically import into kibana.

Thanks for any suggestions!

Sorry for the late reply!

I don't think this can be an option :confused: The import API is intended to be used with the response of the export API.

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. However, if you have fields that cannot be matched, I'm afraid you'll have to manually create the dashboards for them.

@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 :confused:

I'm afraid so, yes :confused:

@afgomez :frowning: :cry: :sob:

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

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

Then I export the json

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:

{
    "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

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