Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label parsing in Elasticsearch #133

Open
sebastienmusso opened this issue Oct 26, 2016 · 0 comments
Open

Label parsing in Elasticsearch #133

sebastienmusso opened this issue Oct 26, 2016 · 0 comments

Comments

@sebastienmusso
Copy link

sebastienmusso commented Oct 26, 2016

Hello,

I'm currently using Dockbeat to push docker container stats directly to elasticsearch in order to print some smooth dashboard in our paas and it's working quite well.

I only have an issue when I try to parse data from containerLabels in elasticsearch.
I cannot parse dynamic struc like this in my ES/Timelion query :
{
"key": "application-type",
"value": "tomcat"
}

In order to filer easily I had to modify dockbeat code :
event/generator.go (line 362) :
output_labels[i] = common.MapStr{
label: v,
"key": label,
"value": v,
}

to have :

{

"application-type": "tomcat",

"key": "application-type",
"value": "tomcat"
}

And I filter directly the label because I know the key, is there a way to do the same think without changing the source code and rebuilding ...

Nice Jobs for this beats plugin.

regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant