I have a mysql table that has the latest data on the status of certain critical processes across a number of Windows servers. I want Grafana to display a panel that shows the data in tablular format.
I got the data to be displayed. The problem is the table is tatic and to get the latest data from the mysql DB I need to hit the 'refresh' button.
How do I do this say automatically every 5 minutes or a user chosen time interval?
I'm using Grafana 8.5.2 locally hosted
The mysql table looks like:
CREATE TABLE System_Status (
StatusDate datetime,
DisplayName VarChar(40),
status VarChar(10)
);
This table is to monitor whether a process on a number of given servers is running or not
So the status field is “UP” or “Down”
This table is updated every 5 minutes.
Thanks for any help
There should be a dropdown in the top right of your dashboard which allows you (or the user) to select the auto-refresh rate:
You can save a default value after selecting an auto-refresh rate by saving your dashboard.
I have a recent MariaDB Server (10.3.23-MariaDB-1:10.3.23+maria~focal mariadb.org binary distribution) on Ubuntu 20.04 which cuts off text. Simple see the following gist: https://gist.github.com/ThomasChr/ed8c2a8405947a8af0cda039bd2c3f0a
Selecting the text with a simple SELECT returns all ~100586 Bytes. Selecting the same text with a simple select before (or after) with UNION ALL (or only UNION) gives me only 34797.
I couldn't find any mentions in the Webs of this behavior nor could I find any variables on my server which seem to be responsible for that. Any ideads what I'm missng?
I´m using vfp6 and iseries communicator. I have a table with a date field. This table have several records with the '1900-01-01' value but, when I make a select to that table from foxpro, those cells show a NULL value. The same select on the communicator shows the dates just fine. My regional config is day/month/year and this is the same settings at the odbc config. I've also set SET CENTURY ON on the vfp application, but still the same. We have other clients running with no issue so I don't know what could it be the problem.
How can I export only table names and its columns to an excel sheet from a database using Oracle SQL Developer version 4.
I tried exporting database feature, but it does not allow excel export for Metadata.
Sorry if this is asked in wrong forum
Query what you want eg:
select owner,table_name,column_name
from dba_tab_cols
where owner = 'SCHEMA';
Then right click on the result and choose Eksport.... Choose a format and save.
Documentation for the new version of Odoo (OpenERP) is nearly non-existent. Apparently, the process for importing Quantity on Hand for products has changed, and I can't find anything that describes the new method. Anyone know how to import current stock levels into Odoo 8? In version 7, you created an inventory count record, then imported all your product quantities using the reference field from the manually created count record. This doesn't seem to work in v8.
It's finally solved, simply follow the step
Step – 1 ;
1-> select product in warehouse module (open in list view).
2-> select the product which you want to update the inventory .
3-> click on more button and export column
i-> product name and any other one if you needed .
you have file with name of product.temlate.csv .
4-> Add a column qty and enter the quantity of product .
Step – 2;
1-> select inventory adjustment in warehouse module .
2-> if you already have any created inventory then go to 3rd point if not then create a inventory and feel the detail . and select all product option in Inventory of - :
3-> now again click on inventory adjustment and select the inventory.
4-> click on more and export the following column
Inventories/location
Inventories/product
Invevtories/product Unit of Measure .
Now you have one more file with name stock.inventory.csv
Step -3 ->
1-> now add two column on stock.inventory.csv
First one is name and second is line_ids/product_qty.
2-> delete the value of column line_ids/product_id/id of stock.inventory.csv file .
now copy the values of id column from product.template.csv and paste into the line_ids/product_id/id column of stock.inventory.csv .
3-> now copy the values of qty column from product.template.csv and paste into the line_ids/product_qty column of stock.inventory.csv .
4-> enter any value in name column for your reference .
Step – 4-
make sure your file look like this file:-
Click on following link to see file
This is a sample of the succesfully imported data
http://bit.ly/odoocsv
AFTER IMPORTING DONT FORGET START INVENTORY
I found that I had to do the import as before, but afterwards, I had to change the state to 'confirm' in the database manually, something like:
sudo -u postgres psql -c "UPDATE stock_inventory SET state = 'confirm' WHERE name like 'Inventory1234'" database_name
Otherwise, when I would press Start Inventory, the quantities would be lost.
What I figured out is that you have to have all of your stock locations set up first, so that you can import the quantity on hand per location in Odoo 8. Set up your location hierarchy, then export the IDs. Merge these with the product variant (product.template, not product.product) IDs. I used FileMaker Pro to do this. Next, create your inventory adjustment record and export the name and ID fields. Use these on the first line only of your CSV file that contains the product quantity/location records to import.
If it helps, these are the column headers that I used in the import screen:
"Inventories / Location / External ID"
"Inventories / Checked Quantity"
"Inventories / Product Unit of Measure"
"Inventories / Product / Database ID"
"Inventories / Product Name"
Hopefully, that will help someone out. My notes are a couple months old, so I hope they are correct!