Grafana table interprets keyword as number

Hi

I am using a table panel to display json data from elasticsearch, and especially some git commits sha.

The thing is when the commit is something like 97382e7, grafana thinks it is a scientific number and display 973820000000 instead of the keyword.

Is there a way to tell grafana to not interpret the string?

Hi,

Did you try and set the field as string :

Hope it helps.

Good Luck

Thanks for you reply, yes I did but unfortunately it does not work

Hi,

Can you screenshot your table data structure.

Thanks

Hi,

Here is a sample example (elasticsearch database):

{
    "events": {
        "cpu-cycles": 965235055319,
        "duration_time": 1200927092174
    },
    "date": "2020/01/28 12:13:20",
    "commit": {
        "sha": "51475e7",
        "message": "Use SIMD instruction to accelerate GA"
    },
    "config": "xgol",
    "subconfig": "move",
    "sample": "sample_2",
    "metrics_type": "gprof",
    "tags": [
        "test"
    ]
}

So the commit will be displayed 514750000000. If the “e7” is inside, like 123e7455, Grafana shows “infinite” sign:

image

image

This topic was automatically closed after 365 days. New replies are no longer allowed.