You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/12/09 02:49:58 UTC

[GitHub] [skywalking] wuwenrufeng opened a new issue #5979: Why sw don't parse and save the prometheus federate endpoint return metrics as untyped?

wuwenrufeng opened a new issue #5979:
URL: https://github.com/apache/skywalking/issues/5979


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - Question or discussion
   
   
   ___
   ### Question
   - What do you want to know?
     I've taken some metrics by using the prometheus federate, it return metrics like this:
   ```text
     # TYPE container_cpu_cfs_periods_total untyped
      container_cpu_cfs_periods_total{replica="center"} 1000 1607425368513
   ```
     I add yaml file in $CLASSPATH/fetcher-prom-rules, but These metrics are not stored,if I alter  metrcis is below, it ok
   ```text
     # TYPE container_cpu_cfs_periods_total gauge
      container_cpu_cfs_periods_total{replica="center"} 1000 1607425368513
   ```
   Why does the federate endpoint return all metrics as untyped? I find this: https://github.com/prometheus/prometheus/issues/5589
   if i want stored this metrics by sw, what should i do?
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5979: Why sw don't parse and save the prometheus federate endpoint return metrics as untyped?

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5979:
URL: https://github.com/apache/skywalking/issues/5979#issuecomment-741650948


   @wuwenrufeng Take a look at OpenTelemetry collector for now.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #5979: Why sw don't parse and save the prometheus federate endpoint return metrics as untyped?

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #5979:
URL: https://github.com/apache/skywalking/issues/5979


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5979: Why sw don't parse and save the prometheus federate endpoint return metrics as untyped?

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5979:
URL: https://github.com/apache/skywalking/issues/5979#issuecomment-741560324


   Agree, SkyWalking backend is more powerful and supporting cluster mode. We don't need the federation mode.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wuwenrufeng commented on issue #5979: Why sw don't parse and save the prometheus federate endpoint return metrics as untyped?

Posted by GitBox <gi...@apache.org>.
wuwenrufeng commented on issue #5979:
URL: https://github.com/apache/skywalking/issues/5979#issuecomment-741824739


   ok


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] hanahmily commented on issue #5979: Why sw don't parse and save the prometheus federate endpoint return metrics as untyped?

Posted by GitBox <gi...@apache.org>.
hanahmily commented on issue #5979:
URL: https://github.com/apache/skywalking/issues/5979#issuecomment-741558171


   Prometheus federation loses metadata due to a "complicated" reason. And from https://www.robustperception.io/federation-what-is-it-good-for, the federation is **NOT** good for exporting all metrics to the third platform, like SW. 
   
   I suggest using SW Prometheus fetcher directly or leverage OpenTelemetry collector to collect metrics from Prometheus then export to SW.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wuwenrufeng commented on issue #5979: Why sw don't parse and save the prometheus federate endpoint return metrics as untyped?

Posted by GitBox <gi...@apache.org>.
wuwenrufeng commented on issue #5979:
URL: https://github.com/apache/skywalking/issues/5979#issuecomment-741603018


   Yes, but some metric can't pull by fetcher directly, such as container cpu usage, It's included in the cluster。so,I set fetcher metrics URL is prometheus fedarate address(egg: http://prometheus:37772/federate?match[]={pod_name="test"}).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org