GithubHelp home page GithubHelp logo

piechart-panel's Introduction

Notice: This plugin is deprecated

Marketplace Downloads License Known Vulnerabilities Build Status

As of Grafana 8.0 Pie chart panel is included with Grafana. Please refer to the Pie chart panel documentation for more information.

Installation

Use the new grafana-cli tool to install piechart-panel from the commandline:

grafana-cli plugins install grafana-piechart-panel

The plugin will be installed into your Grafana plugins directory; the default is /var/lib/grafana/plugins if you installed the Grafana package.

More instructions on the Grafana CLI tool can be found in Grafana CLI.

You must have Grafana 4.6.5 or newer installed to run this plugin. You can get it here: https://grafana.com/grafana/download

Alternative installation methods

Download latest zip

wget -nv https://grafana.com/api/plugins/grafana-piechart-panel/versions/latest/download -O /tmp/grafana-piechart-panel.zip

Extract and move into place

unzip -q /tmp/grafana-piechart-panel.zip -d /tmp
mv /tmp/grafana-piechart-panel-* /var/lib/grafana/plugins/grafana-piechart-panel
sudo service grafana-server restart

Git clone

You can clone this repo directly into your plugins directory.

Afterwards restart grafana-server and the plugin should be automatically detected and used.

git clone https://github.com/grafana/piechart-panel.git --branch release-1.6.2
sudo service grafana-server restart

Clone into a directory of your choice

If the plugin is cloned to a directory that is not the default plugins directory, then you need to edit your grafana.ini config file (default location is at /etc/grafana/grafana.ini) and add this:

[plugin.piechart]
path = /home/your/clone/dir/piechart-panel

Note that if you clone it into the Grafana plugins directory, then you do not need to add the above config option. That is only if you want to place the plugin in a directory outside the standard plugins directory. Make sure that grafana-server has read access to the directory.

piechart-panel's People

Contributors

bergquist avatar briangann avatar conet avatar daniellee avatar dependabot[bot] avatar dprokop avatar eastcirclek avatar ferozsalam avatar fl0ge avatar gretamosa avatar h4wkmoon avatar ijin08 avatar jamim avatar maniac103 avatar marefr avatar mdvictor avatar mpchadwick avatar oddlittlebird avatar oscarkilhed avatar robert-milan avatar rotemreiss avatar ryantxu avatar smalik03 avatar sunker avatar torkelo avatar utkarshcmu avatar xadhoom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

piechart-panel's Issues

Use sorting from data source

I'm using Prometheus data source, which has topk function. It works well with Pie Chart.

topk function sorts returned data by values, but pie-chart then applies its own sorting by legend.

I would like to be able to tell Piechart not to apply any additional sorting and use order from data source.

[Question] Data as "reference"

Hi,

I'd like to repport NAS usage as pie chart.
I've 2 datas : space used and quota. (have'nt free space information and can't calculate it from data source :-/)
I'd like to build a pie chart that represent space usage in report with quota.
So quota is full pie chart if space used is 0% and pie chart is divide in 2 if space used is 50% by example.
Is it possible please ?

Thank you

barchart without time axis

Is there a bar chart available for Grafana with the x-Axis not being a time axis. If not, what would be the best starting point to start implementing one?

unable to get count of documents in pie chart

I recently added the pie chart plugin in grafana. I have noticed an issue with it and would like to know if its my configuration or a real issue.

I read documents from elasticsearch by querying the index. If i have a graph that displays a bar for each document received, i get the right data. However, when i try to create a pie chart for total number of documents received, i see that it gets reset after about 15-20 mins even though i set the time to for ex: past 1 hour. The config is as follows:

Metric => SUm of count
Group by ==> Terms ==>passOrFail (This is a term in my ES document) which indicates if the document indicates a pass or a fail
Then by ==> Date Histogram ==>@timestamp

Any idea what could be happening?

[Feature request] Scroll option for side legend

Hi, it would be nice to have a scroll option when legend is displayed on the right side. That way you could use the Pie-Chart to display large number of different metrics.

I'm not a developer so I don't know if I can do this myself in the code, I will accept guidance though :)

Thanks guys!

Tag releases in git

Could you tag the releases in git to make things easier to deploy? Thank you :)

Color misbehaviour on hover

When I hover on the pie chart, it changes the color but it does not go back on mouseout. No idea why it does change the color at all, at least it should go to the initial state.

Example pie chart:
screen shot 2016-05-11 at 23 13 11
When I move cursor over it becomes like this:
screen shot 2016-05-11 at 23 13 19
When I take cursor away the color remains unchanged.

Plugin 1.0.1

Unable to Install on Grafana 2.5

