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

Instrumenting Worker Process: undefined method `hostname' for PrometheusExporter:Module #282

Open
FinnIckler opened this issue Jun 6, 2023 · 0 comments

Comments

@FinnIckler
Copy link

Hi!

I've got a custom worker process that is running separately from my Rails API (just under ruby). When I try adding

PrometheusExporter::Instrumentation::Process.start(type: WORKER_NAME, labels: { process: PROCESS_NUMBER })

I get the error

ERROR -- : PrometheusExporter::Instrumentation::Process Prometheus Exporter Failed To Collect Stats undefined method 'hostname' for PrometheusExporter:Module

Does this mean I cannot use PrometheusExporter::Instrumentation::Process for processes that do not have a hostname attached to them?
Custom metrics still work fine.

Thanks for the help,
Finn

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

No branches or pull requests

1 participant