Skip to content

Docs: Partial Prometheus Metrics List - #14487

Closed
mercenarysre wants to merge 2 commits into
prometheus:mainfrom
mercenarysre:prometheus-metrics-documentation
Closed

mercenarysre wants to merge 2 commits into
prometheus:mainfrom
mercenarysre:prometheus-metrics-documentation

Conversation

@mercenarysre

@mercenarysre mercenarysre commented Jul 18, 2024 •

Copy link
Copy Markdown
Contributor

Docs: Add Prometheus Metrics, @bwplotka @yeya24 based on #12397.

@bboreham bboreham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

Comment thread docs/metrics.md Outdated
@@ -0,0 +1,166 @@
## Prometheus Metrics

### List of Metrics Exported By Prometheus

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As noted at #12397 (comment), this should be caveated as a "Partial list" or similar.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @bboreham, you welcome!, I have caveated it as a Partial list with a new commit.

Comment thread docs/metrics.md Outdated
| prometheus_tsdb_data_replay_duration_seconds | gauge | Time taken to replay the data on disk. |
| prometheus_tsdb_exemplar_exemplars_appended_total | counter | Total number of appended exemplars. |
| prometheus_tsdb_exemplar_exemplars_in_storage | gauge | Number of exemplars currently in circular storage. |
| prometheus_tsdb_exemplar_last_exemplars_timestamp_seconds | gauge | The timestamp of the oldest exemplar stored in circular storage. Useful to check for what timerange the current exemplar buffer limit allows. This usually means the last timestampfor all exemplars for a typical setup. This is not true though if one of the series timestamp is in future compared to rest series. |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a bug in the source; even better if you fix that.

Suggested change
| prometheus_tsdb_exemplar_last_exemplars_timestamp_seconds | gauge | The timestamp of the oldest exemplar stored in circular storage. Useful to check for what timerange the current exemplar buffer limit allows. This usually means the last timestampfor all exemplars for a typical setup. This is not true though if one of the series timestamp is in future compared to rest series. |
| prometheus_tsdb_exemplar_last_exemplars_timestamp_seconds | gauge | The timestamp of the oldest exemplar stored in circular storage. Useful to check for what time range the current exemplar buffer limit allows. This usually means the last timestamp for all exemplars for a typical setup. This is not true though if one of the series timestamp is in future compared to rest series. |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have resolved it with the new commit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks; are you going to do the Go source?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have no idea of the Go source metrics; could you expantiate more on it?

@mercenarysre mercenarysre changed the title Docs: Add Prometheus Metrics Docs: Partial Prometheus Metrics List Jul 25, 2024
@github-actions github-actions Bot added the stale label Sep 26, 2024
@bwplotka

Copy link
Copy Markdown
Member

Can you share how this list was obtained? Ideally we document that in this document somewhere near the footer.

@bwplotka

Copy link
Copy Markdown
Member

Otherwise this is a great start! But we need to make this bit more maintainable.

@github-actions github-actions Bot removed the stale label Nov 30, 2024
@bboreham

Copy link
Copy Markdown
Member

Hello from the bug-scrub!

As noted in the discussion at #12397, we want to have a list which is maintained over time.

Personally I think it would be OK to merge this and then automate it later, but we cannot right now because CI threw an error.
If you want to, please update the branch and we'll see if CI passes.

@bwplotka do you want to wait until there is a full solution before merging?

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.

3 participants