In Grafana, how do I display a table of system status using a normal DB table AND highlight based on text value? - plugins

I will start of by saying that I'm new to Grafana.
I have a database table that is being updated externally that has say 15 columns of information on a given set of servers. I'm just trying to display the server name and current status and change the color of the row based on that status (Norm, Alert, Down) ... ideally those would be links to a detail page.
I tried the included table display which looks like it should handle it but the coloring options don't seem to work based on plain dumb text in a column or it would be perfect because it says it will color by row and includes the ability to make each row a link essentially.
grafana screen shot
I have tried with and without quotes in the Threshold values. It says in the hover help you can use comma separated values but does not seem to work for me. (I am thinking it's my config or usage btw)
Every other plugin I can find that says it wants to do this errors out when I tell it I have a table of data and not some live feed.

Related

Filemaker: behavior of portal rows

I am creating a contacts database using FileMaker Pro 19. Part of the relationship diagram is shown below:
For each Person record, I have zero or more Phone records, each corresponding to exactly one IDDCode record.
In the layout for editing Person records, I have a portal (with all default options) pointing to the Phone table. In each portal row I have edit boxes for the Phone::Label and Phone::PhoneNumber fields, and a drop-down control with "Display data from" = IDDCode::DisplayCode and the "Values from" list set up as:
Hopefully it is clear enough what I am aiming for. What actually happens is not even close to that. Among the many unexpected behaviors:
Changing one drop-down sets the value in all rows
The values shown in the drop-down do not necessarily correspond to the values in the Phone table
When I open the drop-down list, the highlighted default is off by one (e.g. if IDDCodeID is 39, the value for IDDCodeID 40 is highlighted)
Some of the edit boxes are missing, e.g. the second row in the example image should have a phone number filled in
The portal does correctly display the existing (imported) data, though. Here is an example of what I see when I try to use the layout:
QUESTION:
Obviously the way I have set this up is wrong (I am familiar with databases but brand new to Filemaker). Rather than address the problems with my setup point by point, I am hoping to find out what is the right way to do this in Filemaker?

Empty data on simple query in Grafana. Table works ok

I need to use Grafana for simple db queries to show some basic ERP data.
My MS SQL query is very simple:
select "Production Line", "Pallets" from vLiveProduction order by Plant, "Production Line"
The data are pretty straight forward and they display in a table.
I cant make them display in a graph or bar or any plugin i tried to.
I must be doing something fundamentally wrong here but i cant see what. Any help?
I AM choosing series in graph but nothing changes. I cant find a way to tell Grafana which column is the series and which the value… Tried by naming my columns metric and value but still no luck.
I would use the bar guage panel in Grafana > 6.2.
You can change the config so that Display = All Values. which i think will give you what you want! Plus the Retro LCD setting under Mode looks cool :)
Tom

building a form with dynamic fields in progress 4gl

I am trying to display a list of open indents with check boxes before them each line. Based on the selection a report will be generated next with further details.
Table: xxind_mstr (xxind_nbr, xxind_shipto, xxind_askedby, xxind_date).
Is there any way that I can bring the records from xxind_mstr and place them in the FORM with check boxes ?
Note: This only works if dynamic. Never hardcode this approach.
Name each check box with the value of ROWID(xxind_mstr).
This way on the post you can read back through the each xxind_mstr getting the value of the the rowid.
Rod
I'd like some more info, just to know if I'm not talking rubbish here. You want to display the records in xxind_mstr as checkboxes, then upon selection of the report setup, fire the report respecting the checkboxes flagged? If so, then I'd use a browse pre-built with a temp-table containing the xxind_mstr records, and a "flagged" field, this being a logical view-as checkbox, and when they run the report, do a
FOR EACH ttxxind_mstr WHERE flagged = true, and you should have what you want.

Prevent a text field within a portal from being truncated, filtering portal contents to display in another layout

