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

Update generation of data.json files #5384

Merged
merged 2 commits into from
Oct 13, 2017

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Oct 12, 2017

In a recent change the generation of the example data.json events was changed to use the internal event json encoder. The effect of this was that the meta data was also added to the event and indentation changed which cause large diffs. I prefer to leave out the metadata out of the example events as the data should be the same as it ends up in elasticsearch and is documented in the fields.yml.

As a first step, data.json for the system module were updated.

In a recent change the generation of the example data.json events was changed to use the internal event json encoder. The effect of this was that the meta data was also added to the event and indentation changed which cause large diffs. I prefer to leave out the metadata out of the example events as the data should be the same as it ends up in elasticsearch and is documented in the fields.yml.

As a first step, `data.json` for the system module were updated. Quite a few modules have outdate `data.json` files. I plan to update more in follow up PR's.
"time": 29700
},
"iostat": {
"avg_queue_size": 0.020000,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to advertise these metrics in the example. Is there a config option we can set in TestData or do you want only the default fields in the example?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would definitively like to have these in too. I think the problem here is that I did run this on my Mac where these values are not available. Let me do a run for this data set in a linux container.

@ruflin
Copy link
Contributor Author

ruflin commented Oct 13, 2017

@andrewkroh Example from linux for diskio added. Can you have a look again?

@andrewkroh andrewkroh merged commit fd5a7f5 into elastic:master Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants