{"id":20585409,"url":"https://github.com/kobtea/dummy_exporter","last_synced_at":"2025-04-14T21:09:19.609Z","repository":{"id":57585387,"uuid":"153618706","full_name":"kobtea/dummy_exporter","owner":"kobtea","description":"dummy_exporter exports meaningless metrics for prometheus.","archived":false,"fork":false,"pushed_at":"2022-10-31T08:09:49.000Z","size":22,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T14:26:02.009Z","etag":null,"topics":["grafana","grafana-prometheus","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kobtea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-18T12:16:58.000Z","updated_at":"2022-01-12T02:21:56.000Z","dependencies_parsed_at":"2022-09-10T15:51:26.613Z","dependency_job_id":null,"html_url":"https://github.com/kobtea/dummy_exporter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobtea%2Fdummy_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobtea%2Fdummy_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobtea%2Fdummy_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobtea%2Fdummy_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kobtea","download_url":"https://codeload.github.com/kobtea/dummy_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224850182,"owners_count":17380129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grafana","grafana-prometheus","prometheus","prometheus-exporter"],"created_at":"2024-11-16T07:08:01.095Z","updated_at":"2024-11-16T07:08:01.737Z","avatar_url":"https://github.com/kobtea.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dummy_exporter\n\n[![CircleCI](https://circleci.com/gh/kobtea/dummy_exporter.svg?style=svg)](https://circleci.com/gh/kobtea/dummy_exporter)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kobtea/dummy_exporter)](https://goreportcard.com/report/github.com/kobtea/dummy_exporter)\n\n## Overview\n\n`dummy_exporter` exports meaningless metrics for [Prometheus](https://prometheus.io/).\nIt is used for performance testing or developing to the prometheus ecosystem.\n\n\n## Install\n\n### Binary\n\nGo to https://github.com/kobtea/dummy_exporter/releases\n\n### Building from source\n\n```bash\n$ go get -d github.com/kobtea/dummy_exporter\n$ cd $GOPATH/src/github.com/kobtea/dummy_exporter\n$ dep ensure\n$ make build\n```\n\n### Docker container\n\nhttps://hub.docker.com/r/kobtea/dummy_exporter/\n\n```bash\n$ docker run -p 9510:9510 -v /PATH/TO/config.yml:/etc/dummy_exporter.yml kobtea/dummy_exporter\n```\n\n\n## Usage\n\n```bash\n$ ./dummy_exporter --help\nusage: dummy_exporter [\u003cflags\u003e]\n\nFlags:\n  -h, --help              Show context-sensitive help (also try --help-long and --help-man).\n      --web.listen-address=\":9510\"\n                          Address to listen on for web interface and telemetry\n      --web.telemetry-path=\"/metrics\"\n                          Path under which to expose metrics.\n      --config=\"\"         Path to config file\n      --log.level=\"info\"  Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]\n      --log.format=\"logger:stderr\"\n                          Set the log target and format. Example: \"logger:syslog?appname=bob\u0026local=7\" or \"logger:stdout?json=true\"\n      --version           Show application version.\n```\n\nConfiguration format is below.\n\n```yaml\n# config.yml\nmetrics:\n- name: \u003cstring\u003e\n  # support type are \"counter\" and \"gauge\"\n  type: \u003cstring\u003e\n  # number of metrics\n  size: \u003cinteger\u003e\n  labels:\n    # label maps, it decide value with round robin\n    \u003cstring\u003e: [\u003cstring\u003e, ...]\n```\n\nsample\n\n```yaml\nmetrics:\n- name: foo\n  type: counter\n  size: 1\n- name: bar\n  type: gauge\n  size: 5\n  labels:\n    l1: [one, two, three]\n    l2: [aaa]\n```\n\n```\n$ curl -s localhost:9510/metrics | egrep dummy\n# HELP dummy_bar dummy gauge\n# TYPE dummy_bar gauge\ndummy_bar{id=\"0\",l1=\"one\",l2=\"aaa\"} 0.011785717417686026\ndummy_bar{id=\"1\",l1=\"two\",l2=\"aaa\"} 0.5018172515345635\ndummy_bar{id=\"2\",l1=\"three\",l2=\"aaa\"} 0.29800435709983797\ndummy_bar{id=\"3\",l1=\"one\",l2=\"aaa\"} 0.7182748953550191\ndummy_bar{id=\"4\",l1=\"two\",l2=\"aaa\"} 0.6318883214044725\n# HELP dummy_foo dummy counter\n# TYPE dummy_foo counter\ndummy_foo{id=\"0\"} 1\n```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobtea%2Fdummy_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkobtea%2Fdummy_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobtea%2Fdummy_exporter/lists"}