I am already using Filemaker Pro 10, I have two questions:
I have a text field in a portal, and whenever I am entering values like "B12C45" in it, it works well, but when the string is longer like "BC12F42, B45z87" it doesn't show whole the strings and omits the letters from it. what Can I do?
My second question is that: I have a portal in a layout, in this portal every row has an id sometimes the id is repeated in other rows but the value of another field called Position is changing. Now I want to have those rows of this portal which have the same id in another layout. I have tried using scripts for it, but scripts don't work well in this case, and they are entering whole the portal in the new layout not the parts I want . How can I write a script which does this?
I will really appreciate any help.
For the first question there are many ways you could display more data in a field and the best one will depend on the particular implementation in your database. There are three main ways to solve this problem: field-size adjustments, text-size adjustments and programming adjustments to dynamically change the text-size.
Field-size adjustments include:
Making the field longer
Using the autosizing aspect of a field so that as the window grows, so does the field
Text-size adjustments include:
Making the font size for that field smaller.
Setting the font style for that field to condensed.
Programatically, though, three things stand out to me as possibilities. I like the third one the best for most of my solutions:
Set the tooltip for the field to "Self" (without the quotes). A user can see the entire contents of the field by hovering the mouse over the field.
In "Define Database" set the field's calculated value to: "TextStyleAdd(self;Condense)" (without the quotes) and make certain that "Do not replace existing value of field" is turned off
Use Conditional formatting to add the Condense style or use a smaller font when the number of the characters in the field gets long.
The steps for using conditional formatting are as follows:
In layout mode select the field and select 'Conditional Formatting...' from the pop-up menu
Add a new condition
Change the condition to 'Formula is'
In the text field enter "Length(Self) > 8" (without the quotes)
Press the "More Formatting..." button
Select "Condense" as the Style from the text
You can add multiple conditions, so you might have "Condense" only for Length(Self) > 8 and another condition for Length(Self) > 16 where you set both "Condense" and reduce the Font Size.
As for your second question, I'm not able to get a picture of what you're trying to do from the question you asked. You might be able do the following in a script:
Go to Related Record [the portal relationship]
Sort Records [by ID]
And then use a summary field (Count of ID) to determine how many of each ID you have.
If you clarified what you were trying to do, gave more information about your tables and table occurrences, we might be able to provide a better answer for this instance.

Field text is being truncated inconsistently

I created a label report (2 columns). The fields used are, Suffix, Contact Name, Company Name, Job Title and Department – simple contact data.
The Department field is the last one and in the report of 78 records the Department field decided not to display the entire field text twice.
I have "Can Grow" set as default on all fields, I checked the margins and label width to ensure the text is not being truncated because of the labels being too wide for the margins. I modified the data in the database by abbreviating certain words and it shows the change but it still truncates after 50 characters. Other times the Department name is 80+ characters and it displays all of the data.
This problem is happening onscreen when I preview the report and also when various users print it. The default printers have not changed.
This one has me stumped. Is this an application bug (if so is there a Service Pack for CR 11.5?) or does it have anything to do with printer drivers in need of update?
Thanks in advance for your help on this puzzle.
Update
I did specify data source
The text in the database is without any special characters or anythig else that might be out of place
No I am not using Underlaying Following sections anywhere in the document
11.5.8.998 is my version of CR (lloks like I am behind - however, when I click on verify for updates it tells me there aren't any. Do you ahve a link to the SP2 download?)
No formula in the Custom string option
Mine worked by simply going to the Database Menu option: Database-->Verify Database, and the field sizes were updated
It could happen if the length of the field in the Data Source is less than your string. To check this:
In the Field Explorer right click on the data source name and choose "Show Field Type"
The length of the field is written between ( ). If it is less than your string length, you have to re-build your data source. For example, if your data source is a view, you have to drop and create it again and then verify your data base in crystal report.
Hope it helps.
Random troubleshooting thoughts. One of these could even work :)
You didn't specify your datasource, but can you preview your data before it goes into Crystal? If the actual data is randomly truncated, then the problem isn't Crystal, it's the data.
Does this data have any special characters, i.e. accents, foreign currencies, etc? That could be a problem (I don't know if this could even create problems, never used them in Crystal)
In the Section Expert, are you using the Underlaying Following Sections option for fancy formatting? If so, your 'grown' fields may be hidden by some other field in the following section.
My Crystal Reports XI Developer Edition is 11.5.12.1838 (that's service pack 2). Is your Crystal up to date?
In the Format Field pane, there is an option to make a custom Display String. Sometimes I forget I have a formula and then don't understand why it's not doing what i want.