I am attempting to install the piechart plugin on my Grafana v2.5 environment and no matter what I do the panel does now show as an option in the UI. I cloned the repository to /var/lib/grafana/plugins as documented and restarted the grafana-server service and that did not work. I also tried putting the plugin in a separate directory and referencing it as:

[plugin.piechart]
path = /home/usr/share/grafana/panel-plugin-piechart

I made sure that the grafana service has ownership of the plugin directory, and checked the grafana logs but it did not have useful information.

My installation was handled by this chef cookbook:
https://supermarket.chef.io/cookbooks/grafana

Pie chart breaks when using diffSeries

I have two queries I want to combine into a pie chart. Query A is a subset of query B. I attempt to add a query C that is simply diffSeries(#B, #A) and hide query B. This works fine on a regular graph, but it seems to break the pie chart. It no longer renders, and a red icon appears in the upper-left corner of the panel that states:

Invalid dimensions for plot, width = 0, height = 0

Colors Do Not Persist

When customizing the colors of slices of the pie, they do not persist when navigating between dashboards.

[Bug] span attribute is not persistent

It goes to 12 span after save and reload. However, the newly created piechart is okay.

When I delete 'minSpan' attribute and only keep 'span', it goes small and 'Span' & 'Min Span' both are empty value.

No option to override specific series

No option to override specific series like for other graphs. It is possible to do this by clicking on the legend item color and changing it, however there is no option on the form of query editor page.

Plugin 1.0.1

Piechart-panel installation

Hi - I have installed latest Grafna 3 beta from grafana.org but not seeing anything in /var/lib/grafana/plugins folder.

Wheni ran install commnd i got belwo error - anyhelp please:

grafana-cli plugins install grafana-piechart-panel

Error: could not find plugin named "grafana-piechart-panel"

NAME:
Grafana cli plugins install - install

USAGE:
Grafana cli plugins install [arguments...]

support for elasticsearch

Hi,

should this plugin work with elasticsearch?
it seems like it doesn't like elasticsearch.
this is my query:
image

is there something i can provide to dig deeper into the problem?

regards

Percents on pie-chart segments AND legend

Hello!

First of all let me appreciate a great work you do by developing and supporting that pie-chart plugin!
I wonder if it's possible to show on the same pie-chart a percentage for each segment AND at the same time absolute values with percentage in the legend?

Colors

Hi there,

As far as I know, it seems we can't change the colors of the pie chart, as we can do in any other graphs. Any way to add this feature ?

Field Name Missing on Pie chart table

Hi,

PieChart plugin looks good, Is it possible to add field name above table values?
Its so confusing right now what values the pie chart and tables showing.

Attached is the snapshot of the same

image

Thanks in advance!!

Values in legend are displayed raw, not with the correct unit

When selecting a unit for the numeric metrics, only the tooltip uses this unit. Values in legend are displayed as the raw value which makes them hard to read. See attached screenshot.

image

Grafana Version: v4.0.0-pre1 (commit: 92121ea)
Plugin Version: 1.1.1

Pie Chart issue with ElasticSearch 2.4 and Grafana 4.1.1

Hi,

I am facing an issue while using the Pie chart plugin with ElasticSearch 2.4
The attached images will help you in understanding the problem.

time-taken is a numeric field and the Pie Chart works fine when the metric is AVERAGE. But if the metric is SUM then it is not working.
Similarly, if I use COUNT on string fields, it is not working.

Please suggest.
average
sum
count

Legend overlaps with graphs

Legend overlaps with graph when going to dashboard (first picture). If I zoom in on that graph (clicking on the title and then view) and then go back it is showing nice as on the second picture.
Simple refresh (using top right button) solves the issue on all piecharts in the dashboard.
Grafana is 3.0.2.
Pie Chart is 1.1.1

correct
wrong

Group by series alias, sort and limit

Influx DB queries don't provide a way to group by series name, or order by aggregated value.

These oversights make it impossible to produce a meaningful pie chart without the ability to post-process that data in those 2 ways.

WorldMap implements this well enough by matching the alias-by for a location and providing an aggregation method, which would apply well to the pie chart as well.

Donut chart display as pie-chart after checking on Transparent checkbox

After creating a basic pie chart.
Steps to recreate the issue:-

  1. In option tab,select the Type as donut from the drop down present .
  2. In general tab, check the transparent checkbox.
    3.close the edit section (after saving).

-Donut chart will be displayed as Pie chart

Note:-Am using grafana 3.1.0 for 64 bit windows

i think enabling transparent checkbox (in general tab) is causing the donut chart to display as pie chart.

Now showing data in Piechart !

no data showing in piechart. but same data can be seen in kibana4. Not sure whether I made any mistake in configuration. Please someone help.

Docs value shows : NaN
gf5

Kibana log: [ data shows here]
kb5

Plugin not detected

Hi all,

I try to install pie chart plugin but it's not detected.

i have installed it to /var/lib/grafana/plugins

and restarted grafana but no plugin appeared.

So i specified in grafana.ini

[plugin.piechart]
path = /var/lib/grafana/plugins/panel-plugin-piechart

bu no success and no error in grafana log.

my grafana is 2.6 version installed via rpm.

Is there something that i missed.

thanks

PieChart don't resolve template variables in series name ?

Hello everybody,
I have a dashboard with a Zabbix source, and a variable in templating "$branche"
I created a pie that shows this variable. it works.
But I want to display the variable "$branche" : in the legend, it display "$branche" and not the name of the branch. Same in the tooltip.
it's a bug or I make a mistake? Thank you very much in advance for your reply.

image

How do I install ?

Hi,
I read the readme like a good boy, and followed its instructions.
l can't make the pie panel appear.

I've cloned the git repo in the plugins dir, which did not exist first. Not working.
I've added the section in the grafana.ini, which is not supposed to be necessary. Not working. I receive an error in the log. Maybe this plugins does not work with Grafana 2.6.
Am I missing something ?

Unknown config section plugin.piechart defined in /etc/grafana/grafana.ini

Colors Do Not Persist

When customizing the colors of slices of the pie, they do not persist when navigating between dashboards.

Piechart getting larger after clicking "view" on panel

For some reason, with a standard dashboard, with more than one piechart in a row, clicking on "View" to view only the piechart then "Back to Dashboard" causes the piechart to resize in seemingly random ways. This is fixed upon a refresh of the dashboard.

Not showing data properly

I have set for pie chart panel this metrics query:
sum(amqp_response_duration_milliseconds_count{env="test5",job="myjob"}) by (statusCode)
I have also set to that panel, to show only last hour in Time range -> Override relative time.

Here is result of amqp_response_duration_milliseconds_count{env="test5",job="myjob"}:

amqp_response_duration_milliseconds_count{action="payload=Event",env="test5",instance="test5app1.nike.sk:22552",job="myjob",statusCode="304"} 1177
amqp_response_duration_milliseconds_count{action="payload=Asdf",env="test5",instance="test5ap1.nike.sk:22552",job="myjob",statusCode="200"} 31616
amqp_response_duration_milliseconds_count{action="payload=Hmmm",env="test5",instance="test5ap5app1.nike.sk:22552",job="myjob",statusCode="304"} 19

Problem is, that on panel I see only one color (status code 200) and no status code 304. Nor in legend it is shown. It seems that given data are not there. Problem is resolved by time only... As time passes, pie chart starts to show also some status code 304 things (but not current value, but value from near past, around 15 minutes ago). And I do not have any time offset set.

json panel of given pie chart is here:

{
"aliasColors": {},
"cacheTimeout": null,
"datasource": null,
"editable": true,
"error": false,
"fontSize": "80%",
"format": "short",
"id": 6,
"interval": null,
"isNew": true,
"legend": {
"show": false,
"values": true
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "pie",
"span": 2,
"strokeWidth": 1,
"targets": [
{
"expr": "sum(amqp_response_duration_milliseconds_count{env=\"test5\",job=\"myjob\"}) by (statusCode)",
"intervalFactor": 2,
"legendFormat": "",
"refId": "A",
"step": 2400
}
],
"timeFrom": "1h",
"timeShift": null,
"title": "StatusCodes",
"type": "grafana-piechart-panel",
"valueName": "current"
}

Add option for color picker for piechart

Kindly add option to specify color for data in piechart.
e.g. if I want to show system RAM usage in a pie chart as 3 segments - used, cached, free
then I can choose color for used as red, cached as gray, free as green. etc.

Bug with decimal value on pie

I created a pie chart with four metrics
It constained 0|0|0.44|99.56 (Sum == 100%)
The legend showed this:
image
The pie showed
image
image
data from influxdb
image

Installation issues

Having trouble getting the plugin to work (probably missing something basic), i followed the README file on Ubuntu machine, server installed from apt list (2.5 stable). will appreciate any pointers or revised README :) ๐Ÿ‘

Unable to set legend to reflect unit

When I set my unit to "bits/sec" the values are still set to integers.
Mousing over the pie chart itself it looks fine and correctly calculates the values, but not on the table.
I think in legend.js the values code that needs to change.
var value = series.formatValue(series.stats[ctrl.panel.valueName]);
if (panel.legend.values) {
html += '

' + value + '
';
}

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.