Giter Site home page Giter Site logo

柱状图显示问题 about fe HOT 3 CLOSED

zhuchqun avatar zhuchqun commented on September 18, 2024
柱状图显示问题

from fe.

Comments (3)

jsers avatar jsers commented on September 18, 2024

版本信息?
发下排查里的查询数据和图表配置
image
image

from fe.

zhuchqun avatar zhuchqun commented on September 18, 2024

版本信息? 发下排查里的查询数据和图表配置 image image

图表配置:
{
"type": "timeseries",
"id": "a6167b55-2710-4a8a-8e3e-4207fc8794b4",
"layout": {
"h": 10,
"w": 24,
"x": 0,
"y": 30,
"i": "a6167b55-2710-4a8a-8e3e-4207fc8794b4",
"isResizable": true
},
"version": "3.0.0",
"datasourceCate": "prometheus",
"datasourceValue": "${LOKI_DATASOURCE}",
"targets": [
{
"refId": "A",
"expr": "count_over_time({host_ip=~"$ident"}[$__interval])",
"legend": "ident:{{ host_ip }} Level:{{ level }}"
}
],
"transformations": [
{
"id": "organize",
"options": {}
}
],
"name": "Log Line Counts By Host",
"maxPerRow": 4,
"options": {
"tooltip": {
"mode": "all",
"sort": "none"
},
"legend": {
"displayMode": "table",
"columns": [
"max",
"min",
"sum",
"last"
]
},
"standardOptions": {},
"thresholds": {
"steps": [
{
"color": "#634CD9",
"value": null,
"type": "base"
}
]
}
},
"custom": {
"drawStyle": "bars",
"spanNulls": false,
"lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
"stack": "off",
"scaleDistribution": {
"type": "linear"
}
}
}

查询信息:
{
"type": "Query Range",
"request": {
"url": "/api/n9e/query-range-batch",
"method": "POST",
"data": {
"queries": [
{
"end": 1700032680,
"start": 1699946280,
"query": "count_over_time({host_ip=~"10.42.66.235"}[360s])",
"step": 360,
"refId": "A"
}
],
"datasource_id": 6
}
},
"response": {
"dat": [
[
{
"metric": {
"host_ip": "10.42.66.235",
"job": "fluentbit",
"level": "notice",
"method": "rsyslog",
"type": "switch"
},
"values": [
[
1699974360,
"4"
],
[
1700018280,
"4"
],
[
1700018640,
"1"
],
[
1700019000,
"2"
]
]
},
{
"metric": {
"host_ip": "10.42.66.235",
"job": "fluentbit",
"level": "warning",
"method": "rsyslog",
"type": "switch"
},
"values": [
[
1699957080,
"2"
],
[
1699979040,
"2"
],
[
1699995960,
"2"
]
]
}
]
],
"err": "",
"success": true
}
}
版本是最新的 v6.5.0

from fe.

jsers avatar jsers commented on September 18, 2024

v7 版本起图表类型里新增了单独的柱状图,可以尝试下
原本时序图的 bar 模式可能对某些数据场景渲染会异常

from fe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.