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.
https://github.com/grafana/panel-plugin-piechart
You will need Grafana master based on the release date of the plugin.
Confirmed here - https://groups.io/g/grafana/message/1181
You definitely need to upgrade your Grafana. This is very seamless operation - just install a new package on top of the old one. You can back up through copy /var/lib/grafana/grafana.db for safety before doing that.
Check the permission of the files in plugins directory,
all the files of the plugin should be in its directory, i.e. every plugin should be contained its own directory
if the plugins directory has any package.json file or webpack.config.js available outside then also your plugins will fail to load.
the above mentioned files are part of every panel plugins and should only exist in their respective directories.
execute "chown" and set the owner to grafana:grafana group:user
(by default root is the owner of the files and directories.)
Are you running Grafana as a standalone service or in a docker container?
If running as a service directly you can visit the Grafana community page and find the plugin installation instructions from there.
https://grafana.com/grafana/plugins/grafana-piechart-panel
(Verified on Grafana version 6.x.x & 7)
If running within a dockerized service you need to copy the plugin in your workspace and specify the directory within the docker image so it can locate the plugin from there. You can do this by using the environment variables and mention these within a docker-compose file
GF_PATHS_PLUGINS /var/lib/grafana/plugins
https://grafana.com/docs/grafana/latest/installation/configure-docker/
I have been able to work with both these options
Related
I'm attempting to deploy a python server to Google App Engine.
I'm trying to use the gcloud sdk to do so.
It appears the command I need to use is gcloud app deploy.
I get the following error:
me#mymachine:~/development/some-app/backend$ gcloud app deploy
ERROR: (gcloud.app.deploy) Error Response: [3] The directory [~/.config/google-chrome/Default/Cache] has too many files (greater than 1000).
I had to add ~/.config to my .gcloudignore to get past this error.
Why was it looking there at all?
The full repo of my project is public but I believe I've included the relevant portion.
I looked at your linked repo and there aren't any yaml files. As far as I know, a GAE project needs an app.yaml file because that file tells GAE what your runtime is so that GAE knows how to deploy/run your code. In fact, according to the gcloud app deploy documentation, if you don't specify any yaml files to be deployed, it will default to app.yaml in the current directory. If it can't find any in the current directory, it will try to build one.
Your repo also shows you have a Dockerfile. GAE documentation for custom runtimes says ...Custom runtimes let you build apps that run in an environment defined by a Dockerfile... In the app.yaml file for custom runtimes, you will have the following entry
runtime: custom
env: flex
Since you don't have an app.yaml file and you have a Docker file in which you are downloading and installing Chrome, it seems to me that gcloud app deploy is trying to infer your runtime and this has led to it executing some or all of the contents of the Dockerfile before it attempts to then push it to Production. This is what is making it take a peek at the config file on your local machine till you explicitly tell it to ignore it. To be clear, I'm not 100% sure of this, just trying to see if I can draw a logical conclusion.
My suggestion would be to create an app.yaml file and specify a custom runtime. Or just use the python runtime with flex
I've just installed Community Rundeck 3.2.2 with RPM on a RHEL 8.1.
I've tried to customise it with my logo images with no success:
Created user-assets directory in /var/lib/rundeck
Copied the images there (png and jpg)
Defined the settings in /etc/rundeck/rundeck-config.properties
rundeck.gui.logo=logoTNC600x600grey.jpg
rundeck.gui.logoSmall=logoTNC200x200white.png
rundeck.gui.instanceNameLabelColor=#ededed
rundeck.gui.instanceNameLabelTextColor=#000000
rundeck.gui.title=TNC Rundeck
rundeck.gui.staticUserResources.enable=true
rundeck.gui.login.welcome=Welcome to TNC
Restarted Rundeck service to no avail: picture not shown in web browser
What have I missed?
Regards,
Raul Costa
You need to add your assets at /var/lib/rundeck/user-assets path (create if it doesn't exist, remember: the "rundeck" user needs to reach that path). Also, verify the files extensions.
Update: change the order of elements in your configuration. Works in the following order:
# custom logo
rundeck.gui.staticUserResources.enabled=true
rundeck.gui.logo=logo.jpg
rundeck.gui.logoSmall=logosmall.jpg
rundeck.gui.instanceNameLabelColor=#ededed
rundeck.gui.instanceNameLabelTextColor=#000000
rundeck.gui.title=TNC Rundeck
I am a beginner in Grafana and I am trying to go through all the tutorial and documentation from Grafana.net, however, I am having trouble learning how to do scripted dashboard on Grafana, there is a documentation page on the site but it is very brief and I do not know how to proceed. Could anyone share with me a useful site for learning how to build scripted Dashboard on Grafana (especially using InfluxDB as the DB server).
As per my understanding :
In the folder grafana install folder under public/dashboards/ there is a file named scripted.js
you have to modify scripted.js file.
In Brief :
First you need to install GRAFANA (centos or ubuntu anything)
then Configure the grafana Example
path : /etc/yum.repos.d/grafana.repo
configuration and installation link :
http://docs.grafana.org/installation/rpm/
now you can check your grafana related file using grep or find commands and check required path.
then
In the folder grafana install folder under public/dashboards/ there is a file named scripted.js
you have to modify scripted.js file.
You can take help of below given site :
https://github.com/grafana/grafana/blob/master/docs/sources/reference/scripting.md
When adding https://www.npmjs.com/package/material-design-icons as a dependency to my Node application, cf push fails with Disk quota exceeded when running npm install. Since the complete application including node_modules has about 100 MB (way below the limit of 1 GB), I assume it might have to do with the fact that material-design-icons has about 86'000 files (for whatever reason).
Is there any workaround for this?
Another solution is to ignore the node_modules directory using the .cfignore file (the same concept as the .gitignore file). The files described in the .cfignore aren't uploaded to Cloud Foundry when you push your app.
You can find more about .cfignore here: https://docs.developer.swisscom.com/apps/deploy-apps/prepare-to-deploy.html#exclude
The solution is to delete the directory node_modules from your app directory before to push it. The description of the needed modules must be in the file package.json under dependencies. I tested a simple express app adding the material-design-icons module. Pushing the application without the content of the directory node_modules works, since in staging the modules are downloaded and added to the application.
The solution is to delete the directory node_modules from your app directory before to push it. The description of the needed modules must be in the file package.json under dependencies. I tested a simple express app adding the material-design-icons module. Pushing the application without the content of the directory node_modules works, since in staging the modules are downloaded and added to the application.
The solution with .cfignore should work. You might need to delete and re-push your app though, since Cloud Foundry caches some files and the container might be filled with these cached files. If you delete and re-push the app, you're getting a clean container from scratch which might solve your problem.
I have faced the same problem. I solved it by doing the following:
Using .cfignore
Specifying the update nodejs in package.json
Using the latest buildpack
I am having a few issues configuring JIRA (Mac OSX 10.6.8), specifically setting my JIRA home directory. I ran the JIRA configuration tool, and defined my path. Upon running JIRA on my localhost, I get the message: No jira.home is configured. Through my terminal, I went in to edit my jira-application.properties files, and it says jira.home = /Applications/MAMP/jira/htdocs. At this point, I am not sure what I am doing wrong, as it seems jira.home is defined. Any help? Thanks.
Have a look at Setting your JIRA Home Directory and make sure you are pointing to the Jira home folder:
Edit the jira-application.properties file and set the value of the 'jira.home'
property to the desired location for your JIRA Home Directory. If you are specifying
this location's path on Windows, use double back-slashes ("\") between subdirectories.
For example, X:\\path\\to\\JIRA\\Home
To find where Jira home is located, have a look at JIRA Installation Directory page, the folder should contain the logs,jss and plugins folders.
So, if for example the Jira is installed at /var/atlassian/application-data/jira , the
jira-application.properties should have the following line:
jira.home = /var/atlassian/application-data/jira
Please note - Jira home directory is referring to a data directory and not the installation directory
Installing Jira on MacOS:
https://confluence.atlassian.com/display/JIRA042/Installing+JIRA+Standalone+on+Mac+OS
NOTE: Setting your Home (aka data) directory to /Applications/MAMP/jira/htdocs means that your Jira installation is located in your MAMP web root... Are you sure that's where Jira is installed? Typically, on a Mac, the home directory is located here:
/Applications/Jira/HOME