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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃挕 FEATURE REQUEST]: Add default labels for rr metrics #1632
Comments
Hey @asanikovich 馃憢馃徎 Custom metrics you are able to declare via configuration or directly from the PHP worker. |
@rustatian In the case of running RR in k8s in many pods, we have next metrics:
As you see it is difficult to distinguish metrics. |
I don't know actually about what practices you are talking about. Would be great to see link to them. If you need to use these metrics in Grafana for example, this is as easy as adding |
@rustatian |
Let's see the community respond on that. Because personally I'm not sure, that this case should be solved on the RR side. However, few notes about the proposal: metrics:
labels:
- env: "APP_ENV"
- app: "APP_NAME" You may specify env variables in the configuration w/o specifying the metrics:
labels:
- env: ${SOME_ENV:-default_value}
- app: ${SECOND_ENV}
|
@rustatian This format will be good |
@rustatian Hello. Any news? |
Hey @asanikovich 馃憢馃徎
P.S: Since the expand algorithm should be used in two places, to DRY, I suggest you to create a folder named |
Hi @rustatian. I would be interested to help with this feature. |
Hey @mtamazlicaru 馃憢 |
@rustatian I have a question regarding first point from #1632 (comment), how I understand it labels that are mentioned there are per application metrics. Since the suggestion was to have generic labels for all metrics, I think labels should be added in this struct. What is your opinion on this? Thank you. |
Hey @mtamazlicaru 馃憢 |
Plugin
Metrics
I have an idea!
I have an idea, listen to me!!
Currently difficultly to distinguish metrics with many rr pods. (e.x. in K8s).
Add to config parameter 'metrics' list of labels:
Format - label_name: ENV_NAME (value will be read from ENV variable)
Which should be added to all default metrics by all plugins described at https://roadrunner.dev/docs/lab-metrics/current/en
For custom application metrics - labels should be defined by user (as is).
The text was updated successfully, but these errors were encountered: