mirror of https://github.com/statping/statping
Page:
Badges
Pages
API
AWS EC2
Badges
Build and Test
Bulk Import Services
Cloud Foundry
Commands
Config with .env File
Contributing
Development
Docker Compose
Docker
Environment Variables
Features
GraphQL
Heroku
Home
Issues and Solutions
Linux
Mac Linux Windows
Mac
Makefile
Mobile App
Notifier Events
Notifier Example
Notifiers
PGP Signature
Paid Hosting
Prometheus Exporter
SMTP Emailing
SSL
Sponsor Goal
Static Export
Static HTML Exporter
Terraform
Testing
Types of Monitoring
Windows
config.yml
services.yml
2
Badges
davidak edited this page 2020-08-08 08:47:20 +02:00
Table of Contents
Using shields.io you can easily create Badges for your services. Using the URL below, you can format your own SVG badge:
https://img.shields.io/badge/dynamic/json?url=<URL>&label=<LABEL>&query=<$.DATA.SUBDATA>&color=<COLOR>&prefix=<PREFIX>&suffix=<SUFFIX>
url
- URL for JSON endpointlabel
- Text for the left side of the badgequery
- JSON Path to be set for right side value
Examples
Service Uptime Percent
- URL: https://demo.statping.com/api/services/1
- JSON Path:
$.online_24_hours
- Suffix:
%
https://img.shields.io/badge/dynamic/json?color=blue&label=%20Statping%20Uptime&query=%24.online_24_hours&url=https%3A%2F%2Fdemo.statping.com%2Fapi%2Fservices%2F1&suffix=%
Count Services
- URL: https://demo.statping.com/health
- JSON Path:
$.services
- Suffix:
services
https://img.shields.io/badge/dynamic/json?color=purple&label=Demo%20Site&query=%24.services&url=https://demo.statping.com/health&suffix=%20services
Overview
Installation
Extras
Contact
Email: info@statping.com
Badges
Statping.com | Demo | Docker | Notifiers | API