Skip to content

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

@FinnIckler

Description

@FinnIckler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions