Thanks a lot. my mistake. On Mon, Apr 18, 2022 at 8:19 PM Brian Candler <[email protected]> wrote:
> By "inner metrics" I guess you mean "internal metrics". These *are* > written to the remote storage. For example: I use VictoriaMetrics for > remote storage, and the "up" metrics *do* propagate there. > > So I think your problem must be at the receiving side. You haven't > specified what system it is that you're writing to. > > On Monday, 18 April 2022 at 12:59:32 UTC+1 [email protected] wrote: > >> Sorry for the 'screenshot images' and thanks for your reply. >> >> There are some inner metrics in Prometheus to expose targets status. >> Refer to this >> https://github.com/prometheus/prometheus/blob/ec3d02019e84d9d793d2e137891dd7ea6d19ea60/scrape/scrape.go#L1662 >> >> I can query on Prometheus, but no data on remote storage according to the >> above configuration. >> >> I want to write these inner metrics to our remote storage. >> >> >> On Monday, April 18, 2022 at 6:58:45 PM UTC+8 Brian Candler wrote: >> >>> (Please don't post screenshot images - they are hard to read, and >>> impossible to copy-paste from) >>> >>> What are you trying to do? Your rewriting config says: >>> >>> 1. If the label name is "up", then keep the metric. >>> 2. Otherwise, keep the metric. (This is the default if you reach the end >>> of the ruleset) >>> >>> Hence it does nothing: it keeps all metrics. >>> >>> On Monday, 18 April 2022 at 09:56:35 UTC+1 [email protected] wrote: >>> >>>> UP metrics is inner metrics. >>>> But why can't it be rewrite? >>>> Is there any mistake? >>>> [image: 微信图片_20220418164419.png] >>>> >>> -- > You received this message because you are subscribed to a topic in the > Google Groups "Prometheus Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/prometheus-users/FNsSbhtG-xc/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/00832702-408c-4a4e-8d1b-50a94482e3c6n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/00832702-408c-4a4e-8d1b-50a94482e3c6n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAAMffb1m_vh5YcEx097hJ8s%2BQD5eFVkt07eVoUf9zyCGq4t6Lw%40mail.gmail.com.

