Prometheus Push exporter

35 views
Skip to first unread message

Rajshree Some

unread,
Aug 31, 2017, 2:28:44 PM8/31/17
to Prometheus Users
I am sending metrices through pushgateway to Prometheus but I am facing some issues like a particular error is coming to Pending state and the threshold value is also reaching but it is not coming to firing state before coming to firing state its coming to resolved state .Can U please explain why I am facing this issues



for i in range(1,100):
        registry1 = CollectorRegistry()



      c3=Counter('node_cpu','',['lcce'],registry=registry1)
        c3.labels('true').inc(100)
        push_to_gateway('pushgateway:9091', job='pushgateway', registry=registry1)



        g14=Gauge('node_load15','',['lcce','vcmts','beta_kubernetes_io_arch'],registry=registry1)
        g14.labels('true','true','amd64').set(50)
        push_to_gateway('pushgateway:9091', job='pushgateway', registry=registry1)

        time.sleep(100)


But I dont know why it is not firing

Can anyone explain me where I am getting doing the mistake


Reply all
Reply to author
Forward
0 new messages