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

Add standard exports into the documentation #529

Merged
merged 5 commits into from
Sep 5, 2016
Merged

Add standard exports into the documentation #529

merged 5 commits into from
Sep 5, 2016

Conversation

SimenB
Copy link
Contributor

@SimenB SimenB commented Sep 1, 2016

It seems weird to me that this list lives on an open Google Docs document.

Even if it's work in progress, it should rather be marked as such instead of living somewhere else. This way, you have more control over it, and it makes it more official.
A benefit, other than the obvious standardizing, is discoverability. It took me quite some digging to find this, having Google index it might help.

@beorn7
Copy link
Member

beorn7 commented Sep 1, 2016

I guess the reason why those are still in the Google doc is that they are not quite finalized yet.

But they should, obviously, so we could use this PR to do so.

I'll leave a few comments, but I guess @brian-brazil has the strongest opinions on this.

In addition, client libraries are ENCOURAGED to also offer whatever makes sense
in terms of metrics for their language’s runtime (e.g. Garbage collection
stats).
at [standard exports](/docs/instrumenting/standard_exports).
Copy link
Member

Choose a reason for hiding this comment

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

I'd vote for including it right here instead of having yet another section.

The client library guide is anyway long, so no harm in making it a bit longer.

Copy link
Member

Choose a reason for hiding this comment

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

SGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was mostly to separate it from clients.

If some things are standardized, it's also relevant for scrapers and consoles, not just for the ones writing clients.

Say I wanna write a generic template for metric visualizations, it'd be nice to know what some standard metrics are named, but I don't care about what conventions for other metrics are, I just want to be able to scrape some default ones.

@grobie
Copy link
Member

grobie commented Sep 1, 2016

👍 Thank you!

All our documents were on Google once (client library guide lines, exporter, exposition formats, etc.). We simply haven't ported this yet, but the presented process metrics were the ones we agreed upon end of 2014.

@SimenB
Copy link
Contributor Author

SimenB commented Sep 1, 2016

Ok, updated.

Changes made (in separate commit) is:

  • Inlined it back into the original file
  • Changed the 2 headings as suggested

Did not really change any phrasing, as I think you probably can come up with better ones anyway 😄


In addition, client libraries are ENCOURAGED to also offer whatever makes sense
in terms of metrics for their language’s runtime (e.g. Garbage collection
stats).
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd append "with an appropriate prefix such as go_, hostspot_" to separate them from the standard exports.

@SimenB
Copy link
Contributor Author

SimenB commented Sep 3, 2016

@brian-brazil Done 😄

| Metric name | Help string | Unit |
| ------------------------------- | ------------------------------------------------------ | ------- |
| `process_cpu_seconds_total` | Total user and system CPU time spent in seconds. | Seconds |
| `process_open_fds` | Number of open file descriptors. | Integer |
Copy link
Contributor

Choose a reason for hiding this comment

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

The unit of open file descriptors is file descriptors.

@SimenB
Copy link
Contributor Author

SimenB commented Sep 5, 2016

@beorn7 @grobie @brian-brazil any other comments? It'd be great to land this so we can point to it 😄
Or if stuff is basically set, just some tweaking necessary (as in, the current metrics are fine, none will be added/removed) that's fine as well.

| `process_start_time_seconds` | Start time of the process since unix epoch in seconds. | Seconds |

In addition, client libraries are ENCOURAGED to also offer whatever makes sense
in terms of metrics for their language’s runtime (e.g. Garbage collection
Copy link
Member

Choose a reason for hiding this comment

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

Garbage -> garbage

@beorn7
Copy link
Member

beorn7 commented Sep 5, 2016

Just nits left from my side.

We can iterate on larger additions or improvements later. For now, it's great to have this in the real docs.

@SimenB
Copy link
Contributor Author

SimenB commented Sep 5, 2016

@beorn7 sounds great! I'll fix it as soon as I get to my laptop (half hour). Want me to squash, or do you use GH's squash?

@juliusv juliusv merged commit ba3342b into prometheus:master Sep 5, 2016
@juliusv
Copy link
Member

juliusv commented Sep 5, 2016

@SimenB Thanks! And that was my first time trying out GitHub's squash feature!

@SimenB SimenB deleted the document-standard-metrics branch September 5, 2016 22:46
aylei pushed a commit to aylei/docs that referenced this pull request Oct 28, 2019
* Fix the wrong statement

* Fix a typo

* Fix the statement

* Fix the quotation mark

* Update the statement of tikv-ctl

* Update the MySQL related statement

* Update the statement regarding the MySQL client

* Add the link to the tutorial

* adopter: update the latest adopter list

* fix a type in faq

* Address comments
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

Successfully merging this pull request may close these issues.

5 participants