OpenTSDB filter tags exclude specific tag - opentsdb

Is it possible to query for all possible values but exclude a specific value from search?
For example m=sum:rate:proc.stat.cpu{host=foo,type=*?!user} meaning all values for type but exclude user value. Or something like m=sum:rate:proc.stat.cpu{host=foo,type=*, type=!user}.

As an update, this is now supported in OpenTSDB versions 2.X using the not_literal_or filter.
You can do m=sum:rate:proc.stat.cpu{host=foo,type=not_literal_or(user)}

Nope, as of OpenTSDB 1.1.0 this isn't currently supported. There is no fundamental reason why it wouldn't be supported, it's just that this isn't implemented yet.

Related

Does sails-arangodb support waterline index?

I've tried to set up an index on a field using the index:true attribute but it doesn't seem to have any effect. Is this something on the TODO list or am I missing something?
Secondly, is there a way to specify the edge collections as models? Currently, I'm hooking sails bootstrap.js to create edges and insert index fields but it would be nice to avoid that.
There seems to be a number of features missing from this package. The sails-arangodb package is a work in progress and needs some assistance and TLC to finish.

Kibana: type with multiple fields

Does Kibana support types with multiple fields, for e.g a distance type haveing fields like km,miles etc. Basically this
Yes. As with the example you posted, kibana can graph use those fields. People use myField.raw for aggregation and labeling, which is often much better than myField.
So, myField.km, if populated, should work just fine.
You might also look at kibana's scripting feature, which would allow you to store one version and compute the other when displayed.
As I know, Kibana does not support Nested Json.
You need to change it to standard Json

kibana visualization and object array

Is kibana support object array? Is there any way to see the fields of an array in a pretty way in Kibana or it isn't supported?
As mentioned in https://github.com/elastic/kibana/issues/998 they are not going to support Object arrays in Kibana 4
This is something we needed too, and since an official solution doesn't appear to be on the horizon we've developed a Kibana plugin to address this.
It works in Kibana 5.x+ by injecting entries into the index pattern's field list which match the dot notated path of the array (or any object in your data). With the field entry in place, you now have the ability to define a field format for it. None of the built in formatters expect a JSON object, so the plugin includes one which covers the basic needs.
https://github.com/istresearch/kibana-object-format

could i add some variables into the drupal node body?

when i create an article useing the story type,could i add some variables into the body's textarea.then can invoke the variable and output it. thank you.
the drupal version is 6.
Inserting textual placeholders to be replaced by actual values on render is the purpose of the filters system in Drupal. Token filter provides, well, token replacement and is an handy tools if your need replacement for tokenized values. But there are plenty of filters for Drupal 6.x and you can even define your own in a custom module. The Custom filter can help for this. You can also use token filter and define your own token in your custom module.
A simple solution is to use the PHP filter but this is a insecure way of doing it. Also, putting PHP code in node (or any content) is a maintenance nightmare and a bad habits. You would be better doing it properly from the start.
Contrib modules would be the way to go, unless you feel comfortable with PHP in which case you can just use the PHP filter. Depending on what variables you need you can try one of:
http://drupal.org/project/InsertNode and http://drupal.org/project/token_filter
There are a couple of others (I like insert view) but they're currently not marked for production use.

Drupal, Ubercart: how can I get the order printable version programmatically?

I need to generate a pdf from Ubecarts orders. I know how to access to the printable versions of orders from my browser: i.e. "admin/store/orders/45/invoice/print"
However, I was wondering how to access to the page from php, maybe using ubercart apis ?
What I need is the equivalent of node_view, for orders (which is not a node).
thanks
I'm not sure if there is an actual API for it, but you could use uc_order_load_invoice, the order object you need can be generated by the uc_order_load function.

Resources