...
Push a single sample into the group identified by
{job="some_job"}
:Code Block echo "some_metric 3.14" | curl --data-binary @- httphttps://pushgateway.example.org:9091<KFUSE-DNS>/metrics/job/some_job
Since no type information has been provided,
some_metric
will be of typeuntyped
.Push something more complex into the group identified by
{job="some_job",instance="some_instance"}
:Code Block cat <<EOF | curl --data-binary @- httphttps://pushgateway.example.org:9091<KFUSE-DNS>/metrics/job/some_job/instance/some_instance # TYPE some_metric counter some_metric{label="val1"} 42 # TYPE another_metric gauge # HELP another_metric Just an example. another_metric 2398.283 EOF
Note how type information and help strings are provided. Those lines are optional, but strongly encouraged for anything more complex.
...