Skip to content

Conversation

@alexppg
Copy link
Member

@alexppg alexppg commented Jan 31, 2020

It adds a label to all jaeger's generated metrics that can be used to identify every microservice.

See jaegertracing/jaeger-client-python#269.

I messed up the previous PR, it's the same as this. #72

@alexppg alexppg changed the title WIP: Add service name label by default Add service name label by default Jan 31, 2020
@alexppg alexppg requested a review from avara1986 January 31, 2020 22:01
if metrics_config:
metrics = PrometheusMetricsFactory()
service_name = self.component_name.lower().replace("-", "_").replace(" ", "_")
metrics = PrometheusMetricsFactory(service_name_label=service_name)
Copy link
Member

Choose a reason for hiding this comment

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

Fail the tests with service_name_label param 😉

Copy link
Member Author

@alexppg alexppg Feb 2, 2020

Choose a reason for hiding this comment

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

My bad, I thought I executed them locally. I forgot to update the lock, it seems.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0003%) to 99.698% when pulling 77e16f4 on feature/add_service_name_label_to_metrics into 1c90261 on master.

@avara1986 avara1986 merged commit e70f4be into master Feb 2, 2020
@avara1986 avara1986 deleted the feature/add_service_name_label_to_metrics branch February 16, 2020 20:57
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.

4 participants