Skip to content

shuliakovsky/http-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Exporter

Simple HTTP exporter for Prometheus

exported metrics:
    http_status - gauge


#### how to build

```shell
# example build for Apple macOS & Apple Silicon Chip
./scripts/build.sh darwin arm64
# example build for apple macOS & Intel Chip
./scripts/build.sh darwin amd64
# build with no args for help
./scripts/build.sh 

systemd service example

[Unit]
  Description=HTTP exporter
  Wants=network-online.target
  After=network-online.target

[Service]
  ExecStart=/usr/local/bin/http-exporter --config /etc/http-exporter/config.yaml
  SyslogIdentifier=http-exporter
  Restart=always

[Install]
  WantedBy=multi-user.target

./config.yml example

port: 8080
interface: 0.0.0.0
interval: 30s
urls:
  - "https://example.com"
  - "https://secureexample.com"

About

Simple HTTP exporter for Prometheus

Resources

License

Stars

Watchers

Forks

Packages

No packages published