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

feat: expose prometheus metrics from operator #138

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Conversation

nathanielc
Copy link
Collaborator

Now the operator exposes a prometheus scrape endpoint. It does not try to push its metrics over OTLP. This operator is long lived so this should not be a problem.

The runner continues to push its metrics over OTLP which is important since it is short lived.

However I was not able to get both prometheus scrape and OTLP push working on the same process. So the operator only supports prometheus and the runner only support OTLP push.

Now the operator exposes a prometheus scrape endpoint. It does not try
to push its metrics over OTLP. This operator is long lived so this
should not be a problem.

The runner continues to push its metrics over OTLP which is important
since it is short lived.

However I was not able to get both prometheus scrape and OTLP push
working on the same process. So the operator only supports prometheus
and the runner only support OTLP push.
Copy link

linear bot commented Feb 1, 2024

@nathanielc nathanielc requested a review from 3benbox February 1, 2024 21:27
Copy link
Contributor

@3benbox 3benbox left a comment

Choose a reason for hiding this comment

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

Amazing, I'd just like to see some error metrics when things don't go as expected.

Added comments.

operator/src/network/controller.rs Show resolved Hide resolved
operator/src/simulation/controller.rs Show resolved Hide resolved
requests_status_codes_total.as_any(),
requests_duration_percentiles.as_any(),
simulation_min_peer_requests_per_second.as_any(),
];
Copy link
Contributor

Choose a reason for hiding this comment

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

🤩

Ok((meter, shutdown, join))
}

// /metrics scrape endpoin
Copy link
Contributor

Choose a reason for hiding this comment

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

comment spelling, "endpoint" 😇

@nathanielc nathanielc requested a review from 3benbox February 1, 2024 23:06
Copy link
Contributor

@3benbox 3benbox left a comment

Choose a reason for hiding this comment

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

LGTM

@nathanielc nathanielc added this pull request to the merge queue Feb 2, 2024
Merged via the queue into main with commit 2fee683 Feb 2, 2024
5 checks passed
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.

2 participants