[ 
https://issues.apache.org/jira/browse/FLINK-29970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

钟洋洋 updated FLINK-29970:
------------------------
    Description: 
When I use the native k8s method to deploy my flink application cluster, if I 
do not manually deploy a Service to expose the 9249 port of my jobmanager and 
taskmanager, the prometheus I deployed in k8s cannot collect the metrics in my 
flink. Should flink generate these services itself when deploying.

My deploy command is(Some content is omitted)
{code:sh}
flink run-application --target-application  \n
-Dmetrics.reporters=prom  \n
-Dmetric.reporter.prom.class=org.apache.flink.metrics.prometheus.PrometheusReport
  \n      
Dkubernetes.jobmanager.annotaions=prometheus.io/scrape:true,prometheus.io/port:9249
 \n
-Dkubernetes.jobmanager.annotaions=prometheus.io/scrape:true,prometheus.io/port:9249
{code}

  was:
When I use the native k8s method to deploy my flink application cluster, if I 
do not manually deploy a Service to expose the 9249 port of my jobmanager and 
taskmanager, the prometheus I deployed in k8s cannot collect the metrics in my 
flink. Should flink generate these services itself when deploying.

My deploy command is(Some content is omitted)
{code:sh}
flink run-application --target-application -Dmetrics.reporters=prom 
-Dmetric.reporter.prom.class=org.apache.flink.metrics.prometheus.PrometheusReport
 
-Dkubernetes.jobmanager.annotaions=prometheus.io/scrape:true,prometheus.io/port:9249
 
-DDkubernetes.jobmanager.annotaions=prometheus.io/scrape:true,prometheus.io/port:9249{code}


> Prometheus cannot collect flink metrics
> ---------------------------------------
>
>                 Key: FLINK-29970
>                 URL: https://issues.apache.org/jira/browse/FLINK-29970
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / Kubernetes
>    Affects Versions: 1.15.2, 1.14.6
>            Reporter: 钟洋洋
>            Priority: Minor
>
> When I use the native k8s method to deploy my flink application cluster, if I 
> do not manually deploy a Service to expose the 9249 port of my jobmanager and 
> taskmanager, the prometheus I deployed in k8s cannot collect the metrics in 
> my flink. Should flink generate these services itself when deploying.
> My deploy command is(Some content is omitted)
> {code:sh}
> flink run-application --target-application  \n
> -Dmetrics.reporters=prom  \n
> -Dmetric.reporter.prom.class=org.apache.flink.metrics.prometheus.PrometheusReport
>   \n      
> Dkubernetes.jobmanager.annotaions=prometheus.io/scrape:true,prometheus.io/port:9249
>  \n
> -Dkubernetes.jobmanager.annotaions=prometheus.io/scrape:true,prometheus.io/port:9249
